From: Gaudenz Steinlin Date: Wed, 26 Sep 2012 11:38:39 +0000 (+0200) Subject: Removing mountpoint if no persistence layer is found on a device. X-Git-Tag: debian/3.0_b3-1~3 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=2d6f480a16a5af6d8a1599716ca8d859b1e69ee4;hp=b7f0254874e284b1370f00056a72541fccccd07e;p=live-boot-grml.git Removing mountpoint if no persistence layer is found on a device. --- diff --git a/scripts/boot/9990-misc-helpers.sh b/scripts/boot/9990-misc-helpers.sh index 117876f..4429c33 100755 --- a/scripts/boot/9990-misc-helpers.sh +++ b/scripts/boot/9990-misc-helpers.sh @@ -911,7 +911,9 @@ probe_for_file_name () then echo ${ret} else + # unmount and remove mountpoint umount ${backing} > /dev/null 2>&1 || true + rmdir ${backing} > /dev/null 2>&1 || true fi }