diff options
Diffstat (limited to 'debian/intel-microcode.postrm')
-rw-r--r-- | debian/intel-microcode.postrm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/debian/intel-microcode.postrm b/debian/intel-microcode.postrm index 57791c8..425c182 100644 --- a/debian/intel-microcode.postrm +++ b/debian/intel-microcode.postrm @@ -20,9 +20,10 @@ set -e case "$1" in purge|remove) - if [ -x /usr/sbin/update-initramfs ] && [ -e /etc/initramfs-tools/initramfs.conf ] ; then - update-initramfs -u - fi + dpkg-trigger --no-await update-initramfs || { + #shellcheck disable=SC2015 + [ -e /etc/initramfs-tools/initramfs.conf ] && update-initramfs -u || : + } ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |