First check if bootonce is configured and if it is, then change currdev
accordingly and after that do the sanity check. This fixes boot in a
situation when ZFS pool doesn't have the "bootfs" property, but has
bootonce attribute set. A strange, but legitimate case.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
stand/efi/loader/main.c | ||
---|---|---|
268 | I'm not 100% sure this is completely right. If we wind up not using it, then this shouldn't be set. And if it's not sane, shouldn't we act as if it wasn't set at all? |
stand/efi/loader/main.c | ||
---|---|---|
268 | This doesn't change the current behavior. I agree that env should be unset if we fail to mount the specified bootonce, but that can be a separate change. |
stand/efi/loader/main.c | ||
---|---|---|
268 | I might quibble with not changing current behavior, but current behavior is broken so let's do what I think is needed as a followup patch. |