From 2d6f480a16a5af6d8a1599716ca8d859b1e69ee4 Mon Sep 17 00:00:00 2001 From: Gaudenz Steinlin Date: Wed, 26 Sep 2012 13:38:39 +0200 Subject: [PATCH 1/1] Removing mountpoint if no persistence layer is found on a device. --- scripts/boot/9990-misc-helpers.sh | 2 ++ 1 file changed, 2 insertions(+) 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 } -- 2.1.4