Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 122421 | Differences between
and this patch

Collapse All | Expand All

(-)initrd.scripts (-2 / +2 lines)
Lines 533-542 Link Here
533
	[ -z "$1" ] && device="${REAL_ROOT}" || device="$1"
533
	[ -z "$1" ] && device="${REAL_ROOT}" || device="$1"
534
	[ -z "${device}" ] && return # LiveCD
534
	[ -z "${device}" ] && return # LiveCD
535
535
536
	if [ `echo ${device}|sed -e 's#\(/dev/md\)[[:digit:]]\+#\1#'` = "/dev/md" ]
536
	if [ `echo ${device}|sed -e 's#\(luks:\)\?\(/dev/md\)[[:digit:]]\+#\2#'` = "/dev/md" ]
537
	then
537
	then
538
		good_msg 'Detected real_root as a md device. Setting up the device node...'
538
		good_msg 'Detected real_root as a md device. Setting up the device node...'
539
		MD_NUMBER=`echo ${device}|sed -e 's#/dev/md\([[:digit:]]\+\)#\1#'`
539
		MD_NUMBER=`echo ${device}|sed -e 's#\(luks:\)\?/dev/md\([[:digit:]]\+\)#\2#'`
540
		if [ ! -e /dev/md${MD_NUMBER} ]
540
		if [ ! -e /dev/md${MD_NUMBER} ]
541
		then
541
		then
542
			mknod /dev/md${MD_NUMBER} b 9 ${MD_NUMBER} >/dev/null 2>&1
542
			mknod /dev/md${MD_NUMBER} b 9 ${MD_NUMBER} >/dev/null 2>&1

Return to bug 122421