Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63445 - grub-0.95.20040823 savedefault feature not working properly
Summary: grub-0.95.20040823 savedefault feature not working properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-09 10:09 UTC by Lars Petersen
Modified: 2005-03-10 20:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Petersen 2004-09-09 10:09:00 UTC
The 'savedefault' feature in grub-0.95.20040823 does not work as expected.
Any invocation of 'savedefault' with or without options leads to an 
'Error 27: Unrecognized command' message.

Thus, neither the new 'savedefault --once --default=n' syntax
nor the simple 'savedefault' statement from previous versions can be used.
Any entry in grub.conf containing a 'savedefault' directive will not be booted
but fails with the above error message.

Tab completion of the savedefault command, however, works fine; 
'help savedefault' prints out some usage info, although with a whole
different syntax (which, however, does not work either):

savedefault: savedefault [NUM | `fallback']
    Save the current entry as the default boot entry if no argument
    is specified. If a number is specified, this number is saved. If
    `fallback' is used, next fallback entry is saved.

The 'grub-set-default' utility does its job, and a subsequent 'default saved'
in grub.conf actually boots the default entry selected this way.

Reproducible: Always
Steps to Reproduce:
1. Emerge grub-0.95.20040823
2. Install new grub version as bootloader
3. Try the savedefault directive in grub.conf or at a grub command prompt

Actual Results:  
See above 

Expected Results:  
savedefault in a grub.conf entry should save that entry as default for next 
boot. 
savedefault --once --default=n should save entry n as default for next boot 
only, leaving 'long-run' default unchanged.
Comment 1 Robert Moss (RETIRED) gentoo-dev 2004-09-09 10:14:24 UTC
Confirmed. It appears that this has been broken at some point after it was merged, and I picked a bad day to make a CVS snapshot. I'll see whether making a new snapshot fixes this - I imagine it probably will.
Comment 2 Gerald 2004-10-02 15:57:34 UTC
Robert,

any chance you could make a new snapshot sometime?

I'm asking because new Grub versions to solve this will probably not come out till Grub2 is done (?) - and that may take a LOOOONG time :-(
Comment 3 Robert Moss (RETIRED) gentoo-dev 2004-11-11 11:15:11 UTC
I'm pestering the grub guys for a 0.96 release date. If it's unacceptablely distant, I'll add a new snapshot. I'm working on stripping out the network booting related stuff into a USE flag dependency first though, so it may be a week or two before I get around to it.
Comment 4 SpanKY gentoo-dev 2005-03-10 20:35:30 UTC
0.96 is in portage