syslinux

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2021 License: BSD-3-Clause Imports: 12 Imported by: 18

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/).

func ParseLocalConfig

func ParseLocalConfig(ctx context.Context, diskDir string) ([]boot.OSImage, error)

ParseLocalConfig treats diskDir like a mount point on the local file system and finds an isolinux config under there.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL