[syslinux] [PATCH] mboot using module path

H. Peter Anvin hpa at zytor.com
Mon Jul 27 16:42:49 PDT 2009


Damien wrote:
> 
> We are using pxelinux at my company to test our product. And there are
> limitations
> that we have hit in the past w.r.t. the max length of a path, or the
> max length of a module
> name (in mboot.c / mboot.c32). We've used workarounds in the past, and
> reorganized the
> directory structure, but we face that problem again. Out of the 128 /
> FILENAME_MAX chars
> that can be used, 110 - 120 go to the path, that includes:
> server - user - build - build type - changeset - product type -  product etc.
> This includes tags that are valuable to us, and that we cannot keep on
> shortening.
> 
> I have tried changing FILENAME_MAX / FILENAME_MAX_LG2 definitions to accept more
> characters, but it wouldn't compile, the linker script complaining
> about the 64k limit.
> Another way is to use the CurrentDirName and save the precious
> characters for the module
> names.
> 

Hi Damien,

chdir() is often proposed, but any solution implemented needs to keep
track of where the configuration file lives.  This really means, among
other things, that it can't really be used extend the total filename size.

All this code is currently in the process being rewritten in C by liu
Aleaxander and Claudiu Mihail, and should not have those limitations in
the future.  I'm hoping to have a prerelease in about a month.

I realize this is suboptimal for you, but I also really don't want to
establish user-visible legacy that we won't be able to get rid of later.

	-hpa




More information about the Syslinux mailing list