diff options
author | Jesse Keating <jkeating@redhat.com> | 2012-06-06 12:51:00 -0700 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2012-06-06 17:02:00 -0700 |
commit | 4c9ce631c56b4f3e42012d79f3aaff873c1a38ab (patch) | |
tree | dc2d500e7055a05136f3a78c95422cad540a7f01 /pyanaconda/baseudev.py | |
parent | 440857a173e0100c4d1ef870da774e0b00fc6d57 (diff) | |
download | anaconda-4c9ce631c56b4f3e42012d79f3aaff873c1a38ab.tar.gz anaconda-4c9ce631c56b4f3e42012d79f3aaff873c1a38ab.tar.xz anaconda-4c9ce631c56b4f3e42012d79f3aaff873c1a38ab.zip |
Add ability to match sysname when triggering udev
Diffstat (limited to 'pyanaconda/baseudev.py')
-rw-r--r-- | pyanaconda/baseudev.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pyanaconda/baseudev.py b/pyanaconda/baseudev.py index 3d9ee45bf..3c60348b9 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", name=None): argv = ["trigger", "--action=%s" % action] if subsystem: argv.append("--subsystem-match=%s" % subsystem) + if name: + argv.append("--sysname-match=%s" % name) iutil.execWithRedirect("udevadm", argv, stderr="/dev/null") |