Page MenuHomeFreeBSD

Loader: explain currdev syntax
ClosedPublic

Authored by allanjude on Jul 11 2020, 7:52 PM.
Tags
None
Referenced Files
F145307735: D25629.id74376.diff
Wed, Feb 18, 5:59 AM
Unknown Object (File)
Wed, Feb 11, 1:26 PM
Unknown Object (File)
Sat, Feb 7, 10:29 PM
Unknown Object (File)
Sat, Feb 7, 7:36 PM
Unknown Object (File)
Fri, Jan 30, 6:05 PM
Unknown Object (File)
Wed, Jan 21, 6:22 PM
Unknown Object (File)
Jan 18 2026, 10:51 AM
Unknown Object (File)
Dec 30 2025, 10:59 PM
Subscribers

Details

Summary

The loader(8) man page doesn't explain how you correctly format currdev

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Jul 11 2020, 7:54 PM
val_packett.cool added inline comments.
stand/man/loader.8
486 ↗(On Diff #74334)

huh, what's with the : at the end? I don't remember ever writing it

kevans added inline comments.
stand/man/loader.8
486 ↗(On Diff #74334)

I was under the impression it's to remove ambiguity, because we may literally glue currdev and a path together for,e.g., open(). Omitting it could cause hilarityto ensue, I believe.

stand/man/loader.8
486 ↗(On Diff #74334)

Yeah, because the path ends up being like: zfs:dataset:/boot/kernel/kernel etc
The : at the end is very required.

For ZFS, 'set currdev=zfs:dataset' will return an error, saying it is invalid without the trailing :

This revision was automatically updated to reflect the committed changes.