Conversation
Bootstrap a minimal Arch rootfs via `pacman --root /rootfs` (avoids pacstrap's chroot mounts which are unavailable in non-privileged builds), build the initramfs with `dracut --sysroot`, and produce three FROM-scratch targets mirroring the Fedora and Ubuntu pattern. Key implementation notes: - pacman -r skips backup files (pacman.conf, mirrorlist) that already exist on the build host; copy them explicitly before installing - Keyring refreshed post-install from the newly-downloaded archlinux-keyring package so derivative image builds can verify all current developer keys - mkinitcpio hooks masked in /rootfs before kernel install to prevent mkinitcpio from running in the builder container - Arch kernel lands at /boot/vmlinuz-linux (not /boot/vmlinuz-$KVER); copied to /usr/lib/modules/$KVER/vmlinuz after dracut - GRUB+Secure Boot not supported: shim-signed is AUR-only - All stage-2 pacman calls use -Syu to prevent partial-upgrade failures when Docker layer cache is reused across builds - KVER emptiness guard added before dracut invocation - ci-arch-uki auto-detects OVMF_VARS.fd for local UKI testing Adds justfile build/e2e/ci recipes and CI jobs (e2e-arch, container push) following the same structure as Ubuntu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bootstrap a minimal Arch rootfs via
pacman --root /rootfs(avoids pacstrap's chroot mounts which are unavailable in non-privileged builds), build the initramfs withdracut --sysroot, and produce three FROM-scratch targets mirroring the Fedora and Ubuntu pattern.Key implementation notes:
Adds justfile build/e2e/ci recipes and CI jobs (e2e-arch, container push) following the same structure as Ubuntu.