From 8abde0c3abde983af7f23fade4a9c66fc6c9fd73 Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Wed, 28 May 2008 10:34:35 +0200 Subject: [PATCH] Calling live-snapshot now produces an output file. * Invoking live-snapshot without parameters now produces an output file useful to be copied on a writable media as intended. Signed-off-by: Marco Amadori --- bin/live-snapshot | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/live-snapshot b/bin/live-snapshot index 12c79b8..c50bcc0 100755 --- a/bin/live-snapshot +++ b/bin/live-snapshot @@ -313,8 +313,13 @@ Do_snapshot () Clean () { - umount "${MOUNTP}" - rmdir "${MOUNTP}" + if echo "${DEST}" | grep -q "${MOUNTP}" + then + echo "${DEST} is present on ${MOUNTP}, therefore no automatic unmounting the latter." > /dev/null 1>&2 + else + umount "${MOUNTP}" + rmdir "${MOUNTP}" + fi } Main () -- 2.1.4