efi_devpath_same_disk
preferred = efi_devpath_same_disk(imgpath, devpath);
if (!efi_devpath_same_disk(imgpath, devpath)) {
bool efi_devpath_same_disk(EFI_DEVICE_PATH *, EFI_DEVICE_PATH *);