summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarco Amadori <marco.amadori@gmail.com>2008-06-06 23:03:27 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:00 +0100
commite0c2f1d0cef706c3a87aa3fb6d17c01e117c66ad (patch)
treeb825fcdc169606b9411322e2c5e7ed5e13a3444a /bin
parentb6a42f34ac3b2b1aab0c526118f0dcf9c692d7c4 (diff)
downloadlive-boot-e0c2f1d0cef706c3a87aa3fb6d17c01e117c66ad.tar.gz
live-boot-e0c2f1d0cef706c3a87aa3fb6d17c01e117c66ad.zip
live-snapshot: fixes snapshotting from resync string.
* Now it properly overwrites previous snapshot instead of just putting it in the $PWD.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/live-snapshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/live-snapshot b/bin/live-snapshot
index dc1fa6d..b523c4a 100755
--- a/bin/live-snapshot
+++ b/bin/live-snapshot
@@ -206,7 +206,7 @@ Defaults ()
then
SNAP_COW=$(echo "${SNAP_RESYNC_STRING}" | cut -f1 -d ':')
SNAP_DEV=$(echo "${SNAP_RESYNC_STRING}" | cut -f2 -d ':')
- DEST=$(echo "${SNAP_RESYNC_STRING}" | cut -f3 -d ':')
+ DEST="${MOUNTP}/$(echo ${SNAP_RESYNC_STRING} | cut -f3 -d ':')"
case "${DEST}" in
*.cpio.gz)