X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpostinst;h=b2d37bb73e66bcb425fa27fabea594de3028fdd2;hb=3975274430191418a7f7cbda9ea7958df16f8dbb;hp=71d71e39e6e66a716855aee484cba406c77225d9;hpb=acc6a13aea40a6d24ee04f004aa322b42ba9d00b;p=live-boot-grml.git diff --git a/debian/postinst b/debian/postinst index 71d71e3..b2d37bb 100644 --- a/debian/postinst +++ b/debian/postinst @@ -6,19 +6,20 @@ case "$(ls -l /boot/vmlinuz-* | wc -l)" in # which will use dpkg-trigger inside update-initramfs INITRAMFS_ARGS="-u" ;; + *) INITRAMFS_ARGS="-u -k all" ;; esac -if [ -x /usr/sbin/update-initramfs ] && [ "x$1" != "xtriggered" ] && \ - dpkg --compare-versions "$DPKG_RUNNING_VERSION" ge '1.14.18' +if [ -x /usr/sbin/update-initramfs ] && [ "${1}" != "triggered" ] && \ + dpkg --compare-versions "${DPKG_RUNNING_VERSION}" ge "1.14.18" then # this activates the trigger, if triggers are working update-initramfs ${INITRAMFS_ARGS} else # force it to actually happen - DPKG_MAINTSCRIPT_PACKAGE='' update-initramfs ${INITRAMFS_ARGS} + DPKG_MAINTSCRIPT_PACKAGE="" update-initramfs ${INITRAMFS_ARGS} fi #DEBHELPER#