Making live-boot-initramfs-tools.postinst more error safe.
authorDaniel Baumann <daniel@debian.org>
Mon, 25 Jun 2012 20:47:08 +0000 (22:47 +0200)
committerDaniel Baumann <daniel@debian.org>
Mon, 25 Jun 2012 20:47:08 +0000 (22:47 +0200)
debian/live-boot-initramfs-tools.postinst

index 2bae8ae..d11c8d9 100644 (file)
@@ -4,7 +4,7 @@ set -e
 
 case "${1}" in
        configure)
-               if [ -x /usr/sbin/update-initramfs ]
+               if [ -x /usr/sbin/update-initramfs ] && [ -e /etc/initramfs-tools/initramfs.conf ]
                then
                        update-initramfs -u
                fi