projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updating read-only handling to new parameter handling.
[live-boot-grml.git]
/
scripts
/
boot
/
arguments.sh
diff --git
a/scripts/boot/arguments.sh
b/scripts/boot/arguments.sh
index
e8636ee
..
5f34512
100755
(executable)
--- a/
scripts/boot/arguments.sh
+++ b/
scripts/boot/arguments.sh
@@
-4,33
+4,26
@@
Arguments ()
{
Arguments ()
{
- PRESEEDS=""
- LOCATIONS=""
-
for ARGUMENT in $(cat /proc/cmdline)
do
case "${ARGUMENT}" in
for ARGUMENT in $(cat /proc/cmdline)
do
case "${ARGUMENT}" in
- read-only)
- READ_ONLY="true"
+ live-boot.read-only|read-only)
+ LIVE_READ_ONLY="true"
+ export LIVE_READ_ONLY
+ ;;
+
+ live-boot.verify-checksums|verify-checksums)
+ LIVE_VERIFY_CHECKSUMS="true"
+ export LIVE_VERIFY_CHECKSUMS
;;
;;
+ # parameters below need review
skipconfig)
skipconfig)
- NOACCESSIBILITY="true"
NOFASTBOOT="true"
NOFSTAB="true"
NONETWORKING="true"
NOFASTBOOT="true"
NOFSTAB="true"
NONETWORKING="true"
- export NOACCESSIBILITY NOFASTBOOT NOFSTAB NONETWORKING
- ;;
-
- access=*)
- ACCESS="${ARGUMENT#access=}"
- export ACCESS
- ;;
-
- console=*)
- DEFCONSOLE="${ARGUMENT#*=}"
- export DEFCONSOLE
+ export NOFASTBOOT NOFSTAB NONETWORKING
;;
BOOTIF=*)
;;
BOOTIF=*)
@@
-47,12
+40,13
@@
Arguments ()
dhcp)
# Force dhcp even while netbooting
# Use for debugging in case somebody works on fixing dhclient
dhcp)
# Force dhcp even while netbooting
# Use for debugging in case somebody works on fixing dhclient
- DHCP="
Forc
e";
+ DHCP="
tru
e";
export DHCP
;;
nodhcp)
export DHCP
;;
nodhcp)
- unset DHCP
+ DHCP=""
+ export DHCP
;;
ethdevice=*)
;;
ethdevice=*)
@@
-76,11
+70,6
@@
Arguments ()
export FINDISO
;;
export FINDISO
;;
- forcepersistencefsck)
- FORCEPERSISTENCEFSCK="true"
- export FORCEPERSISTENCEFSCK
- ;;
-
ftpfs=*)
FTPFS="${ARGUMENT#ftpfs=}"
export FTPFS
ftpfs=*)
FTPFS="${ARGUMENT#ftpfs=}"
export FTPFS
@@
-114,11
+103,6
@@
Arguments ()
export IGNORE_UUID
;;
export IGNORE_UUID
;;
- integrity-check)
- INTEGRITY_CHECK="true"
- export INTEGRITY_CHECK
- ;;
-
ip=*)
STATICIP="${ARGUMENT#ip=}"
ip=*)
STATICIP="${ARGUMENT#ip=}"
@@
-130,11
+114,6
@@
Arguments ()
export STATICIP
;;
export STATICIP
;;
- live-getty)
- LIVE_GETTY="1"
- export LIVE_GETTY
- ;;
-
live-media=*|bootfrom=*)
LIVE_MEDIA="${ARGUMENT#*=}"
export LIVE_MEDIA
live-media=*|bootfrom=*)
LIVE_MEDIA="${ARGUMENT#*=}"
export LIVE_MEDIA
@@
-180,11
+159,6
@@
Arguments ()
export NFS_COW
;;
export NFS_COW
;;
- noaccessibility)
- NOACCESSIBILITY="true"
- export NOACCESSIBILITY
- ;;
-
nofastboot)
NOFASTBOOT="true"
export NOFASTBOOT
nofastboot)
NOFASTBOOT="true"
export NOFASTBOOT
@@
-271,23
+245,6
@@
Arguments ()
export QUICKUSBMODULES
;;
export QUICKUSBMODULES
;;
- preseed/file=*|file=*)
- LOCATIONS="${ARGUMENT#*=} ${LOCATIONS}"
- export LOCATIONS
- ;;
-
- nopreseed)
- NOPRESEED="true"
- export NOPRESEED
- ;;
-
- */*=*)
- question="${ARGUMENT%%=*}"
- value="${ARGUMENT#*=}"
- PRESEEDS="${PRESEEDS}\"${question}=${value}\" "
- export PRESEEDS
- ;;
-
showmounts)
SHOWMOUNTS="true"
export SHOWMOUNTS
showmounts)
SHOWMOUNTS="true"
export SHOWMOUNTS