install

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCacheImageList added in v1.5.2

func GetCacheImageList(cloudconfig string, oldcfg *config.CloudConfig) []string

func GetDefaultPartition added in v1.5.2

func GetDefaultPartition(device string) string

func GetStatePartition added in v1.4.2

func GetStatePartition() string

func MountDevice added in v1.0.4

func MountDevice(baseName, device, partition string, raw bool) (string, string, error)

func PvGrubConfig

func PvGrubConfig(menu BootVars) error

func ReadGlobalCfg added in v1.0.4

func ReadGlobalCfg(globalCfg string) (string, error)

func ReadSyslinuxCfg added in v1.0.4

func ReadSyslinuxCfg(currentCfg string) (string, string, error)

func RunCacheScript added in v1.5.2

func RunCacheScript(partition string, images []string) error

func RunGrub

func RunGrub(baseName, device string) error

Types

type BootVars

type BootVars struct {
	BaseName, BootDir string
	Timeout           uint
	Fallback          int
	Entries           []MenuEntry
}

type ImageConfig added in v1.5.2

type ImageConfig struct {
	Image string `yaml:"image,omitempty"`
}
type MenuEntry struct {
	Name, BootDir, Version, KernelArgs, Append string
}

Jump to

Keyboard shortcuts

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