diff options
author | Thomas Bächler <thomas@archlinux.org> | 2009-11-05 22:05:59 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2009-11-05 22:05:59 +0100 |
commit | 5b1ea3c982efb98e3f305400d4a9b3b65fb20ebe (patch) | |
tree | 34c67d503d604b1f94d247a4a90beb4eaed064cd /rc.sysinit | |
parent | 86d92c889a481c591cd2a88ba2506b751f4fdd07 (diff) | |
download | initscripts-5b1ea3c982efb98e3f305400d4a9b3b65fb20ebe.tar.xz |
Remove code to create md* devices manually, this is done by udev these days
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -111,13 +111,6 @@ fi # If necessary, find md devices and manually assemble RAID arrays if [ -f /etc/mdadm.conf -a "$(/bin/grep ^ARRAY /etc/mdadm.conf 2>/dev/null)" ]; then - # udev won't create these md nodes, so we do it ourselves - for dev in $(/bin/grep ^ARRAY /etc/mdadm.conf | /bin/awk '{print $2}'); do - path=$(echo $dev | /bin/sed 's|/[^/]*$||') - node=$(echo $dev | /bin/sed "s|^$path/||") - minor=$(echo $node | /bin/sed 's|^[^0-9]*||') - [ ! -e $path/$node ] && /bin/mknod $path/$node b 9 $minor - done status "Activating RAID arrays" /sbin/mdadm --assemble --scan fi |