]> git.ipfire.org Git - thirdparty/systemd.git/commit
Revert "boot: Use EFI_BOOT_MANAGER_POLICY_PROTOCOL to connect console devices"
authorJan Janssen <medhefgo@web.de>
Fri, 23 Dec 2022 13:14:53 +0000 (14:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 3 Jan 2023 16:12:33 +0000 (17:12 +0100)
commitf151abb0e5fa4f820109eb0541bfdcba319d2b92
tree5ad39813102a6fd1a9f909d4e47953c8e3bd5952
parent8d41101a4afc522e8e1232e3397811f5e971099e
Revert "boot: Use EFI_BOOT_MANAGER_POLICY_PROTOCOL to connect console devices"

This reverts commit b99bf5811850afdb2502ba37251c48348da63c82.

It seems that using this protocol on some firmwares to forcibly
initialize console devices may break handles (already opened file
handles and the device handle itself) that we rely on to access the
boot filesystem, making it impossible to load the selected entry.

It might be possible to get a new handle by querying for the device
handle by using its device path after calling into this protocol, but
this is untested. The firmware might also be so buggy that accessing
devices after using this protocol is impossible.

It seems prudent to revert this for now until some reliable way is found
to initialize console devices without introducing huge boot delays. Any
users on firmware where console devices cannot be accessed would have to
rely on disabling fastboot.

Fixes: #25737, #25846
src/boot/efi/console.c
src/boot/efi/missing_efi.h