17094c
From 7164155795f3f257cd119846de0b2a802a6a52c5 Mon Sep 17 00:00:00 2001
17094c
From: Lukas Nykryn <lnykryn@redhat.com>
17094c
Date: Thu, 9 Jan 2020 10:49:52 +0100
17094c
Subject: [PATCH] network-legacy/ifup: dhclient should be started in oneshot
17094c
 mode
17094c
17094c
since we handle the retries explicitly via rd.net.dhcp.retry
17094c
17094c
Without -1 if user sets ip=dhcp6 and there is no dhcp on the network,
17094c
dhclient seems to wait indefinitely, ignoring rd.net.timeout.dhcp
17094c
17094c
(cherry picked from commit 2181c80c91f05bfae5e50de2f502e363b0219bae)
17094c
17094c
Resolves: #1787620
17094c
---
17094c
 modules.d/35network-legacy/ifup.sh | 1 +
17094c
 1 file changed, 1 insertion(+)
17094c
17094c
diff --git a/modules.d/35network-legacy/ifup.sh b/modules.d/35network-legacy/ifup.sh
17094c
index b4f5bf10..bfb57ad5 100755
17094c
--- a/modules.d/35network-legacy/ifup.sh
17094c
+++ b/modules.d/35network-legacy/ifup.sh
17094c
@@ -52,6 +52,7 @@ do_dhcp() {
17094c
         dhclient "$@" \
17094c
                  ${_timeout:+-timeout $_timeout} \
17094c
                  -q \
17094c
+                 -1 \
17094c
                  -cf /etc/dhclient.conf \
17094c
                  -pf /tmp/dhclient.$netif.pid \
17094c
                  -lf /tmp/dhclient.$netif.lease \
17094c