[arch-commits] Commit in dmraid/trunk (dmraid_hook)

Dave Reisner dreisner at archlinux.org
Sat Apr 21 13:44:57 EDT 2012


    Date: Saturday, April 21, 2012 @ 13:44:57
  Author: dreisner
Revision: 156608

Remove logic for /dev on tmpfs since we require devtmpfs

Modified:
  dmraid/trunk/dmraid_hook

-------------+
 dmraid_hook |   29 ++++++++++++-----------------
 1 file changed, 12 insertions(+), 17 deletions(-)

Modified: dmraid_hook
===================================================================
--- dmraid_hook	2012-04-21 17:40:41 UTC (rev 156607)
+++ dmraid_hook	2012-04-21 17:44:57 UTC (rev 156608)
@@ -1,19 +1,14 @@
-# vim: set ft=sh:
-run_hook ()
-{
-    /sbin/modprobe -q dm-mod >/dev/null 2>&1
-    /sbin/modprobe -q dm-mirror >/dev/null 2>&1
-    if [ -e "/sys/class/misc/device-mapper" ]; then
-        if [ ! -e "/dev/mapper/control" ]; then
-            mkdir /dev/mapper
-            mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |')
-        fi
-        msg ":: Activating dmraid arrays..."
-	# prevent any event monitoring calls with -I
-        if [ "${quiet}" = "y" ]; then
-            /sbin/dmraid -ay -I -Z >/dev/null
-        else
-            /sbin/dmraid -ay -I -Z
-        fi
+#!/usr/bin/ash
+
+run_hook() {
+    /sbin/modprobe -a -q dm-mod dm-mirror >/dev/null 2>&1
+    msg ":: Activating dmraid arrays..."
+    # prevent any event monitoring calls with -I
+    if [ "$quiet" = "y" ]; then
+        /sbin/dmraid -ay -I -Z >/dev/null
+    else
+        /sbin/dmraid -ay -I -Z
     fi
 }
+
+# vim: set ft=sh ts=4 sw=4 et:



More information about the arch-commits mailing list