loader.efi: There are systems without ConOut, also use ConOutDev
Conout does contian the default output device name. ConOutDev does contain all possible output device names, so we can use it as fallback, when there is no ConOut. PR: 253253
This commit is contained in:
parent
aa77662373
commit
2bd4ff2d89
@ -735,6 +735,8 @@ parse_uefi_con_out(void)
|
|||||||
how = 0;
|
how = 0;
|
||||||
sz = sizeof(buf);
|
sz = sizeof(buf);
|
||||||
rv = efi_global_getenv("ConOut", buf, &sz);
|
rv = efi_global_getenv("ConOut", buf, &sz);
|
||||||
|
if (rv != EFI_SUCCESS)
|
||||||
|
rv = efi_global_getenv("ConOutDev", buf, &sz);
|
||||||
if (rv != EFI_SUCCESS) {
|
if (rv != EFI_SUCCESS) {
|
||||||
/* If we don't have any ConOut default to serial */
|
/* If we don't have any ConOut default to serial */
|
||||||
how = RB_SERIAL;
|
how = RB_SERIAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user