From ad4ec759ed2d8e76de01c9351cfaa6f8062def0c Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 8 Feb 2019 16:26:21 +0100 Subject: [PATCH] Do not generate dhcp entry for loopback interface This fixes a regression that was introduced in commit 52474b4c28303324. The variable $interface is pointing towards /sys/class/net/lo, at least until we overwrite the variable by the basename of its network interface name path. Accordingly fix order for comparison. Closes: https://github.com/grml/live-boot-grml/issues/9 Thanks: Mykola Malkov for the bug report --- components/9990-grml-networking.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/9990-grml-networking.sh b/components/9990-grml-networking.sh index ace078e..16e7b7f 100644 --- a/components/9990-grml-networking.sh +++ b/components/9990-grml-networking.sh @@ -51,8 +51,8 @@ unset HOSTNAME # generate config for each present network device for interface in /sys/class/net/* ; do [ -e ${interface} ] || continue - [ "${interface}" = "lo" ] && continue interface=$(basename ${interface}) + [ "${interface}" = "lo" ] && continue method="dhcp" # NODHCP or a previously run ipconfig mean that ifupdown should never -- 2.1.4