forked from pool/systemd
eac2d4db72
- 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
17 lines
544 B
Diff
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
|
|
|