slitaz-boot-scripts rev 292

init/raid: use raid1 for mirror
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 23 11:30:48 2012 +0100 (2012-03-23)
parents 4e3f09beb648
children 7c84d54e514b
files init
line diff
     1.1 --- a/init	Fri Mar 23 10:53:35 2012 +0100
     1.2 +++ b/init	Fri Mar 23 11:30:48 2012 +0100
     1.3 @@ -78,7 +78,8 @@
     1.4  	case "$line" in
     1.5  	*raid10*)	modprobe raid10 ;;
     1.6  	*raid0*)	modprobe raid0 ;;
     1.7 -	*raid1*)	modprobe raid1 ;;
     1.8 +	*raid1*|*mirror*)
     1.9 +			modprobe raid1 ;;
    1.10  	*raid[456]*)	modprobe raid456 ;;
    1.11  	esac
    1.12  done
    1.13 @@ -126,7 +127,8 @@
    1.14  if grep -q mount= /proc/cmdline; then
    1.15  	root="$(sed 's/.*mount=\([^ ]*\).*/\1/' < /proc/cmdline)"
    1.16  	dev=$(blkid | grep $root | sed 's/:.*//;q')
    1.17 -	echo "Mounting $dev ($root) ..."
    1.18 +	[ "$dev" = "$root" ] || root="$dev ($root)"
    1.19 +	echo "Mounting $root ..."
    1.20  	if ! mount $dev /mnt; then
    1.21  		if echo $dev | grep -q "/dev/sd"; then
    1.22  			delay=`cat /sys/module/usb_storage/parameters/delay_use`