summaryrefslogtreecommitdiffstats
path: root/rules.d
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2023-10-19 10:38:06 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-11-01 17:00:19 +0100
commit2b5b25f123ceb89b3ff45b2380db1c8a88b046d9 (patch)
treed2223def048b02c990a761c7c0ef45cc64002d9c /rules.d
parentman: run ninja update-man-rules again (diff)
downloadsystemd-2b5b25f123ceb89b3ff45b2380db1c8a88b046d9.tar.xz
systemd-2b5b25f123ceb89b3ff45b2380db1c8a88b046d9.zip
udev: add new builtin net_driver
Currently the ID_NET_DRIVER is set in net_setup_link builtin. But this is called pretty late in the udev processing chain. Right now in some custom rules it was workarounded by calling ethtool binary directly, which is ugly. So let's split this code to a separate builtin.
Diffstat (limited to 'rules.d')
-rw-r--r--rules.d/50-udev-default.rules.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.d/50-udev-default.rules.in b/rules.d/50-udev-default.rules.in
index eb9e239c70..10234fd9e0 100644
--- a/rules.d/50-udev-default.rules.in
+++ b/rules.d/50-udev-default.rules.in
@@ -26,6 +26,8 @@ ENV{MODALIAS}!="", IMPORT{builtin}="hwdb --subsystem=$env{SUBSYSTEM}"
# To keep the backward compatibility, let's set ID_PATH for them.
SUBSYSTEM=="pci|usb|platform", IMPORT{builtin}="path_id"
+SUBSYSTEM=="net", IMPORT{builtin}="net_driver"
+
ACTION!="add", GOTO="default_end"
SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"