bugGNU GRUB - Bugs: bug #30506, savedefault only for non-recovery...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #30506: savedefault only for non-recovery menuentries

Submitted by:  Mario 'BitKoenig' Holbe <holbe>
Submitted on:  Wed 21 Jul 2010 11:40:28 AM UTC  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Feature Request
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: otherReproducibility: None
Planned Release: None

Mon 01 Nov 2010 11:50:41 AM UTC, comment #2:

I made recovery entries to not save default.

Vladimir Serbinenko <phcoder>
Project Administrator
Thu 22 Jul 2010 12:27:54 PM UTC, comment #1:

The attached patch implements "no savedefault for recovery menuentries" in a configurable way.

The default behaviour is not changed by the patch.

The patch introduces a new config variable GRUB_DONT_SAVEDEFAULT_RECOVERY, which, if set, prevents recovery entries from being saved as default boot entry.
The variable name is somewhat bulky, but if I got it right, the grub config style is more to set some variable to true to produce an effect than to set one to false to prevent an effect. So, I hope it copes with grub-style this way.

The patch further augments the interface of save_default_entry() in a backwards compatible manner to tell it whether the current entry is a recovery entry or not.
All users of save_default_entry() have been changed to the new interface - also in the cases where it would not really have been necessary to do so.

(file #21034)

Mario 'BitKoenig' Holbe <holbe>
Wed 21 Jul 2010 11:40:28 AM UTC, original submission:

It would be great to have an opportunity to enable savedefault only for "normal" menuentries, but not for the recovery ones.

This should be easy to implement, but I'm not sure where to do it best and whether it should be configurable or not.
Easiest to implement would probably be in 10_linux's and 20_linux_xen's linux_entry(), best for being configurable would probably be in grub-mkconfig_lib's save_default_entry.

Mario 'BitKoenig' Holbe <holbe>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by holbe (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 01 Nov 2010 11:50:41 AM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 22 Jul 2010 12:27:54 PM UTCholbeAttached File-=>Added grub+savedefault-unless-recovery.patch, #21034

    Back to the top


    Powered by Savane 3.1-cleanup1