wok diff busybox/stuff/init @ rev 7463

Up: GConf to 2.32.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Nov 30 21:04:29 2010 +0000 (2010-11-30)
parents 3f326721653c
children 0b7c86ee9c76
line diff
     1.1 --- a/busybox/stuff/init	Fri Aug 13 22:40:04 2010 +0200
     1.2 +++ b/busybox/stuff/init	Tue Nov 30 21:04:29 2010 +0000
     1.3 @@ -90,6 +90,8 @@
     1.4  	root="$(sed 's/.*softraid=\([^ ]*\).*/\1/' < /proc/cmdline)"
     1.5  	echo -n "Switching / to softraid $root..."
     1.6  	mdadm --examine --scan --config=partitions > /etc/mdadm.conf
     1.7 +	grep -qs " $root " /etc/mdadm.conf ||
     1.8 +		root=$(awk '/dev.md/ { print $2; exit }' < /etc/mdadm.conf)
     1.9  	grep level=raid /etc/mdadm.conf | load_raid
    1.10  	mdadm --assemble --scan
    1.11  	lvmsetup