Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFirstBoot is an error that indicates that the first boot has already // run ErrNotFirstBoot = errors.New("this is not your first boot") )
Functions ¶
func FirstBoot ¶
func FirstBoot() error
FirstBoot will do some initial boot setup and then sync the state
func UpdateRevisions ¶
UpdateRevisions synchronizes the active kernel and OS snap versions with the versions that actually booted. This is needed because a system may install "os=v2" but that fails to boot. The bootloader fallback logic will revert to "os=v1" but on the filesystem snappy still has the "active" version set to "v2" which is misleading. This code will check what kernel/os booted and set those versions active.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.