diff options
-rw-r--r-- | usr/src/boot/sys/boot/efi/loader/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/boot/sys/boot/efi/loader/main.c b/usr/src/boot/sys/boot/efi/loader/main.c index 0bc0dcdb80..2cb24357af 100644 --- a/usr/src/boot/sys/boot/efi/loader/main.c +++ b/usr/src/boot/sys/boot/efi/loader/main.c @@ -96,8 +96,8 @@ efi_zfs_is_preferred(EFI_HANDLE *h) node = efi_devpath_last_node(devpath); if (node == NULL) return (false); - if (DevicePathType(node) != MEDIA_DEVICE_PATH && - (DevicePathSubType(node) != MEDIA_FILEPATH_DP || + if (DevicePathType(node) != MEDIA_DEVICE_PATH || + (DevicePathSubType(node) != MEDIA_FILEPATH_DP && DevicePathSubType(node) != MEDIA_HARDDRIVE_DP)) { return (false); } |