debian: only try to execute update-initramfs if it exists

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debian
Theodore Ts'o 2016-05-20 13:37:20 -04:00
parent 43e6c79a73
commit 01995578ed
1 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,10 @@
# Abort on error.
set -e
update-initramfs -u
if [ -x /usr/sbin/update-initramfs -a \
-e /etc/initramfs-tools/initramfs.conf ]; then
update-initramfs -u
fi
#DEBHELPER#