imagecustomizerlib

package
v0.0.0-...-4cb4cf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseImageName                = "image.raw"
	PartitionCustomizedImageName = "image2.raw"
)

Variables

View Source
var (
	// Version specifies the version of the Mariner Image Customizer tool.
	// The value of this string is inserted during compilation via a linker flag.
	ToolVersion = ""
)

Functions

func AddOrUpdateUsers

func AddOrUpdateUsers(users []imagecustomizerapi.User, baseConfigPath string, imageChroot safechroot.ChrootInterface) error

func CustomizeImage

func CustomizeImage(buildDir string, baseConfigPath string, config *imagecustomizerapi.Config, imageFile string,
	rpmsSources []string, outputImageFile string, outputImageFormat string, outputSplitPartitionsFormat string, useBaseImageRpmRepos bool,
) error

func CustomizeImageWithConfigFile

func CustomizeImageWithConfigFile(buildDir string, configFile string, imageFile string,
	rpmsSources []string, outputImageFile string, outputImageFormat string,
	outputSplitPartitionsFormat string, useBaseImageRpmRepos bool,
) error

Types

type ImageConnection

type ImageConnection struct {
	// contains filtered or unexported fields
}

func NewImageConnection

func NewImageConnection() *ImageConnection

func (*ImageConnection) Chroot

func (c *ImageConnection) Chroot() *safechroot.Chroot

func (*ImageConnection) CleanClose

func (c *ImageConnection) CleanClose() error

func (*ImageConnection) Close

func (c *ImageConnection) Close()

func (*ImageConnection) ConnectChroot

func (c *ImageConnection) ConnectChroot(rootDir string, isExistingDir bool, extraDirectories []string,
	extraMountPoints []*safechroot.MountPoint, includeDefaultMounts bool,
) error

func (*ImageConnection) ConnectLoopback

func (c *ImageConnection) ConnectLoopback(diskFilePath string) error

func (*ImageConnection) Loopback

func (c *ImageConnection) Loopback() *safeloopback.Loopback

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL