Making inclusion of languagelist conditional in live hook.
[live-boot-grml.git] / hooks / live
index cba7120..d87bfe7 100755 (executable)
@@ -27,8 +27,11 @@ esac
 # Handling live-boot
 
 # Configuration
-mkdir -p "${DESTDIR}"/usr/share/live-boot
-cp /usr/share/live-boot/languagelist "${DESTDIR}"/usr/share/live-boot
+if [ -e /usr/share/live-boot/languagelist ]
+then
+       mkdir -p "${DESTDIR}"/usr/share/live-boot
+       cp /usr/share/live-boot/languagelist "${DESTDIR}"/usr/share/live-boot
+fi
 
 # Directories
 mkdir -p "${DESTDIR}"/lib/live-boot
@@ -84,6 +87,9 @@ then
        uuidgen -r > "${DESTDIR}"/conf/uuid.conf
 fi
 
+# Filesystem: btrfs
+manual_add_modules btrfs
+
 # Filesystem: cifs
 if [ -x /sbin/mount.cifs ]
 then
@@ -151,6 +157,13 @@ fi
 # Program: md5sum
 copy_exec /usr/bin/md5sum /bin
 
+# Program: memdisk
+if [ -x /usr/bin/memdiskfind ]
+then
+       copy_exec /usr/bin/memdiskfind
+       manual_add_modules phram mtdblock
+fi
+
 # Program: cpio
 # busybox and klibc lacks --no-absolute-filenames and --sparse, needed for snapshots
 if [ -e "${DESTDIR}/bin/cpio" ]