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

H. Peter Anvin hpa at zytor.com
Sun Nov 9 17:20:30 PST 2008


Gene Cumm wrote:
> 
> 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.
> 

Yes, although that could be considered "out of scope".

Extlinux is clearly the most challenging filesystem to deal with this
for, but other derivatives for Unix-like filesystems are likely to have
similar issues, and those might not even have the ".." directory entries
that even make it possible to recurse upward.

The other alternative, of course, is to not rely on a cached inode
number but to store the initial root path by name in extlinux.sys.

	-hpa




More information about the Syslinux mailing list