Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #92862

Bug#1095646: A possible workaround for two initrds being installed on kernel postinst

From Vsevolod Kozlov <zaba@mm.st>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1095646: A possible workaround for two initrds being installed on kernel postinst
Date 2026-05-30 12:00 +0200
Message-ID <N0oE1-8ZLx-1@gated-at.bofh.it> (permalink)
References <Kez3r-fJZS-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


For what it's worth, I have worked around this issue locally by modifying the
postinst script from systemd-boot to explicitly use the initrd generated by
the dracut script:

/etc/kernel/postinst.d/zz-systemd-boot:
-kernel-install add "$1" "$2"
+kernel-install add "$1" "$2" "${2%/*}/initrd.img-$1"

This is not very nice, but this also happens to bring it in line with the
behaviour of the systemd-boot initramfs post-update hook, which always uses
the three-argument form of kernel-instsll (but it's easier to do there because
the script gets the path of the generated initrd as one of its arguments).

Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread


Thread

Bug#1095646: A possible workaround for two initrds being installed on kernel postinst Vsevolod Kozlov <zaba@mm.st> - 2026-05-30 12:00 +0200

csiph-web