Page MenuHomeFreeBSD

Set env vars from values on the efi loader command line.
ClosedPublic

Authored by ian on Dec 15 2015, 3:30 AM.
Tags
None
Referenced Files
F106368698: D4561.diff
Sun, Dec 29, 12:15 PM
Unknown Object (File)
Nov 28 2024, 8:49 PM
Unknown Object (File)
Nov 28 2024, 8:15 PM
Unknown Object (File)
Nov 28 2024, 5:28 PM
Unknown Object (File)
Nov 5 2024, 2:23 AM
Unknown Object (File)
Nov 4 2024, 4:26 PM
Unknown Object (File)
Oct 14 2024, 5:05 PM
Unknown Object (File)
Oct 14 2024, 12:18 PM
Subscribers

Details

Summary

Examine each cmdline arg and if it contains an '=' convert it to ascii and pass it to putenv(). This allows var=value settings to come in on the command line.

This will allow overriding dhcp server-provided data in loader(8), as discussed in PR 202098

Test Plan

I don't have any systems to test this change on.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ian retitled this revision from to Set env vars from values on the efi loader command line..
ian updated this object.
ian edited the test plan for this revision. (Show Details)
ian added a reviewer: emaste.
ian set the repository for this revision to rS FreeBSD src repository - subversion.
bapt added a reviewer: bapt.
This revision is now accepted and ready to land.Dec 17 2015, 12:27 AM
This revision was automatically updated to reflect the committed changes.