Page MenuHomeFreeBSD

kboot: Fetch hostfs_root and bootdev from the environment
ClosedPublic

Authored by imp on Jan 10 2023, 12:20 AM.
Tags
None
Referenced Files
F102609246: D38010.id114978.diff
Thu, Nov 14, 6:10 PM
Unknown Object (File)
Sat, Nov 9, 2:27 AM
Unknown Object (File)
Tue, Nov 5, 12:27 AM
Unknown Object (File)
Sat, Oct 19, 6:52 AM
Unknown Object (File)
Oct 6 2024, 12:43 PM
Unknown Object (File)
Oct 4 2024, 11:28 AM
Unknown Object (File)
Sep 30 2024, 9:26 PM
Unknown Object (File)
Sep 21 2024, 2:01 AM
Subscribers

Details

Summary

Fetch bootdev from the environment variable (so it should be set on the
command line). Default to 'zfs:' which will in the future look for the
first zpool that we can boot from. Prior versions of kboot would set
this from the second argument on the command line.

Fetch hostfs_root from the environment (defaulting to '/'). Prior
versions of kboot would set this from the first arg on the command line.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jan 10 2023, 12:20 AM
kevans added inline comments.
stand/kboot/main.c
188

Minor nit: spaces around assignment

This revision is now accepted and ready to land.Jan 12 2023, 5:37 AM