Kim Mik
2008-Sep-04 22:38 UTC
[syslinux] Add CONFIGISOLINUX, CONFIGSYSLINUX, CONFIGEXTLINUX and CONFIGPXELINUX
I would like to see that it is possible to specify which config file should be loaded. I would like to have an extension of the CONFIG command. Normally CONFIG loads the file that is specified after it. It should be nice if syslinux/isolinux/pxelinux/extlinux can choose which config file to load, based on the bootloader from which the current config is runned. If I will explain it with an example, to clarify things. Ultimate Boot CD (UBCD) is provided in an iso form which contains an isolinux.cfg in /isolinux and a syslinux.cfg in /syslinux.cfg which both load main.cfg (/ubcd/menus/main.cfg). UBCD also contains a script which places the contents of the iso on an usb thumb drive and make it bootable. =======| main.cfg | (small part of the main.cfg config file of Ultimate Boot CD) =======DEFAULT menu.c32 PROMPT 0 F1 /ubcd/menus/pmagic1.hlp F2 /ubcd/menus/pmagic2.hlp LABEL - MENU LABEL System KERNEL menu.c32 APPEND /ubcd/menus/system.cfg LABEL - MENU LABEL CPU KERNEL menu.c32 APPEND /ubcd/menus/cpu.cfg LABEL - MENU LABEL Parted Magic V3.0 (LiveCD) - Press F1 for more information CONFIG /pmagic/isolinux.cfg LABEL - MENU LABEL Parted Magic V3.0 (LiveUSB) - Press F1 for more information CONFIG /pmagic/syslinux.cfg ================================================================ Like you can see, for Parted Magic there are 2 entries. The config files (isolinux.cfg and syslinux.cfg) of Parted Magic are not the same so we can't use just one config file. Because main.cfg gets loaded by isolinux.cfg and syslinux.cfg, it should be nice when isolinux knows that is has to load the isolinux.cfg file of Parted Magic and that syslinux knows that is has to load the syslinux.cfg file of Parted Magic whitout to have 2 separate items in the menu I suggest one of the following options for the config files: ========| Method 1 | ========LABEL - MENU LABEL Parted Magic V3.0 - Press F1 for more information CONFIGISOLINUX /pmagic/isolinux.cfg CONFIGSYSLINUX /pmagic/syslinux.cfg CONFIGPXELINUX /pmagic/pxelinux.cfg CONFIGEXTLINUX /pmagic/extlinux.cfg =========================================================================== ========| Method 2 | ======== LABEL - MENU LABEL Parted Magic V3.0 - Press F1 for more information CONFIG isolinux=/pmagic/isolinux.cfg syslinux=/pmagic/syslinux.cfg pxelinux=/pmagic/syslinux.cfg extlinux=/pmagic/syslinux.cfg e.g.: If UBCD is booted from a FAT partiton with syslinux, it should load /pmagic/syslinux.cfg when selecting Parted Magic. I think that it isn't difficult to implement. Thanks in advance, Gert Hulselmans