summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Amadori <marco.amadori@gmail.com>2008-06-08 01:09:27 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:00 +0100
commit9f0888fd9ffcbb319722a39e9f357693800f2b6b (patch)
tree778660790a152d9bd036ce94298f9c25eae564bb
parentb7e456cbafb2d594a9f9317f11a99740bd1af4d6 (diff)
downloadlive-boot-9f0888fd9ffcbb319722a39e9f357693800f2b6b.tar.gz
live-boot-9f0888fd9ffcbb319722a39e9f357693800f2b6b.zip
live-snapshot: nicer default auto unmount logic.
-rwxr-xr-xbin/live-snapshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/live-snapshot b/bin/live-snapshot
index 03245ea..5837f5d 100755
--- a/bin/live-snapshot
+++ b/bin/live-snapshot
@@ -307,7 +307,7 @@ Do_snapshot ()
Clean ()
{
- if echo "${DEST}" | grep -q "${MOUNTP}"
+ if [ -z "${SNAP_RESYNC_STRING}" ] && echo "${DEST}" | grep -q "${MOUNTP}"
then
echo "${DEST} is present on ${MOUNTP}, therefore no automatic unmounting the latter." > /dev/null 1>&2
else