#1108899 dhcpcd-base: returns to post-up / shell before iface is ready

Package:
dhcpcd-base
Source:
dhcpcd-base
Description:
DHCPv4 and DHCPv6 dual-stack client (binaries and exit hooks)
Submitter:
Thorsten Glaser
Date:
2025-07-07 10:59:01 UTC
Severity:
normal
#1108899#5
Date:
2025-07-07 10:45:04 UTC
From:
To:
In contrast to earlier Debian releases with ISC dhcp-client, a “sudo ifup wlan0”
with DHCP enabled runs the post-up command from /etc/network/interfaces and
returns to the shell (consider “sudo ifup wlan0 && sudo rdate -nv ntpserver”)
before the network interface is ready: rdate tells me no connection to host,
and a few seconds later only it works.

Please ensure to only return to ifupdown once the network is *actually* usable.
Thanks.

#1108899#10
Date:
2025-07-07 10:55:30 UTC
From:
To:
ma 7.7.2025 klo 13.47 Thorsten Glaser (tg@mirbsd.de) kirjoitti:

Unless I'm mistaken, this is because dhcpcd forks to the background
and dynamically switches between IPv4LL and DHCP/RA addresses as
needed. I'm not sure whether changing this behavior is remotely
desirable.  However, I do agree that if this makes ifupdown presume
that an external IP has succesfully been acquired and the boot process
continue to steps that launch network-dependant services, it is
problematic.

Martin-Éric