mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
The commitcdcb1eeeb8
adds ID_NET_NAME_INCLUDE_DOMAIN property support in net_id builtin. The property is basically set through hwdb. However, previously hwdb was imported after calling net_id builtin, hence when net_id is called, the property was never set. This makes hwdb is imported before calling net_id builtin, so that the property is set when net_id is called if hwdb has an entry about that for the interface. Follow-up forcdcb1eeeb8
. Fixes #37758.
18 lines
540 B
Plaintext
18 lines
540 B
Plaintext
# do not edit this file, it will be overwritten on update
|
|
|
|
ACTION=="remove", GOTO="net_end"
|
|
SUBSYSTEM!="net", GOTO="net_end"
|
|
|
|
IMPORT{builtin}="hwdb 'net:naming:dr$env{ID_NET_DRIVER}:'"
|
|
|
|
SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb"
|
|
SUBSYSTEMS=="usb", GOTO="import_net_id"
|
|
|
|
SUBSYSTEMS=="pci", ENV{ID_BUS}="pci", ENV{ID_VENDOR_ID}="$attr{vendor}", ENV{ID_MODEL_ID}="$attr{device}"
|
|
SUBSYSTEMS=="pci", IMPORT{builtin}="hwdb --subsystem=pci"
|
|
|
|
LABEL="import_net_id"
|
|
IMPORT{builtin}="net_id"
|
|
|
|
LABEL="net_end"
|