bugGNU 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: 

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.

Vladimir Serbinenko <phcoder>
Group administrator
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?
2. The virgin first start of an unattended system would be for sure non-unattended, and the operator would become aware of the rarely-occurring situation, so then could remedy the cause or set the option.
3. If you still think, I'm wrong, then here 2 other suggestions for the problematic case:
- Interrupt the boot with a loooong time-out, e.g. 3 minutes, which only could be decreased optionally, so standard user has enough time to prevent the system from dangerously booting the wrong partition.
- If I can't convince you, then please introduce a non-default option for hibernation-detection at least.

To me:
Negligently corrupting a file system and destroying data is "not an option".

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>
Group administrator
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>
Group administrator
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.
Instead the hibernation state of partition 2 should be displayed to the user as a big warning and booting from another partition should be only processed after additional manual acknowledgement.

Justification:
Prevent from situations, described in https://bugs.launchpad.net/ubuntu/+source/ntfs-3g/+bug/1198507

Ulf Zibis <ulfzibis>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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 phcoder (Posted a comment)
  • -email is unavailable- added by ulfzibis (Voted in favor of this item)
  • -email is unavailable- added by ulfzibis (Submitted the item)
  •  

    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 ReleaseNone 2.03+
    2013-11-09 ulfzibis Carbon-Copy- Added ulfzibis

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code