diff options
author | Judd Vinet <judd@archlinux.org> | 2006-06-30 19:40:10 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2006-06-30 19:40:10 +0000 |
commit | 93ba858cb8f3684506bcc5854ce32b637e108d00 (patch) | |
tree | e214063f7fd7eae7a0bf0759629118dfcd5afd0c | |
parent | 4d91b544b6f666a12b84f82576b4309622806e83 (diff) | |
download | initscripts-93ba858cb8f3684506bcc5854ce32b637e108d00.tar.xz |
various fixes -- netcfg fixes, md device node creation fixes w/ mkinitcpio, 2.4 kernel support removed
-rwxr-xr-x | rc.sysinit | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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 |