Bug 1914925

Summary: RFE: add patch to set grub boot_success flag on shutdown/reboot
Product: Red Hat Enterprise Linux 8 Reporter: Hans de Goede <hdegoede>
Component: gnome-sessionAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED ERRATA QA Contact: Michael Boisvert <mboisver>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: modehnal, tpelka
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gnome-session-3.28.1-13.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1994096 (view as bug list) Environment:
Last Closed: 2021-11-09 19:33:50 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1994096    

Description Hans de Goede 2021-01-11 13:52:27 UTC
We are working on supporting flickerfree boot in RHEL-8, see:
https://issues.redhat.com/browse/DESKTOP-342

The grub, kernel (bug 1878805) and plymouth (bug 1688935) side of this is in place now, so this is basically working if users opt-in to enabling the grub-hidden-menu featuere by calling:

"sudo grub2-editenv - set menu_auto_hide=1"

One thing which is not yet working is shutting-down or rebooting from directly within gdm (or from a user-session which has lasted less then 2 minutes). In this case the grub boot_success flag will not get set, so the grub menu will show on the next boot leading to an ugly / non-smooth boot experience.

In Fedora we have a small downstream (*) patch for this:
https://src.fedoraproject.org/rpms/gnome-session/blob/master/f/0001-Fedora-Set-grub-boot-flags-on-shutdown-reboot.patch

It would be great if this patch can be added to the RHEL-8 gnome-session packages to to complete flicker-free boot support for RHEL-8.



*) Coming up with an upstream solution is still being worked on

Comment 1 Ray Strode [halfline] 2021-06-21 13:12:52 UTC
fine with me

Comment 6 Michael Boisvert 2021-08-16 17:58:47 UTC
Verified on gnome-session-3.28.1-13.el8, but selinux-policy is preventing the functionality, see: https://bugzilla.redhat.com/show_bug.cgi?id=1994096

Comment 8 errata-xmlrpc 2021-11-09 19:33:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: GNOME security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4381