Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • aports aports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 748
    • Issues 748
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 338
    • Merge requests 338
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpine
  • aportsaports
  • Issues
  • #11137

Closed
Open
Created Jan 16, 2020 by Hunter Presnall@hpresnall

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.

Edited Jan 16, 2020 by Hunter Presnall
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking