-
Bug
-
Resolution: Done
-
Blocker
-
None
-
rhel-10.0
-
No
-
Important
-
rhel-sst-image-builder
-
None
-
False
-
-
None
-
None
-
Proposed Blocker
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
Build of an ISO image using bootc-image-builder container failed due to a dracut error:
Starting module org.osbuild.dracut Building initramfs for 6.12.0-54.el10.x86_64 dracut[E]: No '/dev/log' or 'logger' included for syslog logging dracut[I]: Executing: /usr/bin/dracut --no-hostonly --kver 6.12.0-54.el10.x86_64 --force -v --show-modules --no-early-microcode --reproducible --modules "bash systemd fips systemd-initrd modsign nss-softokn i18n convertfs network-manager network ifcfg url-lib drm plymouth crypt dm dmsquash-live kernel-modules kernel-modules-extra kernel-network-modules livenet lvm mdraid qemu qemu-net resume rootfs-block terminfo udev-rules dracut-systemd pollcdrom usrmount base fs-lib img-lib shutdown uefi-lib biosdevname anaconda rdma rngd multipath fcoe fcoe-uefi iscsi lunmask nfs" --install /.buildstamp dracut[E]: Module 'ifcfg' cannot be found. Traceback (most recent call last): File "/run/osbuild/bin/org.osbuild.dracut", line 120, in <module> r = main(args["tree"], args["options"]) ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/run/osbuild/bin/org.osbuild.dracut", line 113, in main chroot.run([initfs_bin, "--no-hostonly", "--kver", kver] + opts, check=True) File "/run/osbuild/lib/osbuild/util/chroot.py", line 61, in run return subprocess.run(cmd, **kwargs) # noqa: PLW1510 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/subprocess.py", line 573, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['chroot', '/run/osbuild/tree', '/usr/bin/dracut', '--no-hostonly', '--kver', '6.12.0-54.el10.x86_64', '--force', '-v', '--show-modules', '--no-early-microcode', '--reproducible', '--modules', 'bash systemd fips systemd-initrd modsign nss-softokn i18n convertfs network-manager network ifcfg url-lib drm plymouth crypt dm dmsquash-live kernel-modules kernel-modules-extra kernel-network-modules livenet lvm mdraid qemu qemu-net resume rootfs-block terminfo udev-rules dracut-systemd pollcdrom usrmount base fs-lib img-lib shutdown uefi-lib biosdevname anaconda rdma rngd multipath fcoe fcoe-uefi iscsi lunmask nfs', '--install', '/.buildstamp']' returned non-zero exit status 1. Finished module org.osbuild.dracut
This is caused by a missing ifcfg dracut module which has been replaced with {{net-lib }}(as part of dracut rebase in RHEL-65204), see also related bug for Anaconda RHEL-78746.
Note: this happens when using a source container image with a recent compose DNF repo that contains dracut-105-2.el10, if an older one (with dracut-103-1.el10) is used, the build is successful.
What is the impact of this issue to you?
It's not possible to build a bootable ISO (and maybe other image types) using bootc-image-builder container. I believe that based on this fact, this bug may classify as a blocker.
Please provide the package NVR for which the bug is seen:
bootc-image-builder container image with "build-date": "2025-02-14T19:00:50" and "ostree.commit": "957822bb8462d6296e580fc1b56eaae9bf90365fcd87dba0b07b30114b6c67f8" (using repositories from RHEL-10.0-20250217.4 in the source image)
How reproducible is this bug?:
Always.
Steps to reproduce
- Prepare a container image with RHEL repositories recent enough to contain dracut-105-2.el10 or newer.
- Use bootc-image-builder to build an installer ISO with the prepared container:
podman run --tls-verify=false --rm -it --privileged --pull=newer --security-opt label=type:unconfined_t -v config.json:/config.json -v output:/output -v /var/lib/containers/storage:/var/lib/containers/storage ***/rhel10/bootc-image-builder:10.0 --type iso --config /config.json --tls-verify=false localhost/custom-image:latest
Expected results
The image is built OK.
Actual results
Build fails due to a missing dracut module (ifcfg) instead of a module that has superseded it (net-lib).