dhcpcd icon indicating copy to clipboard operation
dhcpcd copied to clipboard

Sends an exit code before succesfully acquiring an IP

Open perkelix opened this issue 2 months ago • 3 comments

Initially reported against 10.1.0.

In its current form, dhcpcd apparently sends an exit code before it has succesfully acquired an IP (presumably, at the step where it backgrounds itself). This breaks the expected behavior for ifupdown. Other DHCP clients supported by ifupdown don't produce an exit code until an IP has been acquired. The above Debian bug provides more info.

perkelix avatar Oct 15 '25 06:10 perkelix

This is likeley working as documented, see dhcpcd(1) --waitip. Our (Debian's) ifupdown integration is just broken.

DanielG avatar Oct 16 '25 10:10 DanielG

This is likeley working as documented, see dhcpcd(1) --waitip. Our (Debian's) ifupdown integration is just broken.

Adding --waitip to ifupdown's recipe might fix things. Then again, given how dhcpcd is designed to flip back and forth between LL and DHCP as needed, I'm not even sure why the reporter is getting that exit code.

perkelix avatar Oct 16 '25 10:10 perkelix

The flipping between configuration protocols has nothing to do with anything here. The waitip option is to ensure a reasonable environment for system boot, what happens later is up to programs to handle correctly.

DanielG avatar Oct 16 '25 10:10 DanielG