]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/ifup.sh: only use dhcp on unknown interfaces for ip=dhcp
authorHarald Hoyer <harald@redhat.com>
Tue, 25 Aug 2015 09:37:16 +0000 (11:37 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Nov 2015 15:18:04 +0000 (16:18 +0100)
(cherry picked from commit 7c24815034241e490422691b5f18671c4b9812a9)

modules.d/40network/ifup.sh

index dd47e4bd6fcc02e5b0b30747c25c6f66339fa264..b83d7e728fcb61536c4b15b75bec76f312f4108e 100755 (executable)
@@ -410,7 +410,7 @@ if [ ! -e /tmp/net.${netif}.up ]; then
     if getargs 'ip=dhcp6'; then
         load_ipv6
         do_dhcp -6
-    else
+    elif getargs 'ip=dhcp'; then
         do_dhcp -4
     fi
 fi