partition

package
v0.0.0-...-921daf7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2016 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrBootloader is returned if the bootloader can not be determined
	ErrBootloader = errors.New("cannot determine bootloader")
)

Functions

func MarkBootSuccessful

func MarkBootSuccessful(bootloader Bootloader) error

MarkBootSuccessful marks the current boot as sucessful. This means that snappy will consider this combination of kernel/os a valid target for rollback

Types

type Bootloader

type Bootloader interface {
	// Return the value of the specified bootloader variable
	GetBootVar(name string) (string, error)

	// Set the value of the specified bootloader variable
	SetBootVar(name, value string) error

	// Dir returns the bootloader directory
	Dir() string
}

Bootloader provides an interface to interact with the system bootloader

func FindBootloader

func FindBootloader() (Bootloader, error)

FindBootloader returns the bootloader for the given system or an error if no bootloader is found

Jump to

Keyboard shortcuts

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