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
Unknown Object (File)
Fri, Jun 14, 3:18 AM
Unknown Object (File)
Fri, Jun 14, 3:18 AM
Unknown Object (File)
Fri, Jun 14, 3:18 AM
Unknown Object (File)
Fri, Jun 14, 3:18 AM
Unknown Object (File)
Fri, Jun 14, 2:52 AM
Unknown Object (File)
May 13 2024, 4:22 AM
Unknown Object (File)
May 12 2024, 10:13 AM
Unknown Object (File)
May 5 2024, 2:23 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