dhcpcd starts too early
I am using dhcpcd on a router to do IPv6 prefix delegation on vlan interfaces and sometimes some of the interfaces do not end up with all their addresses. Watching the system boot, I can see dhcpcd is started before any interfaces are brought up.
It appears that the current initscript for dhcpcd starts the service before (concurrently?) with networking. I think the best solution is the change dhcpcd.initd from:
provide net
need localmount
use logger network
after bootmisc modules
to:
need localmount net
use logger
after firewall
This ensures that the network interfaces are completely up before trying to assign any dhcp addresses to them.
Note I also removed network
since no current service seems to provide that. Also, bootmisc
and modules
are loaded before the networking initd script anyway so they aren't needed in the after.