diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 05:43:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 05:43:00 +0000 |
commit | 6032561e9b12b99fa51b4b38bdeee7f831adcaee (patch) | |
tree | 30d9958682cf814635ba3fcfe6457463fed91383 /debian/initramfs-tools.postinst | |
parent | Adding upstream version 0.143. (diff) | |
download | initramfs-tools-debian.tar.xz initramfs-tools-debian.zip |
Adding debian version 0.143.debian/0.143debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/initramfs-tools.postinst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/initramfs-tools.postinst b/debian/initramfs-tools.postinst new file mode 100644 index 0000000..7b7a789 --- /dev/null +++ b/debian/initramfs-tools.postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +# Regenerate initramfs whenever we go to dpkg state `installed' +if [ "x$1" != xtriggered ]; then + # this activates the trigger, if triggers are working + update-initramfs -u +else + # force it to actually happen + DPKG_MAINTSCRIPT_PACKAGE='' update-initramfs -u +fi + +#DEBHELPER# |