Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dhcpcd never discovers any interface when started before mdev #83

Closed
git-bruh opened this issue Aug 26, 2022 · 5 comments
Closed

dhcpcd never discovers any interface when started before mdev #83

git-bruh opened this issue Aug 26, 2022 · 5 comments

Comments

@git-bruh
Copy link
Member

It's possible that mdev might start after dhcpcd, so dhcpcd stops looking for new interfaces altogether and doesn't output anything after this:

no such user dhcpcd
dhcpcd-9.4.1 starting
dev: loaded udev
DUID 00:01:00:01:2a:93:78:3a:d0:37:45:47:f3:16
no valid interfaces found
no interfaces have a carrier

Restarting dhcpcd makes it work properly till shutdown:

no such user dhcpcd
dhcpcd-9.4.1 starting
dev: loaded udev
DUID 00:01:00:01:2a:93:78:3a:d0:37:45:47:f3:16
no interfaces have a carrier
wlan0: waiting for carrier
wlan0: carrier acquired
wlan0: IAID 45:47:f3:16
wlan0: rebinding lease of 192.168.29.156
wlan0: probing address 192.168.29.156/24
wlan0: leased 192.168.29.156 for 3599 seconds
wlan0: adding route to 192.168.29.0/24
wlan0: adding default route via 192.168.29.227
@git-bruh
Copy link
Member Author

git-bruh commented Aug 26, 2022

I guess a better title would be "hotplug not working with dhcpcd" since the same happens if you replug a device: (no more output even after replug)

wlan0: carrier lost
wlan0: deleting route to 192.168.29.0/24
wlan0: deleting default route via 192.168.29.227

@illiliti
Copy link
Member

Try to build dhcpcd without udev support.

@git-bruh
Copy link
Member Author

It works fine without it -- I guess that answers why it sometimes works when built in fresh install


wlan0: carrier lost
wlan0: deleting route to 192.168.48.0/24
wlan0: deleting default route via 192.168.48.80
wlan0: removing interface
wlan0: waiting for carrier
wlan0: carrier acquired
wlan0: IAID 45:47:f3:16
wlan0: rebinding lease of 192.168.48.156

@git-bruh
Copy link
Member Author

Any reason not to disable udev support in repo?

@illiliti
Copy link
Member

Feel free to disable it, nothing shall break. Those who uses udev can re-enable it if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants