Bug#417030: new update-grub

Robert Millan rmh at aybabtu.com
Sat May 5 12:34:17 UTC 2007


reassign 417030 grub-invaders
tags 417030 upstream
thanks

grub2 has switched to a new, modular update-grub implementation.  3rd party
applications intended to be used with grub are now expected to provide their
own module for grub.cfg (equivalent to menu.lst) configuration.

Attached script can be deployed in /etc/grub.d/20_invaders to add a boot
entry for your program.

Note: Running update-grub automaticaly is garanteed to be safe.  I suggest
you take advantage of this and run update-grub in postinst, if found (but
please do not make assumptions about its location).

Btw, also note that /etc/grub.d is an upstream feature.  If you want, you can
send these scripts to your upstream, too.

-- 
Robert Millan

My spam trap is honeypot at aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
-------------- next part --------------
#!/bin/bash -e

if test -e /boot/invaders ; then
  echo "Found GRUB Invaders: /boot/invaders" >&2
  cat << EOF
menuentry "GRUB Invaders" {
	multiboot	/boot/invaders
}
EOF
fi


More information about the Pkg-grub-devel mailing list