Difference between revisions of "Menu old"

From Syslinux Wiki
Jump to: navigation, search
(begin documenting menu)
 
m (oops)
Line 22: Line 22:
 
   kernel vmlinuz
 
   kernel vmlinuz
 
   append initrd=cpio2.gz badhardware rdinit=/init
 
   append initrd=cpio2.gz badhardware rdinit=/init
<pre>
+
</pre>
 
<p>
 
<p>
 
The line with <code>default menu.c32</code> activates the simple menu sytem.  In this example the menu has two choices, <b>bls</b> and <b>bad</b>.  As you can see, the global options are at the beginning of the file, and then there are a series of sections that begin with <code>label</code> and end with a blank line.
 
The line with <code>default menu.c32</code> activates the simple menu sytem.  In this example the menu has two choices, <b>bls</b> and <b>bad</b>.  As you can see, the global options are at the beginning of the file, and then there are a series of sections that begin with <code>label</code> and end with a blank line.
 
</p></pre>
 
</p></pre>

Revision as of 14:09, 28 July 2007

Simple Menu System

For the isolinux bootloader you probably want to have a menu of choices for selecting what to boot. Here is a typical example of a simple text-mode isolinux.cfg file to configure a simple menu:

default menu.c32
prompt 0
menu title My Distro Installer

timeout 600
f1 help.txt
f2 version.txt

label bls
  menu label Normal install
  menu default
  kernel vmlinuz
  append initrd=cpio.gz rdinit=/init

label bad
  menu label Bad hardware install
  kernel vmlinuz
  append initrd=cpio2.gz badhardware rdinit=/init

The line with default menu.c32 activates the simple menu sytem. In this example the menu has two choices, bls and bad. As you can see, the global options are at the beginning of the file, and then there are a series of sections that begin with label and end with a blank line.

</pre>