|
From: Heiko Z. <smi...@us...> - 2005-10-25 00:34:33
|
Update of /cvsroot/devil-linux/build/config/etc/init.d In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27570/config/etc/init.d Modified Files: Tag: rel-1-2-patches mountfs Log Message: - if no mdadm.conf exists, the system scans all partitions for raid devices and assembles them automatically Index: mountfs =================================================================== RCS file: /cvsroot/devil-linux/build/config/etc/init.d/mountfs,v retrieving revision 1.35.2.2 retrieving revision 1.35.2.3 diff -u -d -r1.35.2.2 -r1.35.2.3 --- mountfs 19 Oct 2005 14:10:11 -0000 1.35.2.2 +++ mountfs 25 Oct 2005 00:34:18 -0000 1.35.2.3 @@ -86,12 +86,18 @@ if [ -x /sbin/mdadm ] && [ -e /etc/mdadm.conf ]; then echo "Starting RAID:" modprobe -k md - /sbin/mdadm --assemble --scan --verbose 2>&1 | sed \ + if [ -e /etc/mdadm.conf ]; then + /sbin/mdadm --assemble --scan --verbose 2>&1 | sed \ -e '/No such device/d' \ -e '/has wrong uuid/d' \ -e '/no RAID superblock on/d' - print_status success - fi + print_status success + else + /sbin/mdadm -Ac partitions -m 0 /dev/md0 + /sbin/mdadm -Ac partitions -m 1 /dev/md1 + /sbin/mdadm -Ac partitions -m 2 /dev/md2 + /sbin/mdadm -Ac partitions -m 3 /dev/md3 + fi # start LVM if tools are installed if [ -x /sbin/vgscan ] && [ -x /sbin/vgchange ]; then |