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