Documentation ¶
Index ¶
- func BootCachedISO(osImage boot.OSImage, kernelParams string) error
- func BootFromPmem(isoPath string, configLabel string, configType string) error
- func LoadCustomConfigs(isoPath string, configs []Config) ([]boot.OSImage, error)
- func ParseConfigFromISO(isoPath string, configType string) ([]boot.OSImage, error)
- func VerifyChecksum(isoPath, checksum, checksumType string) (bool, string, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootFromPmem ¶
BootFromPmem copies the ISO to pmem0 and boots given the syslinux configuration with the provided label
func LoadCustomConfigs ¶
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 ¶
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 ¶
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.