Merge branch 'debian'
[live-boot-grml.git] / hooks / live
index 3862a60..b023d4b 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 ]
@@ -134,8 +141,9 @@ manual_add_modules squashfs
 manual_add_modules sqlzma
 manual_add_modules unlzma
 
-# Filesystem: aufs/unionfs
+# Filesystem: aufs/overlayfs/unionfs
 manual_add_modules aufs
+manual_add_modules overlayfs
 manual_add_modules unionfs
 
 # Filesystem: unionfs-fuse
@@ -252,14 +260,17 @@ then
        manual_add_modules crc32c
 fi
 
-# DNS for initramfs
-#copy_exec /lib/libnss_files.so.*      /lib  # /etc/hosts and /etc/passwd
-copy_exec /lib/libnss_dns.so.*      /lib  # DNS server
-#copy_exec /lib/libnss_compat.so.*      /lib  # /etc/passwd
-
-# Configuration file - may be needed if /etc/hosts is used.
-#mkdir -p $DESTDIR/etc
-#cp -p /etc/nsswitch.conf $DESTDIR/etc
+if [ "${LIVE_DNS}" = "true" ]
+then
+       [ "${QUIET}" ] || echo -n " "dns
+       #copy_exec /lib/libnss_files.so.*      /lib  # /etc/hosts and /etc/passwd
+       copy_exec /lib/libnss_dns.so.*      /lib  # DNS server
+       #copy_exec /lib/libnss_compat.so.*      /lib  # /etc/passwd
+
+       # Configuration file - may be needed if /etc/hosts is used.
+       #mkdir -p $DESTDIR/etc
+       #cp -p /etc/nsswitch.conf $DESTDIR/etc
+fi
 
 if [ "${LIVE_UNIONMOUNT}" = "true" ]
 then