bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRUB patch for 'lilo -R' functionality


From: Keir Fraser
Subject: Re: GRUB patch for 'lilo -R' functionality
Date: Tue, 11 Nov 2003 19:00:21 +0000

> I only changed the behaviour of savedefault when executed within the
> GRUB-util shell (ie. not GRUB menu mode). I can't think of a scenario
> where the '--once' semantics would be useful to access from the GRUB
> menu, so I'm reluctant to 'fix' this behaviour.
> 
> One other limitation you should be aware of is that '--once' only
> works if the stage2 file is accessible via a currently-mounted
> filesystem at /boot/grub/stage2. So, for example, if your stage2 is on
> a filesystem that is not mounted, or is mounted somewhere completely
> different, the '--once' flag will not work.

I'll just add that the patch as it stands is sufficient to provide
'lilo -R' functionality for the vast majority of GRUB setups. After
all, most people do have their GRUB menu and stage2 files permanently
mounted under /boot/grub/. That given, I use a small script which
executes the appropriate grub-shell command in batch mode: 
e.g. (to be executed as root! (e.g. 'setgrubdef 2'))

#!/bin/sh
echo "Setting to" $1 
grub --batch <<EOT
1>/dev/null 2>/dev/null
savedefault --default=$1 --once
quit
EOT


 -- Keir




reply via email to

[Prev in Thread] Current Thread [Next in Thread]