7 for _PARAMETER in ${_CMDLINE}
9 case "${_PARAMETER}" in
10 live-boot.read-only|read-only)
16 if [ "${LIVE_READ_ONLY}" != "true" ]
21 # Marking some block devices as read-only to ensure that nothing
22 # gets written as linux still writes to 'only' read-only mounted filesystems.
23 _DEVICES="/dev/sd* /dev/vd*"
25 for _DEVICE in ${_DEVICES}
27 if [ ! -b "${_DEVICE}" ]
32 echo -n "live-boot: Setting ${_DEVICE} read-only..." > /dev/console
34 blockdev --setro ${_DEVICE}
39 echo " done, use 'blockdev --setrw ${_DEVICE}' to set read-write." > /dev/console
43 echo " failed." > /dev/console