git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@246
67a159dc-881f-0410-a524-
ba9dfbe2cb84
if [ "${PAT}" -gt '4' -a -e ${KERNEL_DIR}/.config ]
then
cd ${KERNEL_DIR}
- compile_generic prepare kernel > /dev/null 2>&1
+ #compile_generic prepare kernel > /dev/null 2>&1
cd - > /dev/null 2>&1
if [ -f ${KERNEL_DIR}/include/linux/version.h ]
then
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(){
if [ -n "$DEBUG" ]; then
good_msg 'Starting debug shell as requested by "debug" option.'
# Start udev/devfs
start_dev_mgr
+# Setup md device nodes if they dont exist
+setup_md_device
+
# Start EVMS
startVolumes