Make loader.efi dual boot, step 1
Update from FreeBSD. This does enable loader.efi to be used directly, without boot1.efi.
Minor refactoring of currdev assignment. Remove redunant device device type.
Start to simplify the searching of block devices. Move the loops into efipart.c. Add back pointers for the devsw in pdinfo_t and introduce a pd_parent so we can represent partitions more easily. This is simply a refactor, no new functionality.
Add a quick sanity chceck to the zfs and disk partition code. We require loader.conf to exist on the partition we're considering. If the currdev from the image descriptor isn't sane, and it has a disk parent (and is therefore a slice), try all the sibling slices to see if one of them is same. Add some comments to flesh out what we're doing and call out some missing pieces of the puzzle.
Sponsored by: Netflix
Updated by Electric Monk almost 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit e3026534c008abc0cbdcccf8cff6ac302fac6b52 Author: Toomas Soome <firstname.lastname@example.org> Date: 2018-12-05T00:32:46.000Z 9988 Make loader.efi dual boot, step 1 Reviewed by: C Fraire <email@example.com> Reviewed by: John Levon <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>