pkg

package
v1.5.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package pkg contains the installer cmd logic.

Index

Constants

View Source
const (
	// MiB is the size of a megabyte.
	MiB = 1024 * 1024
	// UKIISOSizeAMD64 is the size of the AMD64 UKI ISO.
	UKIISOSizeAMD64 = 80 * MiB
	// UKIISOSizeARM64 is the size of the ARM64 UKI ISO.
	UKIISOSizeARM64 = 120 * MiB
)
View Source
const (
	// MinRAWDiskSize is the minimum size disk we can create. Used for metal images.
	MinRAWDiskSize = 1246

	// DefaultRAWDiskSize is the value we use for any non-metal images by default.
	DefaultRAWDiskSize = 8192
)

Variables

This section is empty.

Functions

func CreateISO

func CreateISO(iso, dir string) error

CreateISO creates an iso by invoking the `grub-mkrescue` command.

func CreateRawDisk

func CreateRawDisk(p runtime.Platform, diskSize int) (img string, err error)

CreateRawDisk creates a raw disk by invoking the `dd` command.

func CreateUKIISO

func CreateUKIISO(iso, dir, arch string) error

CreateUKIISO creates an iso using a UKI and UEFI only. nolint:gocyclo

func Loattach

func Loattach(img string) (dev string, err error)

Loattach attaches a loopback device by inoking the `losetup` command.

func Lodetach

func Lodetach(img string) (err error)

Lodetach detaches a loopback device by inoking the `losetup` command.

func SourceDateEpoch

func SourceDateEpoch() (int64, bool, error)

SourceDateEpoch returns parsed value of SOURCE_DATE_EPOCH.

func TouchFiles

func TouchFiles(root string) error

TouchFiles updates mtime for all the files under root if SOURCE_DATE_EPOCH is set.

Types

This section is empty.

Directories

Path Synopsis
Package install provides the installation routine.
Package install provides the installation routine.
Package ova implements OVA creation.
Package ova implements OVA creation.

Jump to

Keyboard shortcuts

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