--- baseudev.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/baseudev.py b/baseudev.py index af63c76..818834f 100644 --- a/baseudev.py +++ b/baseudev.py @@ -127,9 +127,12 @@ def udev_settle(timeout=None): iutil.execWithRedirect("udevadm", argv, stderr="/dev/null", searchPath=1) -def udev_trigger(subsystem=None): - argv = ["trigger"] +def udev_trigger(subsystem=None, action="add", attr_nomatch=None): + argv = ["trigger", "--action=%s" % action] if subsystem: argv.append("--subsystem-match=%s" % subsystem) + if attr_nomatch: + argv.append("--attr-nomatch=%s" % attr_nomatch) + iutil.execWithRedirect("udevadm", argv, stderr="/dev/null", searchPath=1) -- 1.6.2.5 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list