Esempio n. 1
0
// FIXME:
// This is not the final way we will do the state sync. This is just
// an intermediate step to have working images again. We need to
// figure out how we want first-boot to look like.
func FirstBoot() error {
	if err := snappy.FirstBoot(); err != nil {
		return err
	}

	return populateStateFromInstalled()
}
Esempio n. 2
0
func (x *cmdInternalFirstBootOemConfig) Execute(args []string) error {
	err := snappy.FirstBoot()
	if err == snappy.ErrNotFirstBoot {
		fmt.Println(i18n.G("First boot has already run"))
		return nil
	}

	return err
}