3 case "$(ls -l /boot/vmlinuz-* | wc -l)" in
5 # We only have one kernel installed, so we can use "-u"
6 # which will use dpkg-trigger inside update-initramfs
10 INITRAMFS_ARGS="-u -k all"
14 if [ -x /usr/sbin/update-initramfs ] && [ "x$1" != "xtriggered" ] && \
15 dpkg --compare-versions "$DPKG_RUNNING_VERSION" ge '1.14.18'
17 # this activates the trigger, if triggers are working
18 update-initramfs ${INITRAMFS_ARGS}
20 # force it to actually happen
21 DPKG_MAINTSCRIPT_PACKAGE='' update-initramfs ${INITRAMFS_ARGS}