Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + var ApplyFilesystemOnlyDefaultsImpl = func(dev Device, rootDir string, defaults map[string]interface{}) error + func ApplyFilesystemOnlyDefaults(model *asserts.Model, rootDir string, defaults map[string]interface{}) error + func ConfigureTargetSystem(model *asserts.Model, opts *Options) error + func DisableCloudInit(rootDir string) error + func HasGadgetCloudConf(gadgetDir string) bool + func WritableDefaultsDir(rootdir string, subdir ...string) string + type CloudInitRestrictOptions struct + DisableAfterLocalDatasourcesRun bool + ForceDisable bool + type CloudInitRestrictionResult struct + Action string + DataSource string + func RestrictCloudInit(state CloudInitState, opts *CloudInitRestrictOptions) (CloudInitRestrictionResult, error) + type CloudInitState int + const CloudInitDisabledPermanently + const CloudInitDone + const CloudInitEnabled + const CloudInitErrored + const CloudInitNotFound + const CloudInitRestrictedBySnapd + const CloudInitUntriggered + func CloudInitStatus() (CloudInitState, error) + type Device interface + Classic func() bool + HasModeenv func() bool + Kernel func() string + RunMode func() bool + type Options struct + AllowCloudInit bool + CloudInitSrcDir string + GadgetDir string + GadgetSnap snap.Container + TargetRootDir string