Am 12.07.22 um 18:16 schrieb Michael Biebl:
Control: tags -1 + moreinfoAm 08.07.22 um 11:14 schrieb Norbert Lange:Package: systemd-boot Version: 251.2-7 Severity: normal X-Debbugs-Cc: nolang...@gmail.com Dear Maintainer, The kernel hook in /etc/kernel/{post,pre}inst.d should be named correctly, to quote the kernel-handbook [1]:hook scripts for boot loaders must be named usingthe prefix zz- and no other packages may use this prefix so zz-systemd-boot whould be correct.This looks super ugly :-/ At the very least they should have picked numerical prefixes...That said, why does the kernel hook need to run late/last? I.e., does this actually cause any real issues? If so, can you elaborate.
I looked into this a bit more and it is still not obvious/clear to me, why the kernel hook for systemd needs to use the zz prefix (i.e. run late/last). The systemd kernel hook copies the vmlinux-* binary to /boot/efi, but this file is available once the linux-image-* package has been unpacked.
That said, I could understand if the initramfs hook needs to run last, i.e. /etc/initramfs/post-update.d/systemd-boot. As this hook will copy the initrd to /boot/efi and initramfs hooks *do* modify the initrd image. The kernel handbook doesn't mention anything in that regard though, so it seems to be incomplete/wrong for the purposes of systemd-boot?
I'm reluctant to blindly change anything without understanding why. So would welcome further input from someone who is familiar with that topic. Regards, Michael
OpenPGP_signature
Description: OpenPGP digital signature