-
Bug
-
Resolution: Unresolved
-
Major
-
rhel-10.1
-
None
-
None
-
None
-
rhel-image-mode
-
5
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
I didn't fully verify this but we have had some reports of failure with a kernel upgrade as part of a container build. An agent narrowed down two problems:
*Dracut:*
- Commit 17706f9a (Jan 2025): Added forced hostonly mode in kernel-install plugin
- Commit 663e720e (May 2025): Reverted the forced hostonly (not yet in RHEL 10.1)
*RPM-OSTree:*
- `/usr/lib/kernel/install.d/05-rpmostree.install` exits with status 77, skipping remaining kernel install scripts
- This behavior is expected in ostree-based systems but interacts poorly with incomplete cleanup
FROM registry.redhat.io/rhel10/rhel-bootc:10.0
RUN <<EOF
set -xeuo pipefail
# Remove dracut hostonly configuration to prevent dracut 107 from forcing hostonly mode
# This prevents initramfs generation failures in container builds
rm -rf /usr/lib/dracut/dracut.conf.d/hostonly
# Perform full upgrade from RHEL 10.0 to 10.1
dnf -y upgrade
# Remove incomplete kernel directories (missing vmlinuz)
# This handles the case where old kernel uninstall scripts leave behind
# directories with only initramfs.img but no vmlinuz
find /usr/lib/modules -mindepth 1 -maxdepth 1 -type d | while read kdir; do
if [ ! -f "$kdir/vmlinuz" ]; then
echo "Removing incomplete kernel directory: $kdir"
rm -rf "$kdir"
fi
done
dnf clean all
EOF