コード例 #1
0
ファイル: firstboot.go プロジェクト: dholbach/snappy
// 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()
}
コード例 #2
0
ファイル: cmd_first_boot.go プロジェクト: General-Beck/snappy
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
}