On Sunday 14 August 2005 18:03, Vladimir Serbinenko wrote:
> It's only a question of syntax so it's ok but IMHO 2 points are important:
>     1) It must be possible to set additional attributes to a menu entry

I'd like to use options for these. Like this:

entry --label="gnu" --key="g" "GNU 0.3" {
  root=(hd0,0)
  multiboot /gnumach
  module /serverboot
}

>     2) It must be possible to create functions that are *not* the menu
> entries

They should be the same as Bash:

function load_modules {
  module /boot/module1
  module /boot/module2
}

entry "My OS version 1" {
  multiboot /boot/kernel-1
  load_modules
}

entry "My OS version 2" {
  multiboot /boot/kernel-2
  load_modules
}

Okuji


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to