You are not logged in.
Hi guys,
After the upgrading issues of Grub 1.98 I started using grub-mkconfig to generate my grub.cfg file.
Everything seems to work great but it seems that grub-mkconfig can't add the resume=/dev/sdaX configuration for enabling hibernation and resuming.
How can I force grub-mkconfig to add that setting?
(yes, I do know that I can manually edit grub.cfg but ideally one wouldn't require to do so and just relying on grub-mkconfig looks to me like a cleaner solution for further updates to system - more OS, kernels, etc..)
Thanks for your time,
Fabio Varesano
Offline
in /etc/grub.d/10_linux add the line:
GRUB_CMDLINE_LINUX="resume=/dev/sdaX"before the (line 105 I think):
while [ "x$list" != "x" ] ; doNot sure how to make it auto-detect the swap yet, but that should do it. Mine is currently:
GRUB_CMDLINE_LINUX="splash acpi_osi=Linux 5"After grug-mkconfig double check the line is right.
Offline
Thanks for your suggestion.
Anyway I don't think that the correct place to set the GRUB_CMDLINE_LINUX is /etc/grub.d/10_linux.
That variable should be set in /etc/default/grub.
Offline