From: Jan Janssen Date: Sun, 27 Nov 2022 12:53:30 +0000 (+0100) Subject: boot: Make sure all partitions drivers are connected X-Git-Tag: v253-rc1~385^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f19be808c9cb9cabcaf1e48ccff875fa8191d3a;p=thirdparty%2Fsystemd.git boot: Make sure all partitions drivers are connected --- diff --git a/src/boot/efi/part-discovery.c b/src/boot/efi/part-discovery.c index de6d6112a13..14479c06eae 100644 --- a/src/boot/efi/part-discovery.c +++ b/src/boot/efi/part-discovery.c @@ -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;