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
Click to show internal directories.
Click to hide internal directories.