[pull] main from bootc-dev:main#160
Merged
Merged
Conversation
dracut 109 (shipped in Fedora 45, and now backported to Fedora 44 via
FEDORA-2026-5e95ea992d) removed `systemdsystemconfdir` from
01-dist.conf, leaving the variable empty in the dracut build
environment. Our module-setup.sh used that variable for the
`initrd-root-fs.target.wants/` directory, so the symlink was written
to the root of the initramfs rather than under
/usr/lib/systemd/system/. systemd does not recognize root-level .wants
directories, so bootc-root-setup.service was silently never activated,
causing the system to drop to emergency mode on composefs+UKI boots.
Switch to `${systemdsystemunitdir}` (/usr/lib/systemd/system), which
dracut reliably sets on all versions. This matches how the ostree dracut
module has always handled this. The fix is unconditionally correct for
all dracut versions.
Assisted-by: OpenCode (Claude Sonnet 4.6)
Signed-off-by: Colin Walters <walters@verbum.org>
Linux kernel 7.0 and 7.1 introduced a requirement that all files in a composefs image carry fs-verity digests. bootc only applies verity to content objects, not every file, so erofs mounts fail with 'has no fs-verity digest' on these kernels. This is a kernel regression tracked upstream; 7.2+ is expected to restore the prior behavior. In provision-fetch.sh, detect kernel 7.0.x/7.1.x in the base image and downgrade to 6.19.10-300.fc44 from Koji before the image build runs. The downgrade uses --noscripts to prevent the kernel-core posttrans scriptlet from invoking kernel-install (which fails and pollutes /boot inside the container), then runs depmod manually and removes leftover module directories from the replaced kernel. This workaround should be removed once base images ship kernel 7.2+. Assisted-by: OpenCode (Claude Sonnet 4.6) Signed-off-by: Colin Walters <walters@verbum.org>
Really we should probably test both of these while they're stable Fedora versions, but currently CI is blocked on the f43 upgrade job being broken, and if switching to f44 unblocks things that's progress. Signed-off-by: John Eckersberg <jeckersb@redhat.com>
For fedora 44 we install kernel v6.19 ourselves and not run the postprocess scripts that would've generated the initramfs. This causes bcvk to fail with `No kernel found` So we explicitly regenerate the initramfs in Dockerfile.upgrade Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )