only install one dmraid scan job once in the initqueue

master
Harald Hoyer 2009-07-13 12:06:51 +02:00
parent d72eec354a
commit 4d06c74ea6
3 changed files with 3 additions and 3 deletions

View File

@ -7,6 +7,6 @@ ACTION!="add|change", GOTO="dm_end"

ENV{ID_FS_TYPE}=="linux_raid_member", GOTO="dm_end"

ENV{ID_FS_TYPE}=="*_raid_member", RUN+="/sbin/initqueue /sbin/dmraid_scan \$0"
ENV{ID_FS_TYPE}=="*_raid_member", RUN+="/bin/ln -s /sbin/dmraid_scan /initqueue/dmraid_scan"

LABEL="dm_end"

View File

@ -1,8 +1,8 @@
#!/bin/sh

if udevadm settle --timeout=1 >/dev/null 2>&1; then
[ -h "$job" ] && rm -f "$job"
# run dmraid if udev has settled
dmraid -ay -Z
[ -e "$job" ] && rm -f "$job"
fi


View File

@ -1,5 +1,5 @@
#!/bin/bash
dracut_install dmraid
dracut_install dmraid ln
inst "$moddir/dmraid.sh" /sbin/dmraid_scan
inst_rules 64-md-raid.rules
inst_rules "$moddir/61-dmraid.rules"