From: Harald Hoyer Date: Tue, 14 Jul 2009 11:20:34 +0000 (+0200) Subject: run /bin/sh with the full path from the udev rules X-Git-Tag: 0.5~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e26772cdea238edf11ce0b78b5ae642dcd5e5ad;p=platform%2Fupstream%2Fdracut.git run /bin/sh with the full path from the udev rules --- diff --git a/modules.d/90mdraid/61-mdadm.rules b/modules.d/90mdraid/61-mdadm.rules index 0f2a691..18b1627 100644 --- a/modules.d/90mdraid/61-mdadm.rules +++ b/modules.d/90mdraid/61-mdadm.rules @@ -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" diff --git a/modules.d/90mdraid/65-md-incremental.rules b/modules.d/90mdraid/65-md-incremental.rules index 01ef1d8..203b1c9 100644 --- a/modules.d/90mdraid/65-md-incremental.rules +++ b/modules.d/90mdraid/65-md-incremental.rules @@ -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'"