freebsd-dev/stand
Toomas Soome 523a713ffb loader.efi: efipart needs better support detecting nested partitions
Just as disks can have nested partitions, the same happens with cd devices,
so we need to detect device paths and make sure we will not mix the handles.

To address this:

we fetch handle array and create linked list of block devices.
we walk the list and detect parent devices and set children pd_parent.
for {fd, cd, hd}, we walk device list and pick up our devices and store to
corresponding list. We make sure we store parent device first.

For sorting we use 3 steps: We check for floppy, we check for cd and then
everything else must be hd.

In general, it seems the floppy devices have no parent.
CD can have both parents and children (multiple boot entries, partitions
from the hybrid disk image).

Tested by: cross+freebsd@distal.com on Cisco UCS systems, C200 series (C220M5, C240M4).
Also on MBP with UEFI 1.10

Reported by:	Chriss Ross
MFC after:	1w
Differential Revision:	https://reviews.freebsd.org/D22553
2019-11-30 09:11:28 +00:00
..
arm
arm64
common loader: add support for hybrid PMBR for GPT partition table 2019-11-15 20:43:39 +00:00
defaults
efi loader.efi: efipart needs better support detecting nested partitions 2019-11-30 09:11:28 +00:00
fdt
ficl Add support for hypervisor check on x86 2019-10-24 20:02:48 +00:00
ficl32
forth loader_4th: menu items need to reset color attribute, not switch to white 2019-09-22 16:10:25 +00:00
i386 cstyle cleanup for i386_copy.c 2019-11-08 12:19:03 +00:00
kshim
liblua Add flua to the base system, install to /usr/libexec 2019-11-18 23:21:13 +00:00
liblua32
libsa MFV r354382,r354385: 10601 10757 Pool allocation classes 2019-11-21 08:20:05 +00:00
libsa32
lua lualoader: rewrite try_include using lfs + dofile 2019-11-02 04:01:39 +00:00
man
mips mips: ubldr: use truncated load address for mips32 2019-09-18 01:33:17 +00:00
ofw
powerpc loader/powerpc64: Include generic PVR values in CAS architecture list 2019-10-08 02:36:53 +00:00
sparc64
uboot
usb
userboot loader: userboot/test should accept more than one disk 2019-11-03 09:14:29 +00:00
defs.mk Add flua to the base system, install to /usr/libexec 2019-11-18 23:21:13 +00:00
fdt.mk
ficl.mk
loader.mk Add flua to the base system, install to /usr/libexec 2019-11-18 23:21:13 +00:00
lua.mk
Makefile
Makefile.amd64
Makefile.inc
uboot.mk