Difference between revisions of "Menu.c32"

From Syslinux Wiki
Jump to: navigation, search
(Menu.c32 moved to Menu.c32 old: replacing with newer page)
 
m (Correct Headings wiki formatting. Add links.)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
#REDIRECT [[Menu.c32 old]]
+
[[Category:Comboot]]
 +
[[Category:Configuration]]
 +
[[Category:Menu]]
 +
[[Category:Modules]]
 +
== About ==
 +
'''menu.c32''' is a comboot module for Syslinux that renders a menu on the screen.
 +
 
 +
== Requirements ==
 +
* working Syslinux environment
 +
 
 +
== Syntax ==
 +
menu.c32 path/to/menu.cfg
 +
 
 +
The menu.cfg consists of a series of [[Menu|special additions]] to the normal Syslinux [[config]] file.
 +
 
 +
== Example ==
 +
Here is an example menu.cfg file for booting:
 +
 
 +
<font size=1>( Note that since version 3.74, the <tt>default</tt> directive usage has changed. Use <tt>UI</tt> instead)
 +
( See [[News-3.74#UI mode|UI mode]] or [[Syslinux 3 Changelog#Changes in 3.74|Changes in 3.74]] )</font size>
 +
 
 +
<pre>
 +
default menu.c32
 +
prompt 0
 +
 
 +
MENU TITLE Sample Menu
 +
MENU AUTOBOOT Starting SuperOS in # seconds
 +
timeout 300
 +
TOTALTIMEOUT 9000
 +
 
 +
label superLinuxOS
 +
  MENU DEFAULT
 +
  MENU LABEL SuperOS 5.3
 +
  kernel linux.c32 path/kernel
 +
  append initrd=path/initramfs.cgz root=/dev/ram0 rw quiet
 +
 
 +
label disk0
 +
  localboot 0
 +
  MENU LABEL Boot disk (0x80)
 +
</pre>
 +
 
 +
== Further Reading ==
 +
*[[Comboot/menu.c32|Wikified README/menu.txt]]
 +
 
 +
== Menu examples ==
 +
* [http://github.com/tai/pxe-menu menu.cgi - Dynamic syslinux menu generation] Example of CGI-based menu generation and netbooting over HTTP. [http://labs.aobac.net/boot/menu.html <strike>menu.cgi</strike> - older site] <small>(dead link)</small>
 +
* [http://www.wonkity.com/~wblock/docs/html/pxe.html#preprocessing  Preprocessing Menus With cpp]
 +
* Add a link to your example here

Latest revision as of 13:40, 30 August 2014

About

menu.c32 is a comboot module for Syslinux that renders a menu on the screen.

Requirements

  • working Syslinux environment

Syntax

menu.c32 path/to/menu.cfg

The menu.cfg consists of a series of special additions to the normal Syslinux config file.

Example

Here is an example menu.cfg file for booting:

( Note that since version 3.74, the default directive usage has changed. Use UI instead) ( See UI mode or Changes in 3.74 )

default menu.c32
prompt 0

MENU TITLE Sample Menu
MENU AUTOBOOT Starting SuperOS in # seconds
timeout 300
TOTALTIMEOUT 9000

label superLinuxOS
  MENU DEFAULT
  MENU LABEL SuperOS 5.3
  kernel linux.c32 path/kernel
  append initrd=path/initramfs.cgz root=/dev/ram0 rw quiet

label disk0
  localboot 0
  MENU LABEL Boot disk (0x80)

Further Reading

Menu examples