Menu old

From Syslinux Wiki
Revision as of 14:09, 28 July 2007 by Bls (talk | contribs) (oops)

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