Bug#1016538: systemd-boot: Kernel postinst and initramfs post-update hooks copy initrd twice
Fouad FAKIH
fouad.fakih at gmail.com
Thu Sep 8 12:06:40 BST 2022
#1014455 talks about running the scripts twice.
The initrd copied twice is caused by /etc/initramfs/post-
update.d/systemd-boot which calls kernel-install with initrd optional
parameter.
This leads to having the initrd copied twice :
$kernel/initrd
$kernel/initrd-$version
But systemd entries are correctly configured using the last initrd
copied.
Changing the kernel-install call in /etc/initramfs/post-
update.d/systemd-boot from :
kernel-install add "$1" "/boot/vmlinuz-$1" "$2"
To :
kernel-install add "$1" "/boot/vmlinuz-$1"
Solves the issue for me.
More information about the Pkg-systemd-maintainers
mailing list