Menu old

From Syslinux Wiki
Revision as of 14:08, 28 July 2007 by Bls (talk | contribs) (begin documenting menu)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 <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.