Merge remote-tracking branch 'live-systems/debian' into debian
[live-boot-grml.git] / components / 9990-overlay.sh
similarity index 99%
rename from scripts/boot/9990-overlay.sh
rename to components/9990-overlay.sh
index c6de171..4ae5c07 100755 (executable)
@@ -353,7 +353,7 @@ setup_unionfs ()
                live_rootfs="/live/rootfs/${d##*/}"
                live_rootfs_list="${live_rootfs_list} ${live_rootfs}"
                mkdir -p "${live_rootfs}"
-               case d in
+               case "${d}" in
                        *.dir)
                                # do nothing # mount -o bind "${d}" "${live_rootfs}"
                                ;;
@@ -381,7 +381,7 @@ setup_unionfs ()
                # Gather information about custom mounts from devies detected as overlays
                get_custom_mounts ${custom_mounts} ${overlay_devices}
 
-               [ -n "${DEBUG}" ] && cp ${custom_mounts} "/lib/live/mount/persistence"
+               [ -n "${LIVE_BOOT_DEBUG}" ] && cp ${custom_mounts} "/lib/live/mount/persistence"
 
                # Now we do the actual mounting (and symlinking)
                local used_overlays