wok-stable diff busybox/stuff/init @ rev 6999
Up: exiftool (8.36)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Oct 31 14:56:48 2010 +0100 (2010-10-31) |
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 Sun Oct 31 14:56:48 2010 +0100 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