Converting read-only initramfs-tools pre-mount script into regular live-boot script.
[live-boot-grml.git] / scripts / boot.sh
index 5a64d70..eeaa4dc 100755 (executable)
@@ -472,6 +472,14 @@ mountroot ()
 
        Arguments
 
+       # make sure all harddisk devices are read-only
+       # this is important for forensic investigations
+       case "${READ_ONLY}" in
+               true)
+                       Read_only
+                       ;;
+       esac
+
        maybe_break live-premount
        log_begin_msg "Running /scripts/live-premount"
        run_scripts /scripts/live-premount