|
|
|
@ -19,7 +19,6 @@ mount -o remount,rw / >/dev/null 2>&1
|
|
|
|
|
mount -t tmpfs -o rw,nosuid,nodev,relatime,mode=755 none /run 2>&1
|
|
|
|
|
mount -t tmpfs none /dev/shm 2>&1
|
|
|
|
|
|
|
|
|
|
# Set up symlinks
|
|
|
|
|
/bin/busybox --install -s
|
|
|
|
|
|
|
|
|
|
if [ "$0" = '/init' ]
|
|
|
|
@ -28,7 +27,6 @@ then
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
CMDLINE=$(cat /proc/cmdline)
|
|
|
|
|
# Scan CMDLINE for any specified real_root= or cdroot arguments
|
|
|
|
|
FAKE_ROOT=''
|
|
|
|
|
FAKE_INIT=''
|
|
|
|
|
FAKE_ROOTFLAGS=''
|
|
|
|
@ -59,7 +57,6 @@ do
|
|
|
|
|
init_opts=*)
|
|
|
|
|
INIT_OPTS=${x#*=}
|
|
|
|
|
;;
|
|
|
|
|
# Livecd options
|
|
|
|
|
cdroot)
|
|
|
|
|
CDROOT=1
|
|
|
|
|
;;
|
|
|
|
@ -73,7 +70,6 @@ do
|
|
|
|
|
cdroot_marker=*)
|
|
|
|
|
CDROOT_MARKER=${x#*=}
|
|
|
|
|
;;
|
|
|
|
|
# Start livecd loop, looptype options
|
|
|
|
|
loop=*)
|
|
|
|
|
LOOP=${x#*=}
|
|
|
|
|
;;
|
|
|
|
@ -86,7 +82,6 @@ do
|
|
|
|
|
domdev)
|
|
|
|
|
USE_MDEV=1
|
|
|
|
|
;;
|
|
|
|
|
# Start Volume manager options
|
|
|
|
|
dolvm)
|
|
|
|
|
USE_LVM_NORMAL=1
|
|
|
|
|
;;
|
|
|
|
@ -115,18 +110,15 @@ do
|
|
|
|
|
quiet)
|
|
|
|
|
QUIET=1
|
|
|
|
|
;;
|
|
|
|
|
# Debug Options
|
|
|
|
|
debug)
|
|
|
|
|
DEBUG='yes'
|
|
|
|
|
;;
|
|
|
|
|
# Scan delay options
|
|
|
|
|
scandelay=*)
|
|
|
|
|
SDELAY=${x#*=}
|
|
|
|
|
;;
|
|
|
|
|
scandelay)
|
|
|
|
|
SDELAY=3
|
|
|
|
|
;;
|
|
|
|
|
# Module no-loads
|
|
|
|
|
doload=*)
|
|
|
|
|
MDOLIST=${x#*=}
|
|
|
|
|
MDOLIST=$(echo ${MDOLIST} | sed -e 's/,/ /g')
|
|
|
|
@ -139,7 +131,6 @@ do
|
|
|
|
|
MLIST="$(echo ${MLIST} | sed -e 's/,/ /g')"
|
|
|
|
|
export MLIST
|
|
|
|
|
;;
|
|
|
|
|
# Redirect output to a specific tty
|
|
|
|
|
CONSOLE=*|console=*)
|
|
|
|
|
CONSOLE=${x#*=}
|
|
|
|
|
CONSOLE=$(basename ${CONSOLE})
|
|
|
|
@ -150,7 +141,6 @@ do
|
|
|
|
|
splash=*)
|
|
|
|
|
FBSPLASH=1
|
|
|
|
|
;;
|
|
|
|
|
# /dev/md
|
|
|
|
|
lvmraid=*)
|
|
|
|
|
RAID_DEVICES="${x#*=}"
|
|
|
|
|
RAID_DEVICES="$(echo ${RAID_DEVICES} | sed -e 's/,/ /g')"
|
|
|
|
@ -162,14 +152,13 @@ do
|
|
|
|
|
part|partitionable)
|
|
|
|
|
MDPART=1
|
|
|
|
|
;;
|
|
|
|
|
# NFS
|
|
|
|
|
ip=*)
|
|
|
|
|
IP=${x#*=}
|
|
|
|
|
;;
|
|
|
|
|
nfsroot=*)
|
|
|
|
|
NFSROOT=${x#*=}
|
|
|
|
|
;;
|
|
|
|
|
# iSCSI
|
|
|
|
|
|
|
|
|
|
iscsi_initiatorname=*)
|
|
|
|
|
ISCSI_INITIATORNAME=${x#*=}
|
|
|
|
|
;;
|
|
|
|
@ -203,7 +192,7 @@ do
|
|
|
|
|
iscsi_noibft)
|
|
|
|
|
ISCSI_NOIBFT=1
|
|
|
|
|
;;
|
|
|
|
|
# Crypto
|
|
|
|
|
|
|
|
|
|
crypt_root=*)
|
|
|
|
|
CRYPT_ROOT=${x#*=}
|
|
|
|
|
;;
|
|
|
|
|