Documentation ¶
Overview ¶
Package syslinux implements a syslinux config file parser.
See http://www.syslinux.org/wiki/index.php?title=Config for general syslinux config features.
Currently, only the APPEND, INCLUDE, KERNEL, LABEL, DEFAULT, and INITRD directives are partially supported.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfigFile ¶
func ParseConfigFile(ctx context.Context, s curl.Schemes, configFile string, rootdir *url.URL, wd string) ([]boot.OSImage, error)
ParseConfigFile parses a Syslinux configuration as specified in http://www.syslinux.org/wiki/index.php?title=Config
Currently, only the APPEND, INCLUDE, KERNEL, LABEL, DEFAULT, and INITRD directives are partially supported.
`s` is used to fetch any files that must be parsed or provided.
rootdir is the partition mount point that syslinux is operating under. Parsed absolute paths will be interpreted relative to the rootdir.
wd is a directory within rootdir that is the current working directory. Parsed relative paths will be interpreted relative to rootdir + "/" + wd.
For PXE clients, rootdir will be the the URL without the path, and wd the path component of the URL (e.g. rootdir = http://foobar.com, wd = barfoo/pxelinux.cfg/).
Types ¶
This section is empty.