From 35948c7ceb2eb667888bac31b0a52a83273cc33c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 26 Sep 2026 17:12:41 -0400 Subject: [PATCH] ci: Regenerate the initramfs after installing bootc from copr The CI image replaces the base image's bootc with a newer build from copr but keeps the base image's initramfs, which bootc doesn't support. It broke the stream10 composefs UEFI boot test once bootc started writing only composefs.digest= in BLS entries: the bootc 1.16.13 initramfs in centos-bootc:stream10 only starts bootc-root-setup.service with a composefs= karg, so switch-root fails. Generated-by: AI --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9eabbfb9..ee70610f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,11 @@ if [ "$ID" = "centos" ]; then dnf -y copr enable rhcontainerbot/bootc centos-stream-${VERSION_ID}-$(uname -m) fi dnf -y install bootc +# The copr bootc can be newer than the one in the base image's initramfs; +# a newer bootc with an older initramfs is unsupported (e.g. it can write +# composefs kargs the old initramfs doesn't recognize), so regenerate it. +kver=$(cd /usr/lib/modules && echo *) +dracut --force --kver "$kver" "/usr/lib/modules/$kver/initramfs.img" dnf clean all rm -rf /var/log rm -rf /var/lib