summaryrefslogtreecommitdiff
path: root/scripts/live
diff options
context:
space:
mode:
authorMarco Amadori <amadorim@vdavda.com>2008-09-16 16:24:37 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:02 +0100
commite44b1421fb3fcfac5097f946a7b40863dd60a364 (patch)
treea31d4f6973222823a9c0cb2188e69da169d26468 /scripts/live
parentbee7730a411ff3222573092b1b3ff06707c4b698 (diff)
downloadlive-boot-e44b1421fb3fcfac5097f946a7b40863dd60a364.tar.gz
live-boot-e44b1421fb3fcfac5097f946a7b40863dd60a364.zip
Included more debug and comments on persistence code.
Diffstat (limited to 'scripts/live')
-rwxr-xr-xscripts/live8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/live b/scripts/live
index b7fd4ce..f9e4fe2 100755
--- a/scripts/live
+++ b/scripts/live
@@ -908,10 +908,14 @@ try_snap ()
cd "${snap_mount}"
zcat "${snapback}/${snapfile}" | /bin/cpio --extract --preserve-modification-time --no-absolute-filenames --sparse --unconditional --make-directories > /dev/null 2>&1
RES=$?
+ if [ "${RES}" != "0" ]
+ then
+ log_warning_msg "failure to \"zcat ${snapback}/${snapfile} | /bin/cpio --extract --preserve-modification-time --no-absolute-filenames --sparse --unconditional --make-directories\""
+ fi
cd "${OLDPWD}"
fi
- umount "${snapback}"
+ umount "${snapback}" || log_warning_msg "failure to \"umount ${snapback}\""
if [ "${RES}" != "0" ]
then
@@ -919,10 +923,12 @@ try_snap ()
fi
else
+ # Try to find if it could be a snapshot partition
dev=$(find_cow_device "${snap_label}")
if [ -b "${dev}" ]
then
+ log_success_msg "found snapshot device on ${dev}"
if echo "${dev}" | grep -qs loop
then
# strange things happens, user confused?