X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot%2F9990-main.sh;h=171d0ea76831bd5bdefa76ee8e5de92193b5c1fb;hb=698de1fad6697ea3f9c0d723a4b6a21dfe325380;hp=bd378ebc0b9a200f925a39394d23165401c71b10;hpb=adcbcdddfb0df4c6f719cace4f8ff0fdaa3a189c;p=live-boot-grml.git diff --git a/scripts/boot/9990-main.sh b/scripts/boot/9990-main.sh index bd378eb..171d0ea 100755 --- a/scripts/boot/9990-main.sh +++ b/scripts/boot/9990-main.sh @@ -19,22 +19,19 @@ Main () . /live.vars _CMDLINE="$(cat /proc/cmdline)" - Cmdline + Cmdline_old - case "${LIVE_DEBUG}" in - true) - set -x - ;; - esac + Debug - case "${LIVE_READ_ONLY}" in - true) - Read_only - ;; - esac + Read_only Select_eth_device + if [ -e /conf/param.conf ] + then + . /conf/param.conf + fi + # Needed here too because some things (*cough* udev *cough*) # changes the timeout @@ -91,11 +88,7 @@ Main () panic "Unable to find a medium containing a live file system" fi - case "${LIVE_VERIFY_CHECKSUMS}" in - true) - Verify_checksums "${livefs_root}" - ;; - esac + Verify_checksums "${livefs_root}" if [ "${TORAM}" ] then @@ -139,7 +132,7 @@ Main () if [ -n "${ROOT_PID}" ] then - echo "${ROOT_PID}" > "${rootmnt}"/live/root.pid + echo "${ROOT_PID}" > "${rootmnt}"/lib/live/root.pid fi log_end_msg @@ -153,11 +146,8 @@ Main () esac # Move to the new root filesystem so that programs there can get at it. - if [ ! -d /root/live/image ] - then - mkdir -p /root/live/image - mount --move /live/image /root/live/image - fi + mkdir -p /root/lib/live/mount/image + mount --move /live/image /root/lib/live/mount/image # aufs2 in kernel versions around 2.6.33 has a regression: # directories can't be accessed when read for the first the time, @@ -166,10 +156,10 @@ Main () ls /root/* >/dev/null 2>&1 # Move findiso directory to the new root filesystem so that programs there can get at it. - if [ -d /live/findiso ] && [ ! -d /root/live/findiso ] + if [ -d /live/findiso ] then - mkdir -p /root/live/findiso - mount -n --move /live/findiso /root/live/findiso + mkdir -p /root/lib/live/mount/findiso + mount -n --move /live/findiso /root/lib/live/mount/findiso fi # if we do not unmount the ISO we can't run "fsck /dev/ice" later on @@ -179,10 +169,10 @@ Main () then losetup -d /dev/loop0 - if is_mountpoint /root/live/findiso + if is_mountpoint /root/lib/live/mount/findiso then - umount /root/live/findiso - rmdir --ignore-fail-on-non-empty /root/live/findiso \ + umount /root/lib/live/mount/findiso + rmdir --ignore-fail-on-non-empty /root/lib/live/mount/findiso \ >/dev/null 2>&1 || true fi fi @@ -202,11 +192,7 @@ Main () Fstab Netbase - case "${LIVE_SWAPON}" in - true) - Swapon - ;; - esac + Swap case "${UNIONFS}" in unionfs-fuse)