[syslinux] [5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http

Ady ady-sf at hotmail.com
Fri Jun 7 15:34:45 PDT 2013


> 
> Right, basically the internal PATH variable that keeps a list of
> directories in which to search for files doesn't play well when it
> encounters TFTP-style paths.
> 
> The entire problem stems from the fact that colons (':') are used to
> separate entries in the PATH directive and they're also used in
> TFTP-style paths. While I see that you don't use the PATH directive in
> your config files, a list is built internally nevertheless. Based on my
> testing your's will look something like,
> 
>   "::/arch/boot/syslinux/"
> 
> The code in findpath() sees the first ':' and goes nutso.
> 
> I'm not quite sure what the proper solution is. Clearly using ':' to
> separate entries was a terrible idea, but presumably some people are
> using that syntax now and it would cause issues if we changed it - the
> PATH directive has been supported since 5.00.
> 
> -- 
> Matt Fleming, Intel Open Source Technology Center

If I may...

Most Linux distros are not using 5.xx yet. From the point of view of 
the final user, there are still few new features in 5.xx in 
comparison with 4.xx. Before this issue affects more users, and 
perhaps even turning into more difficult maintenance and patches, it 
may be better to suffer a relatively "small" break now than later, 
when more users and more distros might adopt newer versions (6.xx).

I would guess that even those (relatively few) users already using 
5.xx would rather correct a couple of cfg files (if they are using 
the PATH directive with multiple paths), instead of potentially 
having more serious issues in the future (or making maintenance more 
difficult because of strange needed patches).

I would also guess that those users that are using 5.xx with multiple 
paths listed in the PATH directive are probably following the 
development closely enough.

IMHO, this seems to be a case where there is no "clean" solution; 
rather "suffer" from a break now (by choosing a different 
path-separator for the PATH directive), or it might generate much 
more problems in the future. Well, at least this is my (very humble) 
impression. Not being a developer myself, I could be completely and 
absolutely wrong about it.

Best Regards,
Ady.


More information about the Syslinux mailing list