A purpose asset package (or any package shipping usr/etc) made 'mv etc usr/etc'
move one tree inside the other, so the composed root /etc appeared and the
finalizer lost /etc/pacman.conf: 'cp: cannot stat /job/core/etc/pacman.conf'.
This is why plasma-meta and the KDE keyboard defaults could not be composed.
- Merge the two trees when both exist, and assert the invariant that the layer
payload has no root /etc and keeps usr/etc/pacman.conf.
- Do the same defense in depth after composition and before the final mv.
- Apply the identical fix to the Container Runner layer.
flathub:appstream2/x86_64 gets a new commit on every 'flatpak update' and is
never part of what create-usb exports, so comparing it made every refresh look
like a change and rebuilt the whole seed (~10 min per variant). Exclude
appstream refs on both sides; older cached manifests are filtered as well.
A package that installs files under /etc makes the purpose composition build
/job/core/etc from the package payload and lose pacman.conf, which aborts
finalization. The finalizer already writes NM/sudoers/plymouth defaults there.
visudo needs the invoking uid in the chroot's account database; the purpose
stage is a package tree whose /etc is not guaranteed complete at that point.
Check the mode and content instead.
Purpose builds skip the Core-tree block, so a mirror assignment placed there
left `mirror` unset when the live ISO profile was written. Read and validate it
once at the top of the container script.
The mirror guard and the image mirrorlist run inside build-in-container.sh,
where the host-side variable does not exist. Write /job/mirror.txt on the host
and read it in the container.
The greeter is a Plasma session, so the SDDM theme drop-in and the
CompositorCommand input-method flag are gone. Layouts (ru,us) and the
on-screen keyboard now reach the greeter through system-wide kxkbrc and
plasmakeyboardrc, the preset enables plasmalogin.service, and finalization
checks the package/unit and that SDDM is absent.
The cache path was computed from a host-only variable inside the nspawn,
where it is unset (set -u aborted the Core build). Define it in the outer
script and expose it as /archipelago-locale-cache.
- build-iso.sh writes ARCHIPELAGO_MIRROR_URL into the image and airootfs
mirrorlists instead of the hardcoded rolling mirror, and refuses any
repository that is not mirror.nw-sys.ru (rolling or snapshot).
- package.sh ships the getty@tty1 onboarding drop-in under /usr/lib.
- Core/Container Runner use plain getty on tty1; kmscon stays desktop-only.
- Cache the generated locale archive by glibc version and locale.gen.
- Commit build repositories with --fsync=0 (artifacts are fsck-verified).
- Let mkarchiso compress the live image with all available CPUs.