中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 07:55
47,811 topics / 349,897 posts / today 0 new / 48,256 members
GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Introduction to the New Submenu of Syslinux
Printable Version  5,058 / 3
Floor1 barton Posted 2008-02-23 16:26
中级用户 Posts 197 Credits 480 From 黄冈
In syslinux, you can call different submenus through (vesa)menu.c32.

The new submenus adopt a nested format to implement submenus. The sample is as follows.

http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.62.zip



##############################
#Here is a sample config for new submenu 。Please try the latest version of syslinux。
#More details see /doc/menu.doc

##############################


#The first submenu named fedora
menu begin fedora
menu label Fedora Network Install

label fc8-32
menu label Fedora Core 8 Install i386
kernel linux.c32
append fedora/8/i386/vmlinuz initrd=fedora/8/i386/initrd.img
ramdisk_size=8192
ks=http://raidtest.hos.anvin.org/kickstart/ks.php?arch=i386&ver=8
ipappend 2

label fc8-64
menu label Fedora Core ^8 Install x86-64
kernel linux.c32
append fedora/8/x86-64/vmlinuz
initrd=fedora/8/x86-64/initrd.img ramdisk_size=8192
ks=http://raidtest.hos.anvin.org/kickstart/ks.php?arch=x86_64&ver=8
ipappend 2

label newsub
menu label Goto ^Sub menu 2
menu goto test

menu end

############################
#The second submenu named test
menu begin test
menu label Syslinux new menu style

label -
menu label Goto ^Fedora menu
menu goto fedora

label -
menu label Goto ^top menu
menu goto .top

label -
menu label ^Up one level
menu exit

label -
menu label ^Quit to the CLI
menu quit

menu end


##############################


[ Last edited by barton on 2008-3-6 at 02:02 PM ]
Floor2 yyjjww67 Posted 2008-02-25 12:30
新手上路 Posts 3 Credits 8
When I used version 3.61, when I loaded the dos.img file with the vesamenu.c32 menu, it froze after "starting ms-dos". Is there any way to solve this?
Floor3 429499381 Posted 2008-02-27 18:11
中级用户 Posts 202 Credits 452
Can you remove the point limit? Your introduction is too little. It's best to make a relevant link
Floor4 barton Posted 2008-02-27 21:08
中级用户 Posts 197 Credits 480 From 黄冈
The first floor has two examples of new sub - menu. The method of not using kernel vesamenu.c32 to realize sub - menu.

Insert the above examples into syslinux.cfg, pxelinux.cfg, isolinux.cfg and you can see the effect. The red font is the points that should be noted when making this sub - menu.

Effect picture:








++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



In addition, there is another menu form THE ADVANCED MENU SYSTEM

Use the compiled simple.c32 and complex.c32 to load *.menu (another rule - based cfg file) to realize multi - level sub - menus

Effect picture:



[ Last edited by barton on 2008-3-5 at 06:00 PM ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023