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
F133543971: D46687.diff
Sun, Oct 26, 1:27 PM
Unknown Object (File)
Mon, Oct 20, 3:03 AM
Unknown Object (File)
Mon, Oct 20, 3:03 AM
Unknown Object (File)
Sun, Oct 19, 12:29 PM
Unknown Object (File)
Sep 23 2025, 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
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