[syslinux] Location and name of configuration files

Kim Mik kimmik999999 at yahoo.co.uk
Sun May 24 05:25:13 PDT 2009


It would also be nice, that syslinux and derivates, will look for a config file at the directory where syslinux is installed.

syslinux -d /some/directory/ /dev/sda1

will try to find /some/directory/syslinux.cfg first.

Also a new keyword CD can be handy when you want to make a multiboot CD/USB/... from different distro's.

The CD keyword will make the directory that is given after it, the new main directory, so you don't need to adapt all relative paths.

$ ls /some/directory/distro1
boot.msg
bzImage
initrd

===============================
CD /some/directory/distro1

DISPLAY boot.msg

KERNEL bzImage
APPEND initrd=initrd.gz some parameters
===============================




$ ls /some/directory/distro2
boot.msg

bzImage

initrd

===============================
CD /some/directory/distro2

DISPLAY boot.msg

KERNEL bzImage
APPEND initrd=initrd.gz some parameters
===============================


Gert Hulselmans



----- Original Message ----
From: H. Peter Anvin <hpa at zytor.com>
To: For discussion of Syslinux and tftp-hpa <syslinux at zytor.com>
Sent: Sunday, 24 May, 2009 1:34:41
Subject: Re: [syslinux] Location and name of configuration files

Andrew Yeomans wrote:
> 
> Would it not be more user-friendly and less error-prone if isolinux could
> search both sets of directories, namely:-
> 
> /boot/isolinux/isolinux.cfg
> /isolinux/isolinux.cfg
> /isolinux.cfg
> /boot/syslinux/syslinux.cfg
> /syslinux/syslinux.cfg
> /syslinux.cfg
> 
> And similarly syslinux could do the same but with the syslinux.cfg files
> first. That would make it possible to have a single .iso file that was easy
> to copy across to a USB drive, without manually changing it. And would also
> support different config files in the same .iso image for syslinux and
> isolinux, if there was a good reason to have them different.
> 
> I've just spotted that isohybrid also helps towards the aim of a single
> image for CD and USB; however a dd-able image is not so easy to use if you
> don't want to overwrite existing data. So supporting additional locations
> and names would still be useful.
> 

Yes, I'm seriously thinking that having all derivatives fall back to
syslinux.cfg is the right thing to do.  It won't happen for 3.81 (it's
way too late to make that change), but expect to see it in a future release.

    -hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.

_______________________________________________
Syslinux mailing list
Submissions to Syslinux at zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.


      




More information about the Syslinux mailing list