systemd/1046-fix-duplicated-rules-with-layer3-interfaces.patch
Robert Milasan eac2d4db72 Accepting request 239381 from home:rmilasan:branches:Base:System
- Fix duplicated rules when having layer3 interfaces (bnc#882714).
  Add 1046-fix-duplicated-rules-with-layer3-interfaces.patch

- Fix duplicated rules when having layer3 interfaces (bnc#882714).
  Add 1046-fix-duplicated-rules-with-layer3-interfaces.patch

OBS-URL: https://build.opensuse.org/request/show/239381
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=701
2014-07-02 18:09:12 +00:00

17 lines
544 B
Diff

Index: systemd-210/src/udev/rule_generator/write_net_rules
===================================================================
--- systemd-210.orig/src/udev/rule_generator/write_net_rules
+++ systemd-210/src/udev/rule_generator/write_net_rules
@@ -101,6 +101,11 @@ if [ "$MATCHDEVID" ]; then
fi
if [ "$MATCHID" ]; then
+ ID="$(find_all_rules 'KERNELS==' "$MATCHID")"
+ if [ "$ID" == "$MATCHID" ]; then
+ unlock_rules_file
+ exit 0
+ fi
match="$match, KERNELS==\"$MATCHID\""
fi