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
F102867821: D46687.diff
Mon, Nov 18, 5:10 AM
Unknown Object (File)
Oct 17 2024, 1:22 PM
Unknown Object (File)
Oct 1 2024, 4:05 PM
Unknown Object (File)
Sep 30 2024, 12:33 PM
Unknown Object (File)
Sep 28 2024, 9:19 PM
Unknown Object (File)
Sep 28 2024, 3:28 PM
Unknown Object (File)
Sep 26 2024, 7:26 AM
Unknown Object (File)
Sep 24 2024, 10:30 AM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
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