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