git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@262 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Tim Yamin 20 years ago
parent 66b5744621
commit 24de121078

@ -44,6 +44,7 @@ quiet_kmsg
CMDLINE="`cat /proc/cmdline`" CMDLINE="`cat /proc/cmdline`"
# Scan CMDLINE for any specified real_root= or cdroot arguments # Scan CMDLINE for any specified real_root= or cdroot arguments
REAL_ROOT=''
for x in ${CMDLINE} for x in ${CMDLINE}
do do
case "${x}" in case "${x}" in
@ -60,12 +61,10 @@ do
# Livecd options # Livecd options
cdroot) cdroot)
CDROOT=1 CDROOT=1
REAL_ROOT=''
;; ;;
cdroot\=*) cdroot\=*)
CDROOT=1 CDROOT=1
CDROOT_DEV=`parse_opt "${x}"` CDROOT_DEV=`parse_opt "${x}"`
REAL_ROOT=''
;; ;;
# Start livecd loop and looptype options # Start livecd loop and looptype options
@ -149,6 +148,14 @@ do
part\=*) part\=*)
MDPART=`parse_opt "${x}"` MDPART=`parse_opt "${x}"`
;; ;;
# NFS
ip\=*)
IP=`parse_opt "${x}"`
;;
nfsroot\=*)
NFSROOT=`parse_opt "${x}"`
;;
esac esac
done done
@ -220,7 +227,7 @@ then
cp /dev/tty1 ${NEW_ROOT}/dev cp /dev/tty1 ${NEW_ROOT}/dev
sdelay sdelay
bootstrapCD [ "${REAL_ROOT}"="/dev/nfs" ] || bootstrapCD
if [ "${REAL_ROOT}" = '' ] if [ "${REAL_ROOT}" = '' ]
then then
@ -325,9 +332,9 @@ do
done done
if [ "${CDROOT}" -eq '1' -a "${got_good_root}" = '1' ] if [ "${CDROOT}" -eq '1' -a "${got_good_root}" = '1' -a "${REAL_ROOT}" != "/dev/nfs" ]
then then
# cdrom device already mounted no further checks necessary # CD already mounted; no further checks necessary
break break
else else
good_msg "Mounting root..." good_msg "Mounting root..."

Loading…
Cancel
Save