. /etc/live/boot.conf
fi
-if ls /etc/live/boot.d/* > /dev/null 2>&1
+if ls /etc/live/boot.d/*.conf > /dev/null 2>&1
then
- for _FILE in /etc/live/boot.d/*
+ for _FILE in /etc/live/boot.d/*.conf
do
. ${_FILE}
done
# 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 ]
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
manual_add_modules crc32c
fi
-# DNS for initramfs
-#copy_exec /lib/libnss_files.so.* /lib # /etc/hosts and /etc/passwd
-# DNS server:
-if ls /lib/libnss_dns.so.* >/dev/null 2>&1 ; then # non-multiarch libc
- copy_exec /lib/libnss_dns.so.* /lib
-elif ls /lib/*/libnss_dns.so.* >/dev/null 2>&1 ; then # multiarch libc
- for libnss in /lib/*/libnss_dns.so.* ; do
- copy_exec "$libnss"
- done
-else
- echo "Warning: libnss_dns.so.* not found. DNS in initramfs not functional."
+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
-#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_UNIONMOUNT}" = "true" ]
then