- Package:
- grub-common
- Source:
- grub2
- Description:
- GRand Unified Bootloader (common files)
- Submitter:
- Calum Lind
- Date:
- 2024-06-17 10:00:03 UTC
- Severity:
- normal
Dear Maintainer,
* What led up to the situation?
Hibernate laptop
* What was the outcome of this action?
Turning on laptop after hibernate the grub menu is displayed for 30
seconds, as if there was a failed boot.
* What outcome did you expect instead?
The grub menu does not show
The issue relates to the switch to systemd and the pm-sleep script needs
copying or moving to systemd system-sleep.
https://salsa.debian.org/grub-
team/grub/-/commit/a2dac38edcc6236bfdbefad4e9654b498843504c#b2bed7ddf92f569c404a03431b7906ac99900bfa
An example script /lib/systemd/system-sleep/10_grub-common:
#!/bin/sh
# Tell grub that resume was successful
case $1 in
post)
grub-editenv - unset recordfail
;;
esac
Related bug reports:
https://bugs.launchpad.net/grub/+bug/1475620
https://askubuntu.com/q/967816/8570
Hi, I have a merge request that addresses this bug - would appreciate it if someone can take a look: https://salsa.debian.org/grub-team/grub/-/merge_requests/22 Thanks, Jeff
The current grub-common.service has 'After=boot-complete.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target'. So I think this should be closed as fixed.