drivers/disk: Re-add mistakenly removed responsiveness check for EFI volumes
diff --git a/common/drivers/disk.s2.c b/common/drivers/disk.s2.c
index 191ebdfd..a9726773 100644
--- a/common/drivers/disk.s2.c
+++ b/common/drivers/disk.s2.c
@@ -782,6 +782,12 @@ fail:
if (drive->Media->LogicalPartition)
continue;
+ // Read test to ensure device is responsive (skipping this causes hangs on some systems)
+ status = drive->ReadBlocks(drive, drive->Media->MediaId, 0, 4096, unique_sector_pool);
+ if (status) {
+ continue;
+ }
+
struct volume *block = ext_mem_alloc(sizeof(struct volume));
bool is_optical = is_efi_handle_optical(handles[i]) ||
