diff options
| author | Marco Amadori <amadorim@vdavda.com> | 2010-09-07 17:38:27 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:59:20 +0100 |
| commit | 089ae56f49ab73a926c28d96baee58986ade09a8 (patch) | |
| tree | 1f18bfcc5d2f0cbb366459980806d51901c47074 /bin | |
| parent | cab29efedefa0cac9b1d56e6f03ab8caf911bf2e (diff) | |
| download | live-boot-089ae56f49ab73a926c28d96baee58986ade09a8.tar.gz live-boot-089ae56f49ab73a926c28d96baee58986ade09a8.zip | |
Fix snapshots' sync-strings usage (Closes: #591330).
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/live-snapshot | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/live-snapshot b/bin/live-snapshot index 08e5fd6..991e704 100755 --- a/bin/live-snapshot +++ b/bin/live-snapshot @@ -7,7 +7,7 @@ # for reuse in another live-boot session. # Look at the manpage for more informations. # -# Copyright (C) 2006-2008 Marco Amadori <marco.amadori@gmail.com> +# Copyright (C) 2006-2010 Marco Amadori <marco.amadori@gmail.com> # Copyright (C) 2008 Chris Lamb <chris@chris-lamb.co.uk> # # This program is free software: you can redistribute it and/or modify @@ -39,7 +39,7 @@ fi . /usr/share/initramfs-tools/scripts/live-helpers -LIVE_CONF="/etc/live.conf" +LIVE_CONF="/etc/live/boot.d/snapshot.conf" if [ -r "${LIVE_CONF}" ] then @@ -242,7 +242,7 @@ Defaults () # Parse resync string if [ -n "${SNAP_RESYNC_STRING}" ] then - SNAP_COW=$(echo "${SNAP_RESYNC_STRING}" | sed -e 's|^/root\([^:.]*\).*$|'"${DEF_SNAP_COW}"'\1|') + SNAP_COW=$(echo "${SNAP_RESYNC_STRING}" | sed -r -e 's#^([^:]*).*$#'"${DEF_SNAP_COW}"'\1#') SNAP_DEV=$(echo "${SNAP_RESYNC_STRING}" | cut -f2 -d ':') SNAP_MNT=$(echo "${SNAP_RESYNC_STRING}" | cut -f3 -d ':') DEST="${MOUNTP}/${SNAP_MNT}" |
