remove extra make prepare in gen_determineargs.sh that breaks things. Fix md /dev creation bug 98193

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@246 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Eric Edgar 20 years ago
parent 2cc5acf165
commit 9a33e43575

@ -39,7 +39,7 @@ get_KV() {
if [ "${PAT}" -gt '4' -a -e ${KERNEL_DIR}/.config ] if [ "${PAT}" -gt '4' -a -e ${KERNEL_DIR}/.config ]
then then
cd ${KERNEL_DIR} cd ${KERNEL_DIR}
compile_generic prepare kernel > /dev/null 2>&1 #compile_generic prepare kernel > /dev/null 2>&1
cd - > /dev/null 2>&1 cd - > /dev/null 2>&1
if [ -f ${KERNEL_DIR}/include/linux/version.h ] if [ -f ${KERNEL_DIR}/include/linux/version.h ]
then then

@ -491,6 +491,27 @@ cdupdate() {
fi fi
} }
setup_md_device(){
MAJOR=9
if [ `echo ${REAL_ROOT}|sed -e 's#\(/dev/md\)[[:digit:]]\+#\1#'` = "/dev/md" ]
then
good_msg "real_root is a md device. Setting up the device node (If necessary) ..."
MD_NUMBER=`echo ${REAL_ROOT}|sed -e 's#/dev/md\([[:digit:]]\+\)#\1#'`
if [ ! -e /dev/md${MD_NUMBER} ]
then
mknod /dev/md${MD_NUMBER} b ${MAJOR} ${MD_NUMBER} >/dev/null 2>&1
ret=$?
if [ "${ret}" -ne 0 ]
then
bad_msg "Creation of /dev/md${MD_NUMBER} failed... "
else
good_msg "Creation of /dev/md${MD_NUMBER} Succeeded... "
fi
fi
fi
}
rundebugshell(){ rundebugshell(){
if [ -n "$DEBUG" ]; then if [ -n "$DEBUG" ]; then
good_msg 'Starting debug shell as requested by "debug" option.' good_msg 'Starting debug shell as requested by "debug" option.'

@ -177,6 +177,9 @@ mount_sysfs
# Start udev/devfs # Start udev/devfs
start_dev_mgr start_dev_mgr
# Setup md device nodes if they dont exist
setup_md_device
# Start EVMS # Start EVMS
startVolumes startVolumes

Loading…
Cancel
Save