mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03:00
boot: Make sure all partitions drivers are connected
(cherry picked from commit 7f19be808c9cb9cabcaf1e48ccff875fa8191d3a)
This commit is contained in:
parent
989f0c52e1
commit
87add68b39
@ -201,6 +201,10 @@ static EFI_STATUS find_device(EFI_HANDLE *device, EFI_DEVICE_PATH **ret_device_p
|
|||||||
if (err != EFI_SUCCESS)
|
if (err != EFI_SUCCESS)
|
||||||
return err;
|
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);
|
err = BS->HandleProtocol(disk_handle, &BlockIoProtocol, (void **)&block_io);
|
||||||
if (err != EFI_SUCCESS)
|
if (err != EFI_SUCCESS)
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user