- Containerfile: fedora-bootc:44 -> :45 - build/10-repos.sh: Terra-Repo-Pinning deckt /etc/yum.repos.d und /usr/share/dnf5/repos.d ab (F45-Relocation der paketierten Repo-Configs) - build/21-greetd.sh: Terra-Repo-Dateien aus beiden Verzeichnissen entfernen - build/40-multimedia.sh: F45-Umbenennungen (gstreamer1-libav -> gstreamer1-plugin-libav, gstreamer1-plugins-bad-free-freeworld -> gstreamer1-plugins-bad-freeworld), Soft-Check erweitert - README/AGENTS/build-README: F45-Basis und Repo-Pfade dokumentiert
7.4 KiB
AGENTS.md — fluffy-pancake
Personal bootc OS image (Fedora base). This is not an application: there is no app entrypoint, no test suite, no package manager of our own. The deliverable is a container image and an installer ISO built from it.
Branches (they are NOT interchangeable)
| Branch | Base | Desktop | Targets | Tags |
|---|---|---|---|---|
main |
fedora-kinoite:45 |
Plasma | qcow2/raw and ISO | :stable (+ dated) |
feat/labwc-noctalia (this one) |
fedora-bootc:45 minimal |
labwc + Noctalia Shell v5 + greetd | ISO only | test-<branch> |
The Justfile differs per branch. Do not port main's qcow2/raw targets here.
Layout
Containerfile— the image. Multi-stage:FROM scratch AS build-ctxholds onlybuild/, then numbered package layers, a "config" layer (COPYofconfigs/,scripts/), cleanup, andbootc container lintas the last line.build/NN-*.sh— build-time package installs, bind-mounted one file per layer frombuild-ctx. The number is both execution order and cache isolation.configs/— files copied into the image (systemd drop-ins, skel, greetd,containers/policy.json,auth.json.template).scripts/— helper scripts that land in/usr/binof the image.iso/iso.toml— Bootc Image Builder ISO config + Anaconda kickstart;iso/disk.toml— filesystem sizing..gitea/workflows/build-v2.yml— the only build workflow.
Commands
just lint # shellcheck over every *.sh (build/ + scripts/)
just format # shfmt --write over every *.sh
just check # `just --unstable --fmt --check` on Justfile + *.just
just fix # ditto, formatting
just build # podman build of the Containerfile
just rebuild-iso # local podman build -> ISO (needs root/sudo)
just build-iso # pull published image from registry -> ISO
just run-vm-iso # boot the ISO in QEMU (needs /dev/kvm)
just clean # remove output/ and _build* dirs
just lint ist jetzt grün: Die früheren 5 Findings (SC2086 in
build/10-repos.sh und build/22-noctalia.sh, SC2043 in
build/23-plymouth.sh) wurden behoben. just format runs shfmt
with default options (tabs) while the scripts are indented with spaces — it will
reindent every script, so don't run it repo-wide unless that reformat is intended.
There is no test suite. Verification chain is: just lint → container build
(ends in bootc container lint) → ISO build → boot the ISO and look at the screen.
Required local binaries: just, podman, shellcheck, shfmt. (This sandbox
currently has only shellcheck, so builds cannot be run here.)
Gotchas an agent will otherwise get wrong
configs/auth.jsonis gitignored (secret) but the ContainerfileCOPYs it. A barepodman buildfails at that COPY.just build/just rebuild-isogenerate a dummy fromconfigs/auth.json.template(READONLY_TOKEN_PLACEHOLDER). CI substitutes the real token from secretREADONLY_AUTH_BASE64.iso/iso.tomlhardcodeshumocs-man.duckdns.org/humocs-man/fluffy-pancake:stable. The Justfileseds exactly that literal to retarget test ISOs. If you change the registry/image name in the Justfile you must change the literal too — otherwise a locally built ISO silently installs:stableinstead of the test image.- ISO builds need rootful podman. BIB runs
--privilegedand mounts/var/lib/containers/storage; local images are built aslocalhost/<image>and copied into rootful storage viapodman save/load.just sudoifhandles the root/sudo dance. - Package manager is
dnf5, neverdnf/yum, always with-y. - bootc discards
/varat deployment. Anything written to/varduring the build is gone on first boot. Seed/varviatmpfiles.d(configs/tmpfiles/) or a first-boot systemd unit (configs/flatpak-preinstall.service). Only/etcand/usrsurvive. - Systemd overrides go to
/usr/lib/systemd/system/<unit>.d/*.conf(vendor drop-in), never/etc/systemd/system/. Usechmod 0644for the*.conffiles — world-writable units make systemd shout in the journal. Units delivered viaCOPYare not picked up by presets, sosystemctl enablethem explicitly. Achtung:COPY --chmod=0644 …/<unit>.d/override.conferzeugt das Parent-Verzeichnis selbst mit Modus0644(nicht ausfuehrbar), systemd kann dann die Drop-ins nicht lesen. Nach solchen COPYs explizitRUN chmod 0755 /usr/lib/systemd/system/<unit>.dsetzen (gilt analog fuer andere neu angelegte.d-Verzeichnisse wie fontconfig/conf.d). - Keep one concern per
build/NN-*.sh. Each is a separate bind mount, so editing one script busts only that layer. Merging scripts busts the big download layers. configs/skelonly affects newly created users. Existing systems needseed-labwc-skel(shipped in the image) to migrate; skel changes alone never reach them.- The build asserts fail fast (greetd/PAM wiring,
pam_fprintd, thenoctalia-greeter-sessionwrapper path, plymouth initramfs). These guard against shipping a broken login screen — fix the cause, don't delete the assert. - Cosign uses the legacy
.sigformat (--registry-referrers-mode=legacy) becauseconfigs/containers/policy.jsondemandssigstoreSigned. Switching to OCI referrers breaks pulls of the image. - The
--build-arg SHA_HEAD_SHORTpassed by the Justfile is not consumed (the Containerfile declares noARG) — it does not appear in image metadata. - Fedora 45 moved packaged repo configs to
/usr/share/dnf5/repos.d. dnf5 reads/etc/yum.repos.d,/etc/distro.repos.dand/usr/share/dnf5/repos.d. RPM Fusion and Terra 45 install their.repofiles in the new location, so code that edits or removes repo files must handle both directories (seebuild/10-repos.sh,build/21-greetd.sh).
CI / publishing
.gitea/workflows/build-v2.ymlis manual only (workflow_dispatch), despite the README mentioning PR validation — no PR trigger is configured. Addpull_request:toon:to enable it (thepull_requestguards already exist).- Chain: Buildx → OCI archive tar →
skopeo copy --dest-compress-format zstd:chunked→ recursivecosign sign. Skopeo is used deliberately to guarantee zstd:chunked. - Tags:
main→stable,stable.YYYYMMDD,YYYYMMDD; any other branch →test-<branch>only (no dated variants). - Secrets:
READONLY_AUTH_BASE64,REGISTRY,SIGNING_SECRET,RENOVATE_TOKEN. - Registry cache tag
buildcache-amd64-mainis shared across branches. - The registry (
humocs-man.duckdns.org/humocs-man) is private — pulls need auth. - Renovate (
renovate.json) runs nightly at 03:00 UTC via.gitea/workflows/renovate_v2.yml. That workflow intentionally usesdocker run renovate/renovateinstead of GitHub-hosted actions, because github.com actions require a GitHub account. Keep it that way.
Conventions
- Comments and commit messages are in German; commits use Conventional Commits
prefixes (
feat:,fix:,chore:,refactor:). Match that style. - Shell scripts:
set -eoux pipefail(build scripts) /set -euo pipefail(image runtime scripts), 4-space indentation, shellcheck-clean for new code. - The codebase documents why extensively, especially for workarounds
(Terra CDN hiccups, PAM auth stacks, bootc
/varsemantics). Preserve that reasoning in comments when changing these areas.