boot: Simplify looking for the xboot hard drive
authorJan Janssen <medhefgo@web.de>
Tue, 18 Jan 2022 12:01:39 +0000 (13:01 +0100)
committerJan Janssen <medhefgo@web.de>
Tue, 18 Jan 2022 15:20:09 +0000 (16:20 +0100)
commitd81edd5ad7fb856cf4f96cbd6d84d8f0ed3054f8
tree613cc3fa8aa26e0832fd4d318fe96016a00552ac
parent45a24eb7e991eba9c2aff6e981617a3634666ef5
boot: Simplify looking for the xboot hard drive

The device path should not contain multiple hard drive nodes in it,
so looking at them all should not be needed.
If some crazy firmware/driver were to make nested GPT drives
available like that, we should be only looking at the last partition
and its containing GPT drive anyway.
src/boot/efi/xbootldr.c