Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 316653

Summary: sys-boot/grub-0.97-r9: 'help savedefault' shouldnt show anything in /sbin/grub
Product: Gentoo Linux Reporter: Bent Bisballe Nyeng <deva>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bent Bisballe Nyeng 2010-04-22 12:09:56 UTC
The patch described in #42991 does not work.
In fact it seems the problem was never properly solved.
I decided to open a new bug rather than reopening the old one, since it now concerns a much higher version og grub.

In short: The savedefault was intended to gain an extra parameter "--once". But it doesn't. In fact the savedefault command is completely broken, responding with "Error 27: Unrecognized command". The 'help savedefault' command works, but does not mention the '--once' parameter. 

Reproducible: Always

Steps to Reproduce:
1. run grub
2. run command 'savedefault' or 'savedefault --once'


Actual Results:  
Error 27: Unrecognized command

Expected Results:  
Some sort of success.
In the case of '--once'. The system should boot the wanted entry one time, and then, next time, boot default again.
Comment 1 SpanKY gentoo-dev 2010-04-23 19:19:16 UTC
that bug/patch is not relevant as neither exist in current grub versions.  savedefault is used via grub.conf only and there it works perfectly fine.  it's an error that 'help savedefault' shows anything at all, but that is it -- it is not used in the interactive grub util.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-06-25 00:26:20 UTC
savedefault is not meant to work on the commandline.
Comment 3 SpanKY gentoo-dev 2010-06-25 02:19:12 UTC
yes, and there is a hook in the grub code so that it doesnt even show up in the command line help.  the current code enables it when it shouldnt.