Removing some dead boot parameters.
[live-boot-grml.git] / scripts / boot.sh
index 0b18a9c..3211ed0 100755 (executable)
@@ -2,6 +2,12 @@
 
 # set -e
 
+if [ -e /scripts/functions ]
+then
+       # initramfs-tools specific (FIXME)
+       . /scripts/functions
+fi
+
 for _SCRIPT in /lib/live/boot/*
 do
        if [ -e "${_SCRIPT}" ]
@@ -462,15 +468,19 @@ mountroot ()
        tail -f boot.log >&7 &
        tailpid="${!}"
 
-       # Ensure 'panic' function is overridden
-       . /scripts/live-functions
+       . /live.vars
 
        Arguments
 
-       maybe_break live-premount
-       log_begin_msg "Running /scripts/live-premount"
-       run_scripts /scripts/live-premount
-       log_end_msg
+       # make sure all harddisk devices are read-only
+       # this is important for forensic investigations
+       case "${READ_ONLY}" in
+               true)
+                       Read_only
+                       ;;
+       esac
+
+       Select_eth_device
 
        # Needed here too because some things (*cough* udev *cough*)
        # changes the timeout