X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpostinst;h=b94b3bdfb321196758842f84e1b9051db346e848;hb=c360fb1bfc43241d41bba88795c48d1fc49c1efe;hp=71d71e39e6e66a716855aee484cba406c77225d9;hpb=b9590afc81e0ef83eb4252f68c3ec41fc88a7756;p=live-boot-grml.git diff --git a/debian/postinst b/debian/postinst index 71d71e3..b94b3bd 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,24 +1,25 @@ #!/bin/sh -case "$(ls -l /boot/vmlinuz-* | wc -l)" in +case "$(ls -l /boot/vmlinu* | wc -l)" in 1) # We only have one kernel installed, so we can use "-u" # 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#