Disable building video_bochs and video_cirrus for EFI x86 platforms (i386_efi and x86_64_efi). For x86 EFI platforms efi_gop or efi_uga should provide the video support. Currently, in EFI platforms there is a risk that both the legacy device is present and the EFI video interface - which can cause unexpected video corruption when a mix of the two interfaces are used. This can happen when all_video is loaded for simplicity in a GRUB config.
There is some additional analysis from the Qemu team in this thread: https://gitlab.com/qemu-project/qemu/-/issues/2562 This is an issue on some major distros such as Debian on EFI when running under Qemu and potentially other scenarios. There is some discussion on the Debian side in this thread: https://salsa.debian.org/kernel-team/linux/-/merge_requests/1453 This relates to this discussion from grub-devel also: https://lists.gnu.org/archive/html/grub-devel/2025-09/msg00244.html Following this change, for x86_64_efi the following modules would be loaded by "all_video": "efi_gop" "efi_uga" Link to v1 thread: https://lists.gnu.org/archive/html/grub-devel/2025-09/msg00254.html Fixes: https://savannah.gnu.org/bugs/index.php?66200 Changes v1 => v2: Also remove video_cirrus when building for i386 EFI or x86-64 EFI Andrew Hamilton (1): build: Disable building video_bochs/cirrus for EFI x86 platforms grub-core/Makefile.core.def | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) -- 2.47.3 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
