X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot.sh;h=6304c978e3b89ef2894703fbae505a3c6081763f;hb=f4d4be1f0223a2e888286988503ea26fee2a8324;hp=3211ed0472a8ff7d9eda6e08ed364de947c850c6;hpb=d16c9d87a189d136231a48f6ccd1fd54d4debaf5;p=live-boot-grml.git diff --git a/scripts/boot.sh b/scripts/boot.sh index 3211ed0..6304c97 100755 --- a/scripts/boot.sh +++ b/scripts/boot.sh @@ -429,32 +429,6 @@ find_livefs () return 1 } -integrity_check () -{ - media_mountpoint="${1}" - - log_begin_msg "Checking media integrity" - - cd ${media_mountpoint} - /bin/md5sum -c md5sum.txt < /dev/tty8 > /dev/tty8 - RC="${?}" - - log_end_msg - - if [ "${RC}" -eq 0 ] - then - log_success_msg "Everything ok, will reboot in 10 seconds." - sleep 10 - cd / - umount ${media_mountpoint} - sync - echo u > /proc/sysrq-trigger - echo b > /proc/sysrq-trigger - else - panic "Not ok, a media defect is likely, switch to VT8 for details." - fi -} - mountroot () { if [ -x /scripts/local-top/cryptroot ]; then @@ -470,11 +444,16 @@ mountroot () . /live.vars - Arguments + _CMDLINE="$(cat /proc/cmdline)" + Cmdline + + case "${LIVE_DEBUG}" in + true) + set -x + ;; + esac - # make sure all harddisk devices are read-only - # this is important for forensic investigations - case "${READ_ONLY}" in + case "${LIVE_READ_ONLY}" in true) Read_only ;; @@ -538,10 +517,11 @@ mountroot () panic "Unable to find a medium containing a live file system" fi - if [ "${INTEGRITY_CHECK}" ] - then - integrity_check "${livefs_root}" - fi + case "${LIVE_VERIFY_CHECKSUMS}" in + true) + Verify_checksums "${livefs_root}" + ;; + esac if [ "${TORAM}" ] then