Syslinux submenus
Posted: Wed Feb 18, 2009 2:58 pm
I have been working on getting a submenu working. For some reason I have not been able to get it to work. Here is my code, if anyone can help me it would be greatly appreciated.
Code: Select all
MENU BEGIN ^0. GParted
LABEL GParted Live
MENU LABEL GParted Live (Default settings)
MENU INDENT 5
kernel /live/vmlinuz1
append initrd=/live/initrd1.img boot=live union=aufs noswap noprompt vga=791 ip=frommedia nolocales
TEXT HELP
* GParted live version: 0.4.1-2. Live version maintainer: Steven Shiau
* Disclaimer: GParted live comes with ABSOLUTE NO WARRANTY
ENDTEXT
LABEL Live (To RAM)
MENU LABEL GParted Live (To RAM. Boot media can be removed later)
MENU INDENT 5
kernel /live/vmlinuz1
append initrd=/live/initrd1.img boot=live union=aufs noswap noprompt vga=791 toram ip=frommedia nolocales
TEXT HELP
All the programs will be copied to RAM, so you can
remove boot media (CD or USB flash drive) later
ENDTEXT
LABEL Live w/o framebuffer
MENU LABEL GParted Live (Safe graphic settings, vga=normal)
MENU INDENT 5
kernel /live/vmlinuz1
append initrd=/live/initrd1.img boot=live union=aufs noswap noprompt ip=frommedia nolocales vga=normal
TEXT HELP
Disable console frame buffer support
ENDTEXT
LABEL Live failsafe mode
MENU LABEL GParted Live (Failsafe mode)
MENU INDENT 5
kernel /live/vmlinuz1
append initrd=/live/initrd1.img boot=live union=aufs noswap noprompt acpi=off irqpoll noapic noapm nodma nomce nolapic nosmp ip=frommedia nolocales vga=normal
TEXT HELP
acpi=off irqpoll noapic noapm nodma nomce nolapic
nosmp vga=normal
ENDTEXT
LABEL memtest
# MENU HIDE
MENU LABEL Memory test using Memtest86+
MENU INDENT 5
kernel /live/memtest
TEXT HELP
Run memory test using Memtest86+
ENDTEXT
LABEL local
MENU HIDE
# MENU LABEL Local operating system in harddrive (if available)
# MENU INDENT 5
# MENU PASSWD
# 2 method to boot local device:
# (1) For localboot 0, it is decided by boot order in BIOS, so uncomment the follow 1 line if you want this method:
# localboot 0
# (2) For chain.c32, you can assign the boot device.
# Ref: extlinux.doc from syslinux
# Syntax: APPEND [hd|fd]<number> [<partition>]
# [<partition>] is optional.
# Ex:
# Second partition (2) on the first hard disk (hd0);
# Linux would *typically* call this /dev/hda2 or /dev/sda2, then it's "APPEND hd0 2"
#
kernel chain.c32
append hd0
TEXT HELP
Boot local OS from first hard disk if it's available
ENDTEXT
# Note! *.bin is specially purpose for syslinux,
# Do NOT use memtest.bin, use memtest instead of memtest.bin
LABEL Parent
MENU LABEL ^0. Return to Main Menu
MENU EXIT
MENU END