install

package
v4.14.228+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCacheImageList

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

func GetDefaultPartition

func GetDefaultPartition(device string) string

func GetStatePartition

func GetStatePartition() string

func MountDevice

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

func PvGrubConfig

func PvGrubConfig(menu BootVars) error

func ReadGlobalCfg

func ReadGlobalCfg(globalCfg string) (string, error)

func ReadSyslinuxCfg

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

func RunCacheScript

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

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