grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DISCUSSION] Scripts and menus


From: Yoshinori K. Okuji
Subject: Re: [DISCUSSION] Scripts and menus
Date: Sun, 14 Aug 2005 20:01:25 +0200
User-agent: KMail/1.7.2

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]