Follow-up Comment #5, bug #40530 (project grub): I like the alternatives much better. Now the implementation issues: swap may not be visible to GRUB so looking at it is not reliable. The way to proceed would be along GRUB saving last booted entry in grubenv as "last_entry". Then hibernate scripts would use grub-editenv set "hibernated" variable to 1. grub-mkconfig if GRUB_HIBERNATE_CHECK=true in /etc/default/grub then would add a code in 00_header to set default to $last_entry and clear hibernated. Don't expect me to make a patch, last time I used hibernate RAM was just about 256M. But I'd accept a sane patch along those lines.
_______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?40530> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub