7 for _PARAMETER
in ${_CMDLINE}
9 case "${_PARAMETER}" in
14 export NOFSTAB NONETWORKING
22 # Force dhcp even while netbooting
23 # Use for debugging in case somebody works on fixing dhclient
34 DEVICE
="${_PARAMETER#ethdevice=}"
36 export DEVICE ETHDEVICE
40 ETHDEV_TIMEOUT
="${_PARAMETER#ethdevice-timeout=}"
45 FETCH
="${_PARAMETER#fetch=}"
50 FINDISO
="${_PARAMETER#findiso=}"
55 FTPFS
="${_PARAMETER#ftpfs=}"
60 HTTPFS
="${_PARAMETER#httpfs=}"
65 ISCSI
="${_PARAMETER#iscsi=}"
66 #ip:port - separated by ;
67 ISCSI_PORTAL
="${ISCSI%;*}"
68 if echo "${ISCSI_PORTAL}" |
grep -q , ; then
69 ISCSI_SERVER
="${ISCSI_PORTAL%,*}"
70 ISCSI_PORT
="${ISCSI_PORTAL#*,}"
73 ISCSI_TARGET
="${ISCSI#*;}"
74 export ISCSI ISCSI_PORTAL ISCSI_TARGET ISCSI_SERVER ISCSI_PORT
78 FROMISO
="${_PARAMETER#*=}"
88 STATICIP
="${_PARAMETER#ip=}"
90 if [ -z "${STATICIP}" ]
98 live-media
=*|bootfrom
=*)
99 LIVE_MEDIA
="${_PARAMETER#*=}"
103 live-media-encryption
=*|encryption
=*)
104 LIVE_MEDIA_ENCRYPTION
="${_PARAMETER#*=}"
105 export LIVE_MEDIA_ENCRYPTION
109 LIVE_MEDIA_OFFSET
="${_PARAMETER#live-media-offset=}"
110 export LIVE_MEDIA_OFFSET
114 LIVE_MEDIA_PATH
="${_PARAMETER#live-media-path=}"
115 export LIVE_MEDIA_PATH
118 live-media-timeout
=*)
119 LIVE_MEDIA_TIMEOUT
="${_PARAMETER#live-media-timeout=}"
120 export LIVE_MEDIA_TIMEOUT
124 MODULE
="${_PARAMETER#module=}"
129 NETBOOT
="${_PARAMETER#netboot=}"
134 NFSOPTS
="${_PARAMETER#nfsopts=}"
139 NFS_COW
="${_PARAMETER#nfsoverlay=}"
154 ramdisk_size
="${_PARAMETER#ramdisk-size=}"
162 persistence-encryption
=*)
163 PERSISTENCE_ENCRYPTION
="${_PARAMETER#*=}"
164 export PERSISTENCE_ENCRYPTION
168 PERSISTENCE_MEDIA
="${_PARAMETER#*=}"
169 export PERSISTENCE_MEDIA
171 persistence-method
=*)
172 PERSISTENCE_METHOD
="${_PARAMETER#*=}"
173 export PERSISTENCE_METHOD
177 PERSISTENCE_PATH
="${_PARAMETER#persistence-path=}"
178 export PERSISTENCE_PATH
180 persistence-read-only
)
181 PERSISTENCE_READONLY
="true"
182 export PERSISTENCE_READONLY
185 persistence-storage
=*)
186 PERSISTENCE_STORAGE
="${_PARAMETER#persistence-storage=}"
187 export PERSISTENCE_STORAGE
191 custom_overlay_label
="${_PARAMETER#persistence-label=*}"
200 QUICKUSBMODULES
="true"
201 export QUICKUSBMODULES
205 TODISK
="${_PARAMETER#todisk=}"
216 MODULETORAM
="${_PARAMETER#toram=}"
217 export TORAM MODULETORAM
231 SKIP_UNION_MOUNTS
="true"
232 export SKIP_UNION_MOUNTS
236 ROOT
="${_PARAMETER#root=}"
241 UNIONTYPE
="${_PARAMETER#union=}"
247 # sort of compatibility with netboot.h from linux docs
248 if [ -z "${NETBOOT}" ]
250 if [ "${ROOT}" = "/dev/nfs" ]
254 elif [ "${ROOT}" = "/dev/cifs" ]
261 if [ -z "${MODULE}" ]
267 if [ -z "${UNIONTYPE}" ]
273 if [ -z "${PERSISTENCE_ENCRYPTION}" ]
275 PERSISTENCE_ENCRYPTION
="none"
276 export PERSISTENCE_ENCRYPTION
277 elif is_in_comma_sep_list luks
${PERSISTENCE_ENCRYPTION}
279 if ! modprobe dm-crypt
281 log_warning_msg
"Unable to load module dm-crypt"
282 PERSISTENCE_ENCRYPTION
=$
(echo ${PERSISTENCE_ENCRYPTION} |
sed -e 's/\<luks,\|,\?luks$//g')
283 export PERSISTENCE_ENCRYPTION
286 if [ ! -x /lib
/cryptsetup
/askpass
] ||
[ ! -x /sbin
/cryptsetup
]
288 log_warning_msg
"cryptsetup in unavailable"
289 PERSISTENCE_ENCRYPTION
=$
(echo ${PERSISTENCE_ENCRYPTION} |
sed -e 's/\<luks,\|,\?luks$//g')
290 export PERSISTENCE_ENCRYPTION
294 if [ -z "${PERSISTENCE_METHOD}" ]
296 PERSISTENCE_METHOD
="overlay"
297 export PERSISTENCE_METHOD
300 if [ -z "${PERSISTENCE_STORAGE}" ]
302 PERSISTENCE_STORAGE
="filesystem,file"
303 export PERSISTENCE_STORAGE