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

Submitter:  Mario 'BitKoenig' Holbe <holbe>
Submitted:  Wed 21 Jul 2010 11:40:28 AM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  other
Release:  Reproducibility:  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>
Group 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>

 

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

Attached Files

 

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 holbe (Submitted the item)
  •  

    There are 0 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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-11-01 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2010-07-22 holbe Attached File- Added grub+savedefault-unless-recovery.patch, #21034

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code