lilo -R equivalent in grub?

Sean Estabrooks seanlkml at rogers.com
Wed Dec 31 14:10:53 UTC 2003


On Tue, 30 Dec 2003 21:57:55 -1000
Warren Togami <warren at togami.com> wrote:

> I just learned about the awesome "lilo -R" command.  The man page says:
> 
> -R command line
> This option sets the default command for  the  boot  loader  the next 
> time  it  executes.  The  boot loader will then erase this line: this is
> 
> a once-only  command.  It  is  typically  used  in reboot scripts, just 
> before calling ___shutdown -r___.
> 
> This allows you to test new kernels on remote servers, and it will 
> revert back to the lilo.conf default during the next boot.  A regular 
> reboot, remote power cycle, or passing 'panic=10' kernel option which 
> reboots upon panic would fallback to the previous default.
> 
> Does GRUB have anything similar to lilo's -R?  This is a totally useful 
> function and I would really like to avoid using lilo.
> 
> If this functionality is truly missing from GRUB then this is another 
> project for me.
> 
Hi Warren,

Yes grub has the "--once" option to savedefault:

savedefault --default=N --once

used in the grub shell.


Sean






More information about the devel mailing list