Page MenuHomeFreeBSD

auto-switch DHCP rc.conf(5) directive to SYNCDHCP if devd(8) won't take over
Needs ReviewPublic

Authored by hs.freebsd_id.omnilan.de on Sep 17 2024, 9:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 23, 11:26 PM
Unknown Object (File)
Sep 3 2025, 12:06 PM
Unknown Object (File)
Aug 31 2025, 11:44 PM
Unknown Object (File)
Aug 30 2025, 8:28 AM
Unknown Object (File)
Aug 26 2025, 2:10 AM
Unknown Object (File)
Jul 27 2025, 1:05 PM
Unknown Object (File)
Jul 22 2025, 11:36 AM
Unknown Object (File)
Jul 7 2025, 12:21 AM
Subscribers

Details

Reviewers
cy
emaste
markj
Summary

Network interface configuration setting "DHCP" in vnet enabled jails has no effect, which is not what users can expect.
Instead of extending the synchronous_dhclient documentation in rc.conf(5) and explaining why/that "SYNCDHCP" is required in jails instead of "DHCP" in vnet jail(8), I'd prefer to have rc(8) taking care about devd(8) state, which is the actual reason why we need SYNCDHCP in vnet jails.
See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280913

Test Plan

I'm using the patched /etc/rc/network.subr on some production system hosts and in their jails for almost a month now without issues and the expected effect.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped