SHA256
1
0
forked from pool/systemd
systemd/1051-check-if-NAME-has-a-value.patch
Robert Milasan 66d4f0d69b Accepting request 241288 from home:rmilasan:branches:Base:System
- Check if NAME key has a value before going thru the rule (bnc#885232).
  Add 1051-check-if-NAME-has-a-value.patch 

- Check if NAME key has a value before going thru the rule (bnc#885232).
  Add 1051-check-if-NAME-has-a-value.patch

OBS-URL: https://build.opensuse.org/request/show/241288
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=720
2014-07-17 06:35:02 +00:00

13 lines
547 B
Diff

Index: systemd-210/src/udev/rule_generator/76-net-sriov-names.rules
===================================================================
--- systemd-210.orig/src/udev/rule_generator/76-net-sriov-names.rules
+++ systemd-210/src/udev/rule_generator/76-net-sriov-names.rules
@@ -5,6 +5,7 @@
ACTION=="remove", GOTO="net-sriov-names_end"
SUBSYSTEM!="net", GOTO="net-sriov-names_end"
KERNEL!="eth*", GOTO="net-sriov-names_end"
+NAME=="?*", GOTO="net-sriov-names_end"
IMPORT{cmdline}="net.ifnames"
ENV{net.ifnames}=="1", GOTO="net-sriov-names_end"