Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-12:Update
systemd.1059
1105-rules-rework-KVM-persistent-rules-generati...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1105-rules-rework-KVM-persistent-rules-generation.patch of Package systemd.1059
Index: systemd-210/src/udev/rule_generator/75-persistent-net-generator.rules =================================================================== --- systemd-210.orig/src/udev/rule_generator/75-persistent-net-generator.rules +++ systemd-210/src/udev/rule_generator/75-persistent-net-generator.rules @@ -32,6 +32,12 @@ ENV{MATCHADDR}="$attr{address}" # match interface type ENV{MATCHIFTYPE}="$attr{type}" +# detect virtualization (none is set if we are not a guest) +ENV{ID_VIRT}="none", PROGRAM="/usr/bin/systemd-detect-virt", RESULT=="?*", ENV{ID_VIRT}="$result" + +# KVM virtual interfaces, not to be confused with Realtek interfaces +ENV{MATCHADDR}=="52:54:00:*", ENV{ID_VIRT}=="kvm", ENV{MATCHADDR}="" + # ignore VMWare virtual interfaces ENV{MATCHADDR}=="00:0c:29:*|00:50:56:*", GOTO="persistent_net_generator_end" # ignore Hyper-V virtual interfaces @@ -74,7 +80,7 @@ ENV{LAYER2}!="0", ATTR{dev_id}=="?*", EN ENV{MATCHADDR}=="?[2367abef]:*", ENV{MATCHADDR}="" # if mac is "locally administered", then use $id (KERNELS) and $driver (DRIVERS) -ENV{MATCHADDR}=="", DRIVERS=="?*", SUBSYSTEMS=="pci", ENV{MATCHID}="$id", ENV{MATCHDRV}="$driver" +ENV{MATCHADDR}=="", DRIVERS=="?*", SUBSYSTEMS=="pci|ccw", ENV{MATCHID}="$id", ENV{MATCHDRV}="$driver" # do not use empty address ENV{MATCHADDR}=="00:00:00:00:00:00", ENV{MATCHADDR}="" @@ -83,6 +89,7 @@ LABEL="globally_administered_whitelist" # build comment line for generated rule: SUBSYSTEMS=="pci", ENV{COMMENT}="PCI device $attr{vendor}:$attr{device} ($driver)" +SUBSYSTEMS=="ccw", ENV{COMMENT}="S/390 $driver device at $id" SUBSYSTEMS=="usb", ATTRS{idVendor}=="?*", ENV{COMMENT}="USB device 0x$attr{idVendor}:0x$attr{idProduct} ($driver)" SUBSYSTEMS=="pcmcia", ENV{COMMENT}="PCMCIA device $attr{card_id}:$attr{manf_id} ($driver)" SUBSYSTEMS=="ieee1394", ENV{COMMENT}="Firewire device $attr{host_id})"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor