Documentation
¶
Overview ¶
Package preseed provides functions for preseeding of classic and UC20 systems. Preseeding runs snapd in special mode that executes significant portion of initial seeding in a chroot environment and stores the resulting modifications in the image so that they can be reused and skipped on first boot, speeding it up.
Index ¶
- Variables
- func Classic(chrootDir string) error
- func Core20(prepareImageDir, preseedSignKey, aaFeaturesDir string) error
- func MockMakePreseedTempDir(f func() (string, error)) (restore func())
- func MockMakeWritableTempDir(f func() (string, error)) (restore func())
- func MockSnapdMountPath(path string) (restore func())
- func MockSyscallChroot(f func(string) error) (restore func())
- func MockSystemSnapFromSeed(f func(rootDir, sysLabel string) (string, string, error)) (restore func())
- func MockTrusted(mockTrusted []asserts.Assertion) (restore func())
- func ResetPreseededChroot(preseedChroot string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Core20 ¶
Core20 runs preseeding of UC20 system prepared by prepare-image in prepareImageDir and stores the resulting preseed preseed.tgz file in system-seed/systems/<systemlabel>/preseed.tgz. Expects single systemlabel under systems directory.
func MockMakePreseedTempDir ¶
func MockMakeWritableTempDir ¶
func MockSnapdMountPath ¶
func MockSnapdMountPath(path string) (restore func())
func MockSyscallChroot ¶
func MockSystemSnapFromSeed ¶
func MockTrusted ¶
func ResetPreseededChroot ¶
ResetPreseededChroot removes all preseeding artifacts from preseedChroot (classic Ubuntu only).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.