bugGNU GRUB - Bugs: bug #56603, Grub show boot menue and wait for...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #56603: Grub show boot menue and wait for 30s after hibernate even is menue is hidden or set to another wait time.

Submitter:  Marc Köntges <pventwickler>
Submitted:  Wed 10 Jul 2019 01:10:12 AM UTC
Votes: 10
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  2.02
Release:  Reproducibility:  Every Time
Planned Release:  None

Fri 22 Oct 2021 02:45:45 PM UTC, comment #1: 
Ulf Zibis <ulfzibis>
Wed 10 Jul 2019 01:10:12 AM UTC, original submission:  

Problem: Linux Mint Mate 19.1 always wakes up with a grub menu and 30 s wait time during boot after hibernation, even if you have configured the boot menu as hidden or with a different wait time.

Others seem to have the same problem:
https://www.linuxmintusers.de/index.php?topic=53547.0
https://www.linuxmintusers.de/index.php?topic=53428.0
https://wiki.hetzner.de/index.php/Grub2_recordfail/en
http://www.ubuntu-forum.de/artikel/53340/grub2-kein-timeout-mehr.html

The Grub Envirementvariable recordfail is not set correctly when switching to hibernate mode.
This always causes the boot menu to appear because Grub thinks the system was not started correctly.

Previously, scripts running before and after sleep or hibernate were placed in
 /etc/pm/sleep.d/

Starting with Unbutu 16.04, the directory was changed to
/lib/system/system-sleep/

See
https://forum.ubuntuusers.de/topic/script-nach-standby-ausfuehren/#post-3392787
or
https://wiki.archlinux.org/index.php/Power_management#Hooks_in_/usr/lib/systemd/system-sleep

The script, which sets the grub recordfail variable, has apparently not been moved to the new directory.
The script should therefore be copied to the new directory:

sudo cp /etc/pm/sleep.d/10_grub-common /lib/systemd/system-sleep/

with
sudo vi /lib/system/system-sleep/10_grub-common

you change the script from

#!/bin/sh

# Tell grub that resume was successful

case "$1" in
thaw)
                [ -s /boot/grub/grubenv ] || rm -f /boot/grub/grubenv
                mkdir -p /boot/grub
                grub-editenv /boot/grub/grubenv unset recordfail
                ;;
esac

to the following

#!/bin/sh

# Tell grub that resume was successful

case $1/$2 in
        post/*)
                [ -s /boot/grub/grubenv ] || rm -f /boot/grub/grubenv
                mkdir -p /boot/grub
                grub-editenv /boot/grub/grubenv unset recordfail
                ;;
esac

because the transfer parameters have changed.

My system boot now works under Linux Mint Mate 19.1 on several computers without 30s waiting time in the grub menu after a hibernate state.

Maybe someone of the Grub developers can take a closer look at this problem.

Marc Köntges <pventwickler>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ulfzibis (Posted a comment)
  • -email is unavailable- added by cas_0 (Voted in favor of this item)
  • -email is unavailable- added by pventwickler (Submitted the item)
  •  

    There are 10 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-05-03 cas_0 Carbon-Copy- Added cas_0

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code