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

Collapse All | Expand All

(-)/home/public/initrd.scripts (-2 / +2 lines)
Lines 834-843 Link Here
834
	[ -z "$1" ] && device="${REAL_ROOT}" || device="$1"
834
	[ -z "$1" ] && device="${REAL_ROOT}" || device="$1"
835
	[ -z "${device}" ] && return # LiveCD
835
	[ -z "${device}" ] && return # LiveCD
836
836
837
	if [ `echo ${device}|sed -e 's#\(luks:\)\?\(/dev/md\)[[:digit:]]\+#\2#'` = "/dev/md" ]
837
	if [ `echo ${device}|sed -e 's#\(luks:\)\?\(/dev/md\)[[:digit:]]\+\(p[[:digit:]]\+\)#\2#'` = "/dev/md" ]
838
	then
838
	then
839
		good_msg 'Detected real_root as a md device. Setting up the device node...'
839
		good_msg 'Detected real_root as a md device. Setting up the device node...'
840
		MD_NUMBER=`echo ${device}|sed -e 's#\(luks:\)\?/dev/md\([[:digit:]]\+\)#\2#'`
840
		MD_NUMBER=`echo ${device}|sed -e 's#\(luks:\)\?/dev/md\([[:digit:]]\+\)\(p[[:digit:]]\+\)#\2#'`
841
		if [ ! -e /dev/md${MD_NUMBER} ]
841
		if [ ! -e /dev/md${MD_NUMBER} ]
842
		then
842
		then
843
			mknod /dev/md${MD_NUMBER} b 9 ${MD_NUMBER} >/dev/null 2>&1
843
			mknod /dev/md${MD_NUMBER} b 9 ${MD_NUMBER} >/dev/null 2>&1

Return to bug 302280