syslinux

package
v0.3.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(base string, config interface{}) (err error)

Install implements the Bootloader interface. It sets up syslinux with the specified kernel parameters.

func Prepare

func Prepare(dev string) (err error)

Prepare implements the Bootloader interface. It works by writing gptmbr.bin to a block device.

func WriteSyslinuxCfg

func WriteSyslinuxCfg(base, path string, syslinuxcfg *Cfg) (err error)

WriteSyslinuxCfg write syslinux.cfg to disk.

Types

type Cfg

type Cfg struct {
	Default string
	Labels  []*Label
}

Cfg reprsents the syslinux.cfg file.

type Label

type Label struct {
	Root   string
	Kernel string
	Initrd string
	Append string
}

Label reprsents a label in the syslinux.cfg file.

type Syslinux

type Syslinux struct{}

Syslinux represents the syslinux bootloader.

Jump to

Keyboard shortcuts

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