Bug 2316279

Summary: F41+ grub2 EFI builds break flicker-free boot by always printing "dynamic_load_symbols .." (PATCH)
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: grub2Assignee: Nicolas Frayer <nfrayer>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: lkundrak, lsandova, mlewando, nfrayer, pgnd, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: grub2-2.12-9.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-10-12 00:19:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
[PATCH] Stop grub.efi from always printing "dynamic_load_symbols %p\n" during boot none

Description Hans de Goede 2024-10-03 12:36:18 UTC
The grub2 EFI binaries in F41 break flicker-free boot by always printing "dynamic_load_symbols %p\n" during boot.


Reproducible: Always

Steps to Reproduce:
1. Boot a Fedora 41 install with the grub-hidden-menu feature active (default for non multi-boot Workstation installs)

Actual Results:  
1. Notice vendor logo go away and a text briefly flash by, even though the grub-menu is hidden
2. Also EFIFB switches from the native monitor resolution of 1920x1080 to 1024x768 because of the EFI text console getting initialized.


Expected Results:  
Flicker free boot.

I am attaching a patch which fixes this.

It would be nice if this fix can be included in the F41+ grub2 build before the F41 final freeze on October 15th.

Comment 1 Hans de Goede 2024-10-03 12:37:34 UTC
Created attachment 2050232 [details]
[PATCH] Stop grub.efi from always printing "dynamic_load_symbols %p\n" during boot

Note I have not submitted this patch to grub upstream since the problem is introduced by a downstream patch.

Comment 2 Nicolas Frayer 2024-10-03 13:12:07 UTC
Hi Hans, thanks for the patch.
I am assuming I also need to apply this patch in rawhide ?

Comment 3 Hans de Goede 2024-10-03 14:10:58 UTC
(In reply to Nicolas Frayer from comment #2)
> Hi Hans, thanks for the patch.
> I am assuming I also need to apply this patch in rawhide ?

Yes the patch is actually based on top the rhboot/grub2/fedora-42 branch.

Offtopic, comparing the distgit patches vs rhboot/grub2/fedora-42 it seems that 0276-efi-loader-Check-if-NX-is-required-in-grub_efi_linux.patch is missing from rhboot/grub2/fedora-42 ?

Comment 4 Nicolas Frayer 2024-10-03 15:08:55 UTC
ok I'll apply your patch on f42/f41/f40 after it's all sync'd

Thanks for pointing the missing patch, that must have slipped out of my list.

Comment 5 Fedora Update System 2024-10-10 15:17:33 UTC
FEDORA-2024-2e76a9ff56 (grub2-2.12-9.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2e76a9ff56

Comment 6 Fedora Update System 2024-10-11 01:36:24 UTC
FEDORA-2024-2e76a9ff56 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2e76a9ff56`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2e76a9ff56

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-10-12 00:19:50 UTC
FEDORA-2024-2e76a9ff56 (grub2-2.12-9.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.