run /bin/sh with the full path from the udev rules
authorHarald Hoyer <harald@redhat.com>
Tue, 14 Jul 2009 11:20:34 +0000 (13:20 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 14 Jul 2009 11:20:34 +0000 (13:20 +0200)
modules.d/90mdraid/61-mdadm.rules
modules.d/90mdraid/65-md-incremental.rules

index 0f2a691..18b1627 100644 (file)
@@ -10,6 +10,6 @@ KERNEL=="md*", IMPORT{program}="vol_id --export $tempnode"
 ENV{ID_FS_TYPE}=="linux_raid_member", \
     TEST!="/tmp/.mdraid_start-%k", \
     RUN+="/sbin/mdadm -I $env{DEVNAME}", \
-    RUN+="sh -c '>/tmp/.mdraid_start-%k; /bin/ln -s /sbin/mdraid_start /initqueue/mdraid_start.sh'"
+    RUN+="/bin/sh -c '>/tmp/.mdraid_start-%k; /bin/ln -s /sbin/mdraid_start /initqueue/mdraid_start.sh'"
 
 LABEL="raid_end"
index 01ef1d8..203b1c9 100644 (file)
@@ -6,4 +6,4 @@ SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="linux_raid_member", \
         TEST!="/tmp/.mdraid_start-%k", \
        IMPORT{program}="/sbin/mdadm --examine --export $tempnode", \
        RUN+="/sbin/mdadm -I $env{DEVNAME}", \
-       RUN+="sh -c '>/tmp/.mdraid_start-%k; /bin/ln -s /sbin/mdraid_start /initqueue/mdraid_start.sh'"
+       RUN+="/bin/sh -c '>/tmp/.mdraid_start-%k; /bin/ln -s /sbin/mdraid_start /initqueue/mdraid_start.sh'"