Printing out a warning message in initramfs-tools hook if backend is installed but...
authorDaniel Baumann <daniel@debian.org>
Wed, 31 Aug 2011 18:55:05 +0000 (20:55 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 31 Aug 2011 18:55:52 +0000 (20:55 +0200)
hooks/live

index 309c26f..c916381 100755 (executable)
@@ -42,6 +42,13 @@ fi
 
 # Handling live-boot
 
+if [ ! -e /usr/share/live-boot ]
+then
+       echo "W: live-boot-initramfs-tools (backend) installed without live-boot,"
+       echo "W: this initramfs will *NOT* have live support."
+       exit 0
+fi
+
 [ "${QUIET}" ] || echo -n " "core
 # Configuration
 if [ -e /usr/share/live-boot/languagelist ]