git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@578
67a159dc-881f-0410-a524-
ba9dfbe2cb84
# Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 28 Dec 2007; Andrew Gaffney <agaffney@gentoo.org> generic/initrd.defaults,
+ generic/initrd.scripts, generic/linuxrc:
+ don't scan a bunch of extra devices when CDROOT_DEV is defined
+
28 Dec 2007; Andrew Gaffney <agaffney@gentoo.org> generic/initrd.scripts,
generic/linuxrc:
add new cdroot_type=foo kernel commandline parameter to override -t iso9660
REAL_ROOT=''
CDROOT=0
CDROOT_DEV=''
+CDROOT_TYPE='iso9660'
NEW_ROOT="/newroot"
CONSOLE="/dev/console"
}
bootstrapCD() {
-
local DEVICES=`devicelist`
- # The device was specified on the command line. Shold we even be doing a
- # scan at this point? I think not.
- [ -n "${CDROOT_DEV}" ] && DEVICES="$DEVICES ${CDROOT_DEV}"
+ # The device was specified on the command line, so there's no need to scan
+ # a bunch of extra devices
+ [ -n "${CDROOT_DEV}" ] && DEVICES="${CDROOT_DEV}"
findmediamount "cdrom" "${SUBDIR}/livecd" "REAL_ROOT" "${NEW_ROOT}" ${DEVICES}
}
FAKE_ROOT=''
REAL_ROOTFLAGS=''
CRYPT_SILENT=0
-CDROOT_TYPE='iso9660'
for x in ${CMDLINE}
do
case "${x}" in