How to edit grub menu (menu.lst) properly?

Alex Ingle ingle.as at gmail.com
Wed Sep 9 16:19:59 CEST 2009


> What I don't understand is why you have a package which modifies
> menu.lst but doesn't provide it if one doesn't exist, but oh well.

E.g. we use Splashy in our HW devices.
To configure Splashy some values must be written manually in menu.lst as
kernel's parameter.
Our product deb packets have Splashy in dependences list and modifies
menu.lst itself.
As we can see there is a problem occurs if menu.lst is absent

Thank you

2009/9/9 Michael Goetze <mgoetze at mgoetze.net>

> Hi Alexey,
>
> > 1) to execute in instsoft.GRUB hook the commands:
> > fcopy /boot/grub/menu.lst
> > $ROOTCMD update-initramfs -k all -u
> > $ROOTCMD update-grub
> > (This provides that menu.lst exists and is configured.)
>
> No - as you see from your error log, these commands don't exist yet in
> the chroot environment. You need to run them after the corresponding
> packages have been installed, of course.
>
> > 2) to remove file faiconfig/files/boot/grub/menu.lst/postinst to GRUB
> > script's directory and to comment
> >  grub update command in it.
> > (This will install grub but not change menu.lst)
>
> Sure, you just need to run grub-install at some point.
>
> What I don't understand is why you have a package which modifies
> menu.lst but doesn't provide it if one doesn't exist, but oh well...
>
> Regards,
> Michael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20090909/82a53e59/attachment-0001.htm 


More information about the linux-fai mailing list