China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 04:40
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Introduction to the New Submenu of Syslinux View 4,831 Replies 3
Original Poster Posted 2008-02-23 16:26 ·  中国 福建 厦门 电信
中级用户
★★
Credits 480
Posts 197
Joined 2006-09-20 00:40
19-year member
UID 63115
From 黄冈
Status Offline
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 ]
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
429499381 +2 2008-02-27 18:10
xsrdg +2 2009-01-04 11:05
Floor 2 Posted 2008-02-25 12:30 ·  中国 陕西 汉中 电信
新手上路
Credits 8
Posts 3
Joined 2007-12-27 09:42
18-year member
UID 106902
Gender Male
Status Offline
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?
Floor 3 Posted 2008-02-27 18:11 ·  中国 湖北 武汉 武昌区 电信
中级用户
★★
Credits 452
Posts 202
Joined 2006-12-21 13:46
19-year member
UID 74161
Gender Female
Status Offline
Can you remove the point limit? Your introduction is too little. It's best to make a relevant link
Floor 4 Posted 2008-02-27 21:08 ·  中国 福建 厦门 集美区 电信
中级用户
★★
Credits 480
Posts 197
Joined 2006-09-20 00:40
19-year member
UID 63115
From 黄冈
Status Offline
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 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
429499381 +8 2008-03-06 12:34
Forum Jump: