[syslinux] [PATCH 1/1] COMBOOT API: Add get current working directory call to most

Gene Cumm gene.cumm at gmail.com
Sun Nov 9 16:44:19 PST 2008


On Sun, Nov 9, 2008 at 7:22 PM, Gene Cumm <gene.cumm at gmail.com> wrote:
> From: Gene Cumm <gene.cumm at gmail.com>
>
> COMBOOT API: Add get current working directory call to most
>
> Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
>
> ---
>
> Adds an API call to obtain the current working directory.  EXTLINUX
> will not return the correct value yet however SYSLINUX, ISOLINUX, and
> PXELINUX will return the correct value.  For the moment, EXTLINUX will
> ONLY return "/" (null-terminated of course).  In SYSLINUX and
> ISOLINUX, it presets the CurrentDirName string to "/" for safety.
> PXELINUX copies TFTP Prefix to CurrentDirName (minus the trailing
> "/").
>
> Based on current head.  Conflicts with a previous patch I e-mailed.

Completing the implementation within EXTLINUX will require examining
how to recurse up a directory tree, obtaining the name of each
directory and then return building the current directory string.  It
might have been possible to cheat and let the installer pre-populate
it (like the INODE number is stored) however moving the directory
containing extlinux.sys to become another path (ie from /boot/extlinux
to /extlinux) won't change the INODE number (at least the one time I
tested) but would invalidate the original stored path.




More information about the Syslinux mailing list