HomeFreeBSD

stand/boot1.efi: use the bootonce dataset as root dataset

Description

stand/boot1.efi: use the bootonce dataset as root dataset

Before this change we would only pass the bootonce dataset name
to the environment for the next loader, while actually reading
the next stage loader from the 'bootfs' dataset, not the bootonce
dataset.

Another problem fixed by this change is a boot from a configuration
when bootonce attribute is present, but 'bootfs' property is not set.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D40389

Details

Provenance
glebiusAuthored on Jun 8 2023, 6:14 PM
Reviewer
imp
Differential Revision
D40389: stand/boot1.efi: use the bootonce dataset as root dataset
Parents
rGe3e2681d0ec2: stand/loader.efi: read zfs bootonce attribute before checking currdev
Branches
Unknown
Tags
Unknown