Package: dracut
Version: 108-3
Severity: normal
Dear Maintainer,
I'm trying Dracut as an initramfs and uki generator and noticed a few issues in
the scripts /usr/sbin/update-initramfs and /etc/kernel/postinst.d/dracut:
Issues:
1. UEFI Configuration Ignored
Both scripts ignore the uefi=yes option in /etc/dracut.conf and are hardcoded
to generate the initramfs at /boot/initrd.img-*. As a result, a Unified Kernel
Image (UKI) is not generated, even though this is explicitly requested in the
Dracut configuration.
2. Duplicate Functionality
The scripts re-implement logic that Dracut already handles internally, such as:
- Creating an initrd.img-*.new file and renaming it upon success
- Invoking bootloader hooks
3. Conflict with kernel-install and UKI layout
When used in combination with systemd's kernel-install mechanism, and with
/etc/kernel/install.conf configured as:
layout=uki
initrd_generator=dracut
uki_generator=dracut
The script /usr/lib/kernel/install.d/90-uki-copy.install fails. This happens
because it expects either:
- A uki.efi file in the staging area, or
- An image filename with an .efi suffix
Related to #1095646
Kind regards,
Michael
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (990, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.16.8+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dracut depends on:
ii dracut-core 108-3
ii linux-base 4.14
dracut recommends no packages.
Versions of packages dracut suggests:
pn dracut-network <none>
-- no debconf information