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 0f2a6919c99e301cd571a9734a22b9c97686ba46..18b1627426a0b83b919e43517ed46b9deb9067d9 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 01ef1d836c6d5dddc00605ed36450784a142c02c..203b1c90d027f18b98ca3e3d733e54b34797d8bf 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'"