1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-06 13:17:44 +03:00

boot: Make sure all partitions drivers are connected

(cherry picked from commit 7f19be808c)
This commit is contained in:
Jan Janssen 2022-11-27 13:53:30 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 989f0c52e1
commit 87add68b39

View File

@ -201,6 +201,10 @@ static EFI_STATUS find_device(EFI_HANDLE *device, EFI_DEVICE_PATH **ret_device_p
if (err != EFI_SUCCESS)
return err;
/* The drivers for other partitions on this drive may not be initialized on fastboot firmware, so we
* have to ask the firmware to do just that. */
(void) BS->ConnectController(disk_handle, NULL, NULL, true);
err = BS->HandleProtocol(disk_handle, &BlockIoProtocol, (void **)&block_io);
if (err != EFI_SUCCESS)
return err;