]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Make sure all partitions drivers are connected
authorJan Janssen <medhefgo@web.de>
Sun, 27 Nov 2022 12:53:30 +0000 (13:53 +0100)
committerJan Janssen <medhefgo@web.de>
Tue, 29 Nov 2022 14:03:52 +0000 (15:03 +0100)
src/boot/efi/part-discovery.c

index de6d6112a13280cc1d24c7db64f5e071c9ee6cb8..14479c06eaee937ec2d48755da910cf938c36784 100644 (file)
@@ -202,6 +202,10 @@ static EFI_STATUS find_device(const EFI_GUID *type, EFI_HANDLE *device, EFI_DEVI
         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;