projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Factoring out debug into an own function.
[live-boot-grml.git]
/
scripts
/
boot
/
0120-read-only
diff --git
a/scripts/boot/0120-read-only
b/scripts/boot/0120-read-only
index
588d57b
..
948c2d5
100755
(executable)
--- a/
scripts/boot/0120-read-only
+++ b/
scripts/boot/0120-read-only
@@
-4,6
+4,20
@@
Read_only ()
{
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*"
# 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*"