[PATCH 1/2] Add ability to match sysname when triggering udev

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

 



---
 pyanaconda/baseudev.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/baseudev.py b/pyanaconda/baseudev.py
index 3d9ee45..80b3096 100644
--- a/pyanaconda/baseudev.py
+++ b/pyanaconda/baseudev.py
@@ -84,9 +84,11 @@ def udev_settle():
 
     iutil.execWithRedirect("udevadm", argv, stderr="/dev/null")
 
-def udev_trigger(subsystem=None, action="add"):
+def udev_trigger(subsystem=None, action="add", sysnamematch=None):
     argv = ["trigger", "--action=%s" % action]
     if subsystem:
         argv.append("--subsystem-match=%s" % subsystem)
+    if sysnamematch:
+        argv.append("--sysname-match=%s" % sysnamematch)
 
     iutil.execWithRedirect("udevadm", argv, stderr="/dev/null")
-- 
1.7.10.2

_______________________________________________
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