From 93ba858cb8f3684506bcc5854ce32b637e108d00 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Fri, 30 Jun 2006 19:40:10 +0000 Subject: various fixes -- netcfg fixes, md device node creation fixes w/ mkinitcpio, 2.4 kernel support removed --- rc.sysinit | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index e5526f3..f647f00 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -57,12 +57,13 @@ fi # If necessary, find md devices and manually assemble RAID arrays if [ -f /etc/mdadm.conf -a "`grep ^ARRAY /etc/mdadm.conf 2>/dev/null`" ]; then - if [ -d /initrd/dev ]; then - # udev won't create these md nodes, so we steal them from the initrd - for i in `grep ^ARRAY /etc/mdadm.conf | awk '{print $2}'`; do - cp -a /initrd/$i /dev/ - done - fi + # udev won't create these md nodes, so we do it ourselves + for dev in `grep ^ARRAY /etc/mdadm.conf | awk '{print $2}'`; do + path=`echo $dev | sed 's|/[^/]*$||'` + node=`echo $dev | sed "s|^$path/||"` + minor=`echo $node | sed 's|^[^0-9]*||'` + [ ! -f $path/$node ] && /bin/mknod $path/$node b 9 $minor + done status "Activating RAID arrays" /sbin/mdadm --assemble --scan fi -- cgit v1.2.3