aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2009-11-05 22:05:59 +0100
committerThomas Bächler <thomas@archlinux.org>2009-11-05 22:05:59 +0100
commit5b1ea3c982efb98e3f305400d4a9b3b65fb20ebe (patch)
tree34c67d503d604b1f94d247a4a90beb4eaed064cd /rc.sysinit
parent86d92c889a481c591cd2a88ba2506b751f4fdd07 (diff)
downloadinitscripts-5b1ea3c982efb98e3f305400d4a9b3b65fb20ebe.tar.xz
Remove code to create md* devices manually, this is done by udev these days
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit7
1 files changed, 0 insertions, 7 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 1ee7aad..5d922ec 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -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