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 Tue, Sep 17, 9:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 28, 9:19 PM
Unknown Object (File)
Sat, Sep 28, 3:28 PM
Unknown Object (File)
Thu, Sep 26, 7:26 AM
Unknown Object (File)
Tue, Sep 24, 10:30 AM
Unknown Object (File)
Mon, Sep 23, 12:21 AM
Unknown Object (File)
Sat, Sep 21, 9:35 AM
Unknown Object (File)
Sat, Sep 21, 6:18 AM
Unknown Object (File)
Fri, Sep 20, 3:45 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