On Wed, Apr 23, 2008 at 09:19:35PM +0200, Yann Dirson wrote:
> Hi GRUB maints,
> 
> Looking at this report against memtest86+, I'd like to have some
> advice about the criteria to use to run the legacy update-grub.
> 
> The suggested patch perpetuates considering the existence of grub.conf
> as a necessary condition to run update-grub, but it is already a
> condition for running update-grub2.  I suppose simply checking for
> menu.lst would be more accurate.  Do you confirm ?

Hi Yann,

Sorry if I missed a notification (I tend to forget these things).  You don't
need to check for grub.conf anymore;  simply checking that update-grub2 is
available would suffice.  This is what grub-invaders does:

if [ "$1" = "configure" ] && [ -x "`which update-grub2 2>/dev/null`" ]; then
        update-grub2
fi

As for GRUB Legacy, I don't recommend that you run update-grub automatically.
In a way we have promised that this wouldn't happen, so some users commented
out the update-grub lines in /etc/kernel-img.conf, and if you auto-run
update-grub automatically overwriting their menu.lst they'll probably get
yell at you ;-)

-- 
Robert Millan

"The technological evasion of the license is as unacceptable as the
 legal evasion of the license [...].  That's the provision in section
 1 regarding keys. [...]  We say one thing: when you sell somebody a
 home... give him the keys"  -- Eben Moglen on GPLv3



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to