X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fboot%2F9990-overlay.sh;h=6b620938fe496bffd3410c8327f118e13404c20d;hb=1b6cb3d57b8cbd3f0a34fadd235d9a85bde1e7bf;hp=71e9a74934ceed4406b8a3337a53fa9e5b6ed962;hpb=9555545410914f4f6cf1b1c00bb4a5b5dfe2b5cc;p=live-boot-grml.git diff --git a/scripts/boot/9990-overlay.sh b/scripts/boot/9990-overlay.sh index 71e9a74..6b62093 100755 --- a/scripts/boot/9990-overlay.sh +++ b/scripts/boot/9990-overlay.sh @@ -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 @@ -392,7 +392,7 @@ setup_unionfs () # Close unused overlays (e.g. due to missing $persistence_list) for overlay in ${overlay_devices} do - if echo ${used_overlays} | grep -qve "^\(.* \)\?${device}\( .*\)\?$" + if echo ${used_overlays} | grep -qve "^\(.* \)\?${overlay}\( .*\)\?$" then close_persistence_media ${overlay} fi @@ -402,5 +402,5 @@ setup_unionfs () # ensure that a potentially stray tmpfs gets removed # otherways, initramfs-tools is unable to remove /live # and fails to boot - umount /live/overlay || true + umount /live/overlay > /dev/null 2>&1 || true }