X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot%2F0120-read-only;h=948c2d569a0a8ac06668be23fff1eed93ed12d02;hb=e8ced87a39fc0a748506f0663ac61449685d5957;hp=588d57b569b76f678dd1e39cb34797426699e41d;hpb=19d21915752731725ec85eab1269e677186d573e;p=live-boot-grml.git diff --git a/scripts/boot/0120-read-only b/scripts/boot/0120-read-only index 588d57b..948c2d5 100755 --- a/scripts/boot/0120-read-only +++ b/scripts/boot/0120-read-only @@ -4,6 +4,20 @@ Read_only () { + for _PARAMETER in ${_CMDLINE} + do + case "${_PARAMETER}" in + live-boot.read-only|read-only) + LIVE_READ_ONLY="true" + ;; + esac + done + + if [ "${LIVE_READ_ONLY}" != "true" ] + then + return 0 + fi + # Marking some block devices as read-only to ensure that nothing # gets written as linux still writes to 'only' read-only mounted filesystems. _DEVICES="/dev/sd* /dev/vd*"