bootc

package
v0.186.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 27 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MebiByte = 1024 * 1024        // MiB
	GibiByte = 1024 * 1024 * 1024 // GiB
	// BootOptions defines the mountpoint options for /boot
	// See https://github.com/containers/bootc/pull/341 for the rationale for
	// using `ro` by default.  Briefly it protects against corruption
	// by non-ostree aware tools.
	BootOptions = "ro"
	// And we default to `ro` for the rootfs too, because we assume the input
	// container image is using composefs.  For more info, see
	// https://github.com/containers/bootc/pull/417 and
	// https://github.com/ostreedev/ostree/issues/3193
	RootOptions = "ro"
)
View Source
const (
	DEFAULT_SIZE = uint64(10 * GibiByte)
)

Variables

This section is empty.

Functions

func DistroFactory

func DistroFactory(idStr string) distro.Distro

Types

type BootcArch

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

func (*BootcArch) Distro

func (a *BootcArch) Distro() distro.Distro

func (*BootcArch) GetImageType

func (a *BootcArch) GetImageType(imageType string) (distro.ImageType, error)

func (*BootcArch) ListImageTypes

func (a *BootcArch) ListImageTypes() []string

func (*BootcArch) Name

func (a *BootcArch) Name() string

type BootcDistro

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

func NewBootcDistro

func NewBootcDistro(imgref string) (bd *BootcDistro, err error)

newBootcDistro returns a new instance of BootcDistro from the given url

func (*BootcDistro) Codename

func (d *BootcDistro) Codename() string

func (*BootcDistro) DefaultFs added in v0.184.0

func (d *BootcDistro) DefaultFs() string

func (*BootcDistro) GetArch

func (d *BootcDistro) GetArch(arch string) (distro.Arch, error)

func (*BootcDistro) ListArches

func (d *BootcDistro) ListArches() []string

func (*BootcDistro) ModulePlatformID

func (d *BootcDistro) ModulePlatformID() string

func (*BootcDistro) Name

func (d *BootcDistro) Name() string

func (*BootcDistro) OSTreeRef

func (d *BootcDistro) OSTreeRef() string

func (*BootcDistro) OsVersion

func (d *BootcDistro) OsVersion() string

func (*BootcDistro) Product

func (d *BootcDistro) Product() string

func (*BootcDistro) Releasever

func (d *BootcDistro) Releasever() string

func (*BootcDistro) SetBuildContainer

func (d *BootcDistro) SetBuildContainer(imgref string) (err error)

func (*BootcDistro) SetDefaultFs

func (d *BootcDistro) SetDefaultFs(defaultFs string) error

type BootcImageType

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

func (*BootcImageType) Aliases

func (t *BootcImageType) Aliases() []string

func (*BootcImageType) Arch

func (t *BootcImageType) Arch() distro.Arch

func (*BootcImageType) BasePartitionTable

func (t *BootcImageType) BasePartitionTable() (*disk.PartitionTable, error)

func (*BootcImageType) BootMode

func (t *BootcImageType) BootMode() platform.BootMode

func (*BootcImageType) BuildPipelines

func (t *BootcImageType) BuildPipelines() []string

func (*BootcImageType) Exports

func (t *BootcImageType) Exports() []string

func (*BootcImageType) Filename

func (t *BootcImageType) Filename() string

func (*BootcImageType) ISOLabel

func (t *BootcImageType) ISOLabel() (string, error)

func (*BootcImageType) MIMEType

func (t *BootcImageType) MIMEType() string

func (*BootcImageType) Manifest

func (t *BootcImageType) Manifest(bp *blueprint.Blueprint, options distro.ImageOptions, repos []rpmmd.RepoConfig, seedp *int64) (*manifest.Manifest, []string, error)

func (*BootcImageType) Name

func (t *BootcImageType) Name() string

func (*BootcImageType) OSTreeRef

func (t *BootcImageType) OSTreeRef() string

func (*BootcImageType) PartitionType

func (t *BootcImageType) PartitionType() disk.PartitionTableType

func (*BootcImageType) PayloadPackageSets

func (t *BootcImageType) PayloadPackageSets() []string

func (*BootcImageType) PayloadPipelines

func (t *BootcImageType) PayloadPipelines() []string

func (*BootcImageType) RequiredBlueprintOptions

func (t *BootcImageType) RequiredBlueprintOptions() []string

func (*BootcImageType) Size

func (t *BootcImageType) Size(size uint64) uint64

func (*BootcImageType) SupportedBlueprintOptions

func (t *BootcImageType) SupportedBlueprintOptions() []string

Jump to

Keyboard shortcuts

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