X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot%2F9990-overlay.sh;h=c6de171a3b60f73c2b840921ba933f726501495b;hb=ba11a22b5e786b2a54f7b463e98124818be3994b;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..c6de171 100755 --- a/scripts/boot/9990-overlay.sh +++ b/scripts/boot/9990-overlay.sh @@ -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 }