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.

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

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>

 

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 pventwickler (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5