Bug 1614659

Summary: grub menu still shows up even though menu_show_once=1 is set
Product: [Fedora] Fedora Reporter: lnie <lnie>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: hdegoede, lkundrak, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-18 13:28:43 UTC Type: Bug
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
journal none

Description lnie 2018-08-10 07:21:16 UTC
Created attachment 1474901 [details]
journal

Description of problem:
According to https://fedoraproject.org/wiki/Changes/HiddenGrubMenu,grub menu should be hidden on a successful boot

See 

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1.Do a fresh installation with Fedora-Workstation-Live-x86_64-Rawhide-20180807.n.1.iso
2.login and run "reboot" command on the terminal;
3.grub menu is shown though menu_auto_hide=1 

[lnie@localhost-live ~]$ sudo grub2-editenv list
[sudo] password for lnie: 
saved_entry=Fedora (4.18.0-0.rc8.git0.1.fc29.x86_64) 29 (Workstation Edition)
menu_auto_hide=1
boot_success=1
boot_indeterminate=0
 

Actual results:


Expected results:


Additional info:

Comment 1 lnie 2018-08-10 07:34:08 UTC
Er,turns out boot_success=0 means a successful boot? 
The grub menu is hidden now,the only difference operation is staying in the system longer after login,and here is the output

[lnie@localhost-live ~]$ sudo grub2-editenv list
[sudo] password for lnie: 
saved_entry=Fedora (4.18.0-0.rc8.git0.1.fc29.x86_64) 29 (Workstation Edition)
menu_auto_hide=1
boot_success=1
boot_indeterminate=0

Comment 2 Jan Kurik 2018-08-14 08:37:38 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 3 Hans de Goede 2018-08-18 13:28:43 UTC
(In reply to lnie from comment #1)
> Er,turns out boot_success=0 means a successful boot? 

No boot_success gets set to 1 after you've been logged in for at least 30 seconds, this is to avoid it getting set to 1 in case for example gnome-shell crashes immediately after login.

> The grub menu is hidden now,the only difference operation is staying in the
> system longer after login

Correct, as said you need to be logged in for at least 30 seconds.

Note I also have a patches pending to set boot success if you shutdown/reboot from the gnome3 system menu (the menu on the top right), even if your session lasted less then 30 seconds, or in case you are rebooting directly from within gdm, see:

https://gitlab.gnome.org/jwrdegoede/gnome-session/commits/master

I believe that everything is working as intended for you, so I'm going to close this bug.