From: Marco Amadori Date: Wed, 28 May 2008 08:34:35 +0000 (+0200) Subject: Calling live-snapshot now produces an output file. X-Git-Tag: debian/2.0.15-1~541 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=8e528a99632ef0ae43826dd7a487c4a0c12010a6;hp=f02ff60da1a862bb4eb0631cb9b7e527ffa1f32e;p=live-boot-grml.git 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. --- 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 ()