Hi! I'm attaching a patch that implements this, stolen from i-t: https://sources.debian.org/src/initramfs-tools/0.139/update-initramfs/?hl=L158#L158
Best, наб
From 4b5bcda703b4655c7eea52a092a21fdd61da1204 Mon Sep 17 00:00:00 2001 From: наб <nabijaczlew...@nabijaczleweli.xyz> Date: Tue, 15 Sep 2020 20:32:08 +0200 Subject: [PATCH] Invoke bootloader hooks from /etc/initramfs/post-update.d after making image --- dracut.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dracut.sh b/dracut.sh index 1c8cce82..6c134bad 100755 --- a/dracut.sh +++ b/dracut.sh @@ -2141,4 +2141,10 @@ if test -d $dracutsysrootdir/run/systemd/system; then fi fi +# Invoke policy-conformant bootloader hooks +if [ -d /etc/initramfs/post-update.d/ ]; then + run-parts --arg="${kernel}" --arg="${outfile}" \ + /etc/initramfs/post-update.d/ +fi + exit 0 -- 2.20.1
signature.asc
Description: PGP signature