diff options
| author | Marco Amadori <amadorim@vdavda.com> | 2010-09-13 17:12:31 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:59:20 +0100 |
| commit | 3c6ccf74fb3500571f2f35db5571135bebfd548f (patch) | |
| tree | 035fde29d6b295ae90e679545c1aead7fea7f7e1 | |
| parent | 089ae56f49ab73a926c28d96baee58986ade09a8 (diff) | |
| download | live-boot-3c6ccf74fb3500571f2f35db5571135bebfd548f.tar.gz live-boot-3c6ccf74fb3500571f2f35db5571135bebfd548f.zip | |
Fixed some snapshot related debug messages.
| -rw-r--r-- | debian/live-boot.init | 1 | ||||
| -rwxr-xr-x | scripts/live | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/debian/live-boot.init b/debian/live-boot.init index b93cfcd..c947e12 100644 --- a/debian/live-boot.init +++ b/debian/live-boot.init @@ -96,6 +96,7 @@ do_stop () { if ! grep -qs nopersistent /proc/cmdline && grep -qs persistent /proc/cmdline then + # ROOTSNAP and HOMESNAP are defined in ${SNAPSHOT_CONF} file if [ ! -z "${ROOTSNAP}" ] then ${DO_SNAPSHOT} --resync-string="${ROOTSNAP}" diff --git a/scripts/live b/scripts/live index bef055a..07deb55 100755 --- a/scripts/live +++ b/scripts/live @@ -957,6 +957,8 @@ do_snap_copy () if [ -b "${fromdev}" ] then + log_success_msg "Copying snapshot ${fromdev} to ${todir}..." + # look for free mem if [ -n "${HOMEMOUNTED}" -a "${snap_type}" = "HOME" ] then @@ -994,9 +996,8 @@ do_snap_copy () return 0 else - return 1 - log_warning_msg "Unable to find the snapshot ${snap_type} medium" + return 1 fi } @@ -1106,7 +1107,7 @@ try_snap () if ! do_snap_copy "${dev}" "${snap_mount}" "${snap_type}" then - log_warning_msg "Impossible to include the ${snap_type} Snapshot" + log_warning_msg "Impossible to include the ${snap_type} Snapshot (i)" return 1 else if [ -n "${snapfile}" ] |
