Whamcloud - gitweb
debian: only try to execute update-initramfs if it exists
authorTheodore Ts'o <tytso@mit.edu>
Fri, 20 May 2016 17:37:20 +0000 (13:37 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 20 May 2016 17:37:20 +0000 (13:37 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debian/e2fsprogs.postinst

index 1329255..00ac363 100644 (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#