Documentation
¶
Index ¶
- func CreateEmptyFile(fs vfs.FS, filename string, size int64, noSparse bool) error
- func CreatePreloadedFileSystemImage(s *sys.System, root, filename, label string, overheadM int64, ...) error
- func CreateSquashFS(ctx context.Context, s *sys.System, source string, destination string, ...) error
- func DefaultSquashfsCompressionOptions() []string
- func SquashfsExcludeOptions(excludes ...string) []string
- func SquashfsNoCompressionOptions() []string
- type MkfsCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmptyFile ¶
CreateEmptyFile creates a file of the given size in MiB.
func CreatePreloadedFileSystemImage ¶
func CreatePreloadedFileSystemImage(s *sys.System, root, filename, label string, overheadM int64, fs deployment.FileSystem) error
CreatePreloadedFileSystemImage creates a new raw image with the given filesystem. The size of the image is computed form the provided root tree size plus the given overhead. The resulting image size is aligned with the given overhead and has a minimum of a full overhead of free space.
func CreateSquashFS ¶
func CreateSquashFS(ctx context.Context, s *sys.System, source string, destination string, options []string) error
CreateSquashFS creates a squash file at destination from a source, with options
func DefaultSquashfsCompressionOptions ¶
func DefaultSquashfsCompressionOptions() []string
func SquashfsExcludeOptions ¶
func SquashfsNoCompressionOptions ¶
func SquashfsNoCompressionOptions() []string
Types ¶
Click to show internal directories.
Click to hide internal directories.