From bc80572061eb4c638e4c64d7d96fac39e6d79eab Mon Sep 17 00:00:00 2001 From: Waldemar Znoinski Date: Thu, 8 Sep 2016 17:11:32 +0000 Subject: [PATCH] don't configure 'lo' for dhcp On systemd-based operating systems that don't use /etc/sysconfig/network-scripts dhcp-all-interfaces configures 'lo' for dhcp. This causes errors and fails networking.target causing system-wide issues. This change excludes 'lo' at dhcp-all-interfaces udev rules level. Closes-bug: #1621501 Change-Id: I7563b766827bedbea7ae1de35e5bdfcbf1fc0d1e Co-Authored-By: Jeremy Stanley --- .../install.d/dhcp-all-interfaces-udev.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces-udev.rules b/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces-udev.rules index 302f41ba..a8c3cf51 100644 --- a/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces-udev.rules +++ b/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces-udev.rules @@ -1 +1 @@ -SUBSYSTEM=="net", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="dhcp-interface@$name.service" +SUBSYSTEM=="net", KERNEL!="lo", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="dhcp-interface@$name.service"