X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=26414877b782f64046a03f245218acc6c4e17131;hb=1736a26b70a1af93c290cfa9f4e7b593b7554d22;hp=19cc955eaa481eaf90ee7af78237ec8cb9f14ea3;hpb=bee7730a411ff3222573092b1b3ff06707c4b698;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index 19cc955..2641487 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -146,7 +146,7 @@ fs_size () mountp="/mnt/tmp_fs_size" mkdir -p "${mountp}" - mount -t $(get_fstype "${dev}") -o ro "${dev}" "${mountp}" + mount -t $(get_fstype "${dev}") -o ro "${dev}" "${mountp}" || log_warning_msg "cannot mount -t $(get_fstype ${dev}) -o ro ${dev} ${mountp}" doumount=1 fi @@ -163,7 +163,7 @@ fs_size () if [ -n "${doumount}" ] then - umount "${mountp}" + umount "${mountp}" || log_warning_msg "cannot umount ${mountp}" rmdir "${mountp}" fi @@ -349,6 +349,7 @@ find_files () if [ -f "${snap_backing}/${filename}" ] then echo "${devname} ${snap_backing} ${filename}" + # return without mounting, it will be umounted later return 0 fi done