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.
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.
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 :-(
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.
0.96 is in portage