Ryan McLean
2008-Jan-09 11:38 UTC
[syslinux] Feature Request - Allow calling of labels from other labels
My config looks as follows: ------------------------------------------ # Default boot option to use DEFAULT vesamenu.c32 # Prompt user for selection PROMPT 0 # Time until default is selected TIMEOUT 100 # Menu Configuration MENU WIDTH 80 MENU MARGIN 10 MENU PASSWORDMARGIN 3 MENU ROWS 12 MENU TABMSGROW 18 MENU CMDLINEROW 18 MENU ENDROW 24 MENU PASSWORDROW 11 MENU TIMEOUTROW 20 MENU TITLE 32Bit (x86) RHES 3.x OS Choice # Vesa Options # MENU INCLUDE gfx/default # Return to Main Menu LABEL MainMenu MENU DEFAULT MENU LABEL ^Main Menu KERNEL vesamenu.c32 # # Latest Release # LABEL latest MENU LABEL ^Latest Release KERNEL knl/vmlinuz-rhes38-x86 APPEND initrd=img/initrd-rhes38-x86.img kshttp://kickstart/ks/cam/x86/rhes/38.cfg # # Blank boots # LABEL linux-38 MENU LABEL ^Blank Boot 3.8 KERNEL knl/vmlinuz-rhes38-x86 APPEND initrd=img/initrd-rhes38-x86.img LABEL linux-30 MENU LABEL Blank Boot 3.0 KERNEL knl/vmlinuz-rhes3-x86 APPEND initrd=img/initrd-rhes3-x86.img # # All Builds # LABEL v3u8 MENU LABEL Update ^8 KERNEL knl/vmlinuz-rhes38-x86 APPEND initrd=img/initrd-rhes38-x86.img kshttp://kickstart/ks/cam/x86/rhes/38.cfg LABEL v3u7 MENU LABEL Update ^7 KERNEL knl/vmlinuz-rhes3-x86 APPEND initrd=img/initrd-rhes3-x86.img kshttp://kickstart/ks/cam/x86/rhes/37.cfg LABEL v3u5 MENU LABEL Update ^5 KERNEL knl/vmlinuz-rhes35-x86 APPEND initrd=img/initrd-rhes35-x86.img kshttp://kickstart/ks/cam/x86/rhes/35.cfg ------------------------- As you can see the "latest" one is an exact copy of one of the other options (v3u8). In the above eg it isn't too bad but some of my other configs are a lot bigger and contain multiple versions of multiple linux distros. I would like to have something along the lines of: LABEL latest MENU LABEL ^Latest Release CALL LABEL v3u8 This would allow me to easily maintain the latest version(s) in a list As i would not have to update multiple lines of the config. Regards, Ryan McLean