Skip to content

Reset to the text console before exiting grub2 (bsc#1248167)#2726

Closed
lcp wants to merge 2 commits intoagama-project:masterfrom
lcp:fix-seabios-screen
Closed

Reset to the text console before exiting grub2 (bsc#1248167)#2726
lcp wants to merge 2 commits intoagama-project:masterfrom
lcp:fix-seabios-screen

Conversation

@lcp
Copy link
Copy Markdown

@lcp lcp commented Sep 12, 2025

The 'Boot from Hard Disk' menu entry exits grub2 and gives back the control to the system firmware, e.g. BIOS or UEFI. Without resetting the terminal output to the text console, SeaBIOS may not clean up the screen and output messages correctly.

Ref: https://bugzilla.suse.com/show_bug.cgi?id=1248167

The 'Boot from Hard Disk' menu entry exits grub2 and gives back the
control to the system firmware, e.g. BIOS or UEFI. Without resetting the
terminal output to the text console, SeaBIOS may not clean up the screen
and output messages correctly.

Signed-off-by: Gary Lin <glin@suse.com>
@lcp lcp force-pushed the fix-seabios-screen branch from c53d312 to a036307 Compare October 7, 2025 06:27
@lcp
Copy link
Copy Markdown
Author

lcp commented Jan 29, 2026

Ping?

@ancorgs
Copy link
Copy Markdown
Contributor

ancorgs commented Mar 19, 2026

I think "boot from hard disk" was dropped here for EFI systems. #3185

If that's the case, that would obsolete this PR and the corresponding boot report.

@jreidinger (as author of the mentioned PR) Can you check?

@jreidinger
Copy link
Copy Markdown
Contributor

@ancorgs this code is only for non-efi, so still relevant...just condition is not needed.

@lcp
Copy link
Copy Markdown
Author

lcp commented Mar 23, 2026

@ancorgs this code is only for non-efi, so still relevant...just condition is not needed.

Yes, the fix is for the legacy BIOS. I'll remove the condition since "Boot from hard disk" is dropped for EFI.

@lcp
Copy link
Copy Markdown
Author

lcp commented Mar 23, 2026

Hmm the logic of "Boot from Hard Disk" changed. It now uses chainloader (hd0)+1 to chainload the bootloader in hd0 instead of just calling exit to return the control to the firmware. If so, the reported graphic issue probably won't happen.

@lcp lcp closed this Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants