bootiso

package
v0.0.0-...-6467897 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootCachedISO

func BootCachedISO(osImage boot.OSImage, kernelParams string) error

func BootFromPmem

func BootFromPmem(isoPath string, configLabel string, configType string) error

BootFromPmem copies the ISO to pmem0 and boots given the syslinux configuration with the provided label

func LoadCustomConfigs

func LoadCustomConfigs(isoPath string, configs []Config) ([]boot.OSImage, error)

LoadCustomConfigs is an alternative to ParseConfigFromISO that allows us to define the boot parameters ourselves (in a list of Config objects) instead of parsing them from a config file

func ParseConfigFromISO

func ParseConfigFromISO(isoPath string, configType string) ([]boot.OSImage, error)

ParseConfigFromISO mounts the iso file, attempts to parse the config file, and returns a list of bootable boot.OSImage objects representing the parsed configs

func VerifyChecksum

func VerifyChecksum(isoPath, checksum, checksumType string) (bool, string, error)

VerifyChecksum takes a path to the ISO and its checksum and compares the calculated checksum on the ISO against the checksum. It returns true if the checksum was correct, false if the checksum was incorrect, the calculated checksum, and an error.

Types

type Config

type Config struct {
	Label      string
	KernelPath string
	InitrdPath string
	Cmdline    string
}

Jump to

Keyboard shortcuts

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