{"modulePath":"github.com/9elements/u-root","version":"v7.0.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package syslinux\n\nPackage syslinux implements a syslinux config file parser.\n\nSee [http://www.syslinux.org/wiki/index.php?title=Config](http://www.syslinux.org/wiki/index.php?title=Config) for general syslinux config features.\n\nCurrently, only the APPEND, INCLUDE, KERNEL, LABEL, DEFAULT, and INITRD directives are partially supported.\n\n## Functions\n\n```go\nfunc ParseConfigFile(ctx context.Context, s curl.Schemes, configFile string, rootdir *url.URL, wd string) ([]boot.OSImage, error)\n```\nParseConfigFile parses a Syslinux configuration as specified in [http://www.syslinux.org/wiki/index.php?title=Config](http://www.syslinux.org/wiki/index.php?title=Config)\n\nCurrently, only the APPEND, INCLUDE, KERNEL, LABEL, DEFAULT, and INITRD directives are partially supported.\n\n\\`s\\` is used to fetch any files that must be parsed or provided.\n\nrootdir is the partition mount point that syslinux is operating under. Parsed absolute paths will be interpreted relative to the rootdir.\n\nwd is a directory within rootdir that is the current working directory. Parsed relative paths will be interpreted relative to rootdir + \"/\" + wd.\n\nFor 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](http://foobar.com), wd = barfoo/pxelinux.cfg/).\n\n```go\nfunc ParseLocalConfig(ctx context.Context, diskDir string) ([]boot.OSImage, error)\n```\nParseLocalConfig treats diskDir like a mount point on the local file system and finds an isolinux config under there.\n\n","path":"github.com/9elements/u-root/pkg/boot/syslinux","name":"syslinux","synopsis":"Package syslinux implements a syslinux config file parser.","isRedistributable":true}
