Actually /usr/lib/install.d/50-dracut.install has the ability to create
UKIs, so instead of just removing the file this functionality can be
preserved with this patch:
```patch
--- 50-dracut.install.orig 2026-10-06 06:27:18.000000000 +0800
+++ 50-dracut.install 2026-11-01 20:21:27.922777113 +0800
@@ -16,11 +16,7 @@
exit 0
fi
-if [[ "${KERNEL_INSTALL_INITRD_GENERATOR:-dracut}" = "dracut" ]]; then
- # We are the initrd generator
- IMAGE="initrd"
- UEFI_OPTS="--no-uefi"
-else
+if [[ "${KERNEL_INSTALL_INITRD_GENERATOR:-dracut}" != "dracut" ]]; then
exit 0
fi
@@ -28,6 +24,8 @@
# We are chosen to generate the UKI as well as initrd
IMAGE="uki.efi"
UEFI_OPTS="--uefi"
+else
+ exit 0
fi
if [[ -f ${KERNEL_IMAGE%/*}/$IMAGE ]]; then
```
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2100296
Title:
Double initrd in /efi/<machine-id>/<kver>/ with systemd-boot
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dracut/+bug/2100296/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs