Edit menu.lst in postinst script

Free Ekanayaka free at agnula.org
Wed Apr 19 10:41:47 UTC 2006


Hi all,

I'm  packaging the bootsplash  scripts  [0]  for  kernel  boot  splash
support.  In order to have a  fully automated setup, the package would
need to edit the menu.lst file and add options like:

# kopt=<standard options> splash=silent vga=791

and then run update-grub.

Is there a recommended way to do this in a script?

Maybe it would be better not to  edit menu.lst directly, and implement
some support  for modularized  configuration  [1] in  update-grub, for
example having a directory

/boot/grub/menu.lst.d/

where other packages can drop files with chunks of configuration.

Cheers,

Free

[0] http://www.bootsplash.org/
    http://svn.debian.org/wsvn/demudi/bootsplash/

[1] see http://lists.debian.org/debian-custom/2006/01/msg00001.html




More information about the Pkg-grub-devel mailing list