HomeFreeBSD

Refactor currdev setting

Description

Refactor currdev setting

Refactor the currdev setting to find the device we booted from. Limit
searching when we don't already have a reasonable currdev from that to
the same device only. Search a little harder for ZFS volumes as that's
needed for loader.efi to live on an ESP.

Sponsored by: Netflix
Differential Review: https://reviews.freebsd.org/D13784

Details

Provenance
impAuthored on
Differential Revision
D13784: Make loader.efi dual boot, step 1
Parents
rS332415: Fix potentially overflowing expression "fs->fs_ipg * fs->fs_ncg"
Branches
Unknown
Tags
Unknown