Thank you for taking the time to report this bug and contributing to Ubuntu. I was able to reproduce the issue in a VM installing dracut and systemd-boot. This is what I saw:
1. The kernel postinst calls /etc/kernel/postinst.d/dracut which calls dracut to generate /boot/initrd.img-6.12.0-16-generic 2. /etc/kernel/postinst.d/initramfs-tools calls update-initramfs which calls dracut to generate /boot/initrd.img-6.12.0-16-generic. update-initramfs also calls /etc/initramfs/post-update.d/systemd-boot 6.12.0-16-generic /boot/initrd.img-6.12.0-16-generic 3. /etc/kernel/postinst.d/zz-systemd-boot calls /etc/kernel/postinst.d/zz-systemd-boot 6.12.0-16-generic /boot/vmlinuz-6.12.0-16-generic 4. Then something calls /usr/bin/dracut -f --add-confdir hostonly --kernel-image /boot/vmlinuz-6.12.0-16-generic --no-uefi --kver 6.12.0-16-generic /tmp/kernel-install.staging.Z4Ms72/initrd Further investigation is needed. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/2100296 Title: Double initrd in /efi/<machine-id>/<kver>/ with systemd-boot Status in dracut package in Ubuntu: New Status in systemd package in Ubuntu: New Bug description: With the combination of using dracut and systemd-boot from plucky- proposed I get two initrds copied to the EFI partition: /efi/2504a9c37a434fc28843779e4d0b34eb/6.14.0-5-generic /efi/2504a9c37a434fc28843779e4d0b34eb/6.14.0-5-generic/linux /efi/2504a9c37a434fc28843779e4d0b34eb/6.14.0-5-generic/jh7110-starfive-visionfive-2-v1.3b.dtb /efi/2504a9c37a434fc28843779e4d0b34eb/6.14.0-5-generic/initrd /efi/2504a9c37a434fc28843779e4d0b34eb/6.14.0-5-generic/initrd.img-6.14.0-5-generic ..and both of them enabled in the config file root@visionfive2~# cat /efi/loader/entries/2504a9c37a434fc28843779e4d0b34eb-6.14.0-5-generic.conf # Boot Loader Specification type#1 entry # File created by /usr/lib/kernel/install.d/90-loaderentry.install (systemd 257.3-1ubuntu3) title Ubuntu Plucky Puffin (development branch) version 6.14.0-5-generic machine-id 2504a9c37a434fc28843779e4d0b34eb sort-key ubuntu options earlycon console=ttyS0,115200n8 rootwait root=/dev/nvme0n1 rootfstype=btrfs ro rootflags=ssd,subvol=/plucky systemd.machine_id=2504a9c37a434fc28843779e4d0b34eb linux /2504a9c37a434fc28843779e4d0b34eb/6.14.0-5-generic/linux devicetree /2504a9c37a434fc28843779e4d0b34eb/6.14.0-5-generic/jh7110-starfive-visionfive-2-v1.3b.dtb initrd /2504a9c37a434fc28843779e4d0b34eb/6.14.0-5-generic/initrd initrd /2504a9c37a434fc28843779e4d0b34eb/6.14.0-5-generic/initrd.img-6.14.0-5-generic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dracut/+bug/2100296/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp