GNU GRUB - Bugs: bug #40530, GRUB should detect hibernated file...
You are not allowed to post comments on this tracker with your current authentication level.
bug #40530: GRUB should detect hibernated file system and prompt user
Submitter: | Ulf Zibis <ulfzibis> | ||
Submitted: | Sat 09 Nov 2013 10:17:47 PM UTC | ||
Votes: | 50 | ||
Category: | Security | Severity: | Major |
Priority: | 5 - Normal | Item Group: | Feature Request |
Status: | None | Privacy: | Public |
Assigned to: | None | Originator Name: | |
Open/Closed: | Open | Release: | Bazaar - trunk |
Release: | Reproducibility: | Every Time | |
Planned Release: | 2.03+ |
Sun 10 Nov 2013 11:58:46 PM UTC, comment #5: |
Vladimir Serbinenko <phcoder> |
Sun 10 Nov 2013 11:27:47 PM UTC, comment #4: 1. How likely is a hibernated file system, which is not on the default boot partition, on an unattended-starting server?
|
Ulf Zibis <ulfzibis> |
Sun 10 Nov 2013 10:22:31 PM UTC, comment #3: The unattended scenario has to work with default config. Making it work only when some option is set isn't an option either. Especially when it concerns some rarely-occuring situation. Nobody likes their server stops in response to some rare condition if the stop isn't absolutely inevitable. |
Vladimir Serbinenko <phcoder> |
Sun 10 Nov 2013 10:03:05 PM UTC, comment #2: On unattended systems, the described scenario should not occur, and if, the hibernation-detection should be disabled by option. |
Ulf Zibis <ulfzibis> |
Sun 10 Nov 2013 04:21:25 AM UTC, comment #1: Asking user is not an option. On unattended systems it would simply lock them up. |
Vladimir Serbinenko <phcoder> |
Sat 09 Nov 2013 10:17:47 PM UTC, original submission:
If file system in partition 2 is hibernated, but default boot is partition 1, then partition 1 should not boot automatically after timeout or normal selection from boot menu.
|
Ulf Zibis <ulfzibis> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 50 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.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2016-03-02 | phcoder | Planned Release | None | 2.03+ | |
2013-11-09 | ulfzibis | Carbon-Copy | - | Added ulfzibis |
Powered by Savane 3.13-d3ae.
Corresponding source code
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.