[PATCH f17-branch 1/2] fix failure to run multiple udev-triggered jobs (#811008)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



initqueue truncates job names down to the basename if they contain
slashes. So if you had two jobs for /dev/by-label/FLASH, they'd both end
up named "FLASH", and with --unique they'd collide and you'd end up with
just one job.

Drop --unique to avoid these sorts of collisions. Also drop the $dev
from the job name - it didn't really need to be there.
---
 dracut/anaconda-lib.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dracut/anaconda-lib.sh b/dracut/anaconda-lib.sh
index 1ec80db..de8d317 100755
--- a/dracut/anaconda-lib.sh
+++ b/dracut/anaconda-lib.sh
@@ -99,7 +99,7 @@ dev_is_mounted() {
 
 when_diskdev_appears() {
     local dev="${1#/dev/}" cmd=""; shift
-    cmd="/sbin/initqueue --settled --onetime --unique --name $1-$dev $*"
+    cmd="/sbin/initqueue --settled --onetime --name $1 $*"
     {
         printf 'SUBSYSTEM=="block", KERNEL=="%s", RUN+="%s"\n' "$dev" "$cmd"
         printf 'SUBSYSTEM=="block", SYMLINK=="%s", RUN+="%s"\n' "$dev" "$cmd"
-- 
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux