X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-main.sh;h=b58570449755d08e873695269508e0b281b8c5b4;hb=00b1535be06d4c045033a7f7b8a8226d44e40ded;hp=bab0bd7a6ba76db3d814804245a93226db4fd675;hpb=a28b96c521b85100e32093b9e65476947a780db3;p=live-boot-grml.git diff --git a/components/9990-main.sh b/components/9990-main.sh index bab0bd7..b585704 100755 --- a/components/9990-main.sh +++ b/components/9990-main.sh @@ -111,10 +111,10 @@ Live () then losetup -d /dev/loop0 - if is_mountpoint /live/fromiso + if is_mountpoint /run/live/fromiso then - umount /live/fromiso - rmdir --ignore-fail-on-non-empty /live/fromiso \ + umount /run/live/fromiso + rmdir --ignore-fail-on-non-empty /run/live/fromiso \ >/dev/null 2>&1 || true fi fi @@ -182,5 +182,7 @@ Live () exec 1>&6 6>&- exec 2>&7 7>&- kill ${tailpid} - [ -w "${rootmnt}/var/log/" ] && mkdir -p "${rootmnt}/var/log/live" && cp boot.log "${rootmnt}/var/log/live" 2>/dev/null + [ -w "${rootmnt}/var/log/" ] && mkdir -p "${rootmnt}/var/log/live" && ( \ + cp boot.log "${rootmnt}/var/log/live" 2>/dev/null; \ + cp fsck.log "${rootmnt}/var/log/live" 2>/dev/null ) }