Prefer ConnectDevicesFromQemu() to EfiBootManagerConnectAll().
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Shannon Zhao <zhaoshenglong@huawei.com>
Cc: Xiang Zheng <xiang.zheng@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> # ArmVirtQemu
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Xiang Zheng <xiang.zheng@linaro.org>
+ RETURN_STATUS Status;\r
+\r
//\r
// Show the splash screen.\r
//\r
BootLogoEnableLogo ();\r
\r
//\r
//\r
// Show the splash screen.\r
//\r
BootLogoEnableLogo ();\r
\r
//\r
- // Connect the rest of the devices.\r
+ // Connect the purported boot devices.\r
- EfiBootManagerConnectAll ();\r
+ Status = ConnectDevicesFromQemu ();\r
+ if (RETURN_ERROR (Status)) {\r
+ //\r
+ // Connect the rest of the devices.\r
+ //\r
+ EfiBootManagerConnectAll ();\r
+ }\r
\r
//\r
// Process QEMU's -kernel command line option. Note that the kernel booted\r
\r
//\r
// Process QEMU's -kernel command line option. Note that the kernel booted\r