X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive;h=f9e4fe269c0154e4ffe70c29e4d8c50ea8b35227;hb=bdb01ba302ac1c351f62d95f123b722a5281be15;hp=08810cbf2925d324ba855eca1a45498546745c14;hpb=a50ce9d0fcbf4b6fcc8c4ac97fcfe5625b174a19;p=live-boot-grml.git diff --git a/scripts/live b/scripts/live index 08810cb..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} ] + if [ -b "${dev}" ] then + log_success_msg "found snapshot device on ${dev}" if echo "${dev}" | grep -qs loop then # strange things happens, user confused?