Page MenuHomeFreeBSD

loader.efi: Apply command-line DHCP overrides earlier
Needs ReviewPublic

Authored by kgalazka on Thu, Sep 24, 8:48 PM.
Tags
None
Referenced Files
F173295428: D59998.id187629.diff
Fri, Sep 25, 2:01 AM
F173293545: D59998.id.diff
Fri, Sep 25, 1:35 AM
F173293080: D59998.diff
Fri, Sep 25, 1:28 AM
F173291868: D59998.id187629.diff
Fri, Sep 25, 1:15 AM
F173284313: D59998.diff
Thu, Sep 24, 11:35 PM
F173271121: D59998.diff
Thu, Sep 24, 9:07 PM
Subscribers

Details

Reviewers
imp
manu
Summary

Ability to override DHCP options with command-line arguments
was affected by intoduction of initmd support. Initmd discovery
configures the network before loader arguments
were parsed, so a dhcp.root-path override was unavailable
during the first network configuration. Move parsing
arguments earlier and apply dhcp.root-path even if DHCP response
does not contain option 17. This allows providing a dynamic NFS
root e.g. by chain loading loader.efi from iPXE.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com>

Sponsored by: Intel Corporation
Assisted by: Github Copilot (GPT-5.6 Sol)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77289
Build 74172: arc lint + arc unit

Event Timeline

The only thing that I worry about in moving this parsing earlier is side effects from env variables taking effect before we have the efi partition list, so things like currdev=disk3p4: stop working. Is that the case?