summaryrefslogtreecommitdiffstats
path: root/debian/patches/debian-initramfs-post-update.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:37 +0000
commitfad46a0b891bb10264a919afb6fb31ec3d714c68 (patch)
tree2168ccca92da5e6bf9379cf625669cd26571edbd /debian/patches/debian-initramfs-post-update.patch
parentMerging upstream version 102. (diff)
downloaddracut-fad46a0b891bb10264a919afb6fb31ec3d714c68.tar.xz
dracut-fad46a0b891bb10264a919afb6fb31ec3d714c68.zip
Adding debian version 102-1.debian/102-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/debian-initramfs-post-update.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/debian-initramfs-post-update.patch b/debian/patches/debian-initramfs-post-update.patch
new file mode 100644
index 0000000..e2b5da8
--- /dev/null
+++ b/debian/patches/debian-initramfs-post-update.patch
@@ -0,0 +1,22 @@
+Description: Run bootloader hooks from /etc/initramfs/post-update.d after making
+ the image, and add $NO_POST_UPDATE_HOOKS to disable this
+ .
+ See <https://kernel-team.pages.debian.net/kernel-handbook/ch-update-hooks.html#s-initramfs-hooks>
+Author: наб <nabijaczleweli@nabijaczleweli.xyz>
+Bug-Debian: https://bugs.debian.org/753752
+Forwarded: not-needed
+Last-Update: 2022-11-17
+
+--- a/dracut.sh
++++ b/dracut.sh
+@@ -2685,4 +2685,10 @@
+ fi
+ fi
+
++# Invoke policy-conformant bootloader hooks
++if [ -z "$NO_POST_UPDATE_HOOKS" ] && [ -d /etc/initramfs/post-update.d/ ]; then
++ run-parts --arg="${kernel}" --arg="${outfile}" \
++ /etc/initramfs/post-update.d/
++fi
++
+ exit 0