Skip to content

Commit

Permalink
network-legacy/ifup: dhclient should be started in oneshot mode
Browse files Browse the repository at this point in the history
since we handle the retries explicitly via rd.net.dhcp.retry

Without -1 if user sets ip=dhcp6 and there is no dhcp on the network,
dhclient seems to wait indefinitely, ignoring rd.net.timeout.dhcp
  • Loading branch information
lnykryn authored and haraldh committed Jan 14, 2020
1 parent 212043f commit 2181c80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules.d/35network-legacy/ifup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ do_dhcp() {
dhclient "$@" \
${_timeout:+--timeout $_timeout} \
-q \
-1 \
-cf /etc/dhclient.conf \
-pf /tmp/dhclient.$netif.pid \
-lf /tmp/dhclient.$netif.lease \
Expand Down

0 comments on commit 2181c80

Please sign in to comment.