Documentation
¶
Overview ¶
Package pkg contains the installer cmd logic.
Index ¶
- Constants
- func CreateISO(iso, dir string) error
- func CreateRawDisk(p runtime.Platform, diskSize int) (img string, err error)
- func CreateUKIISO(iso, dir, arch string) error
- func Loattach(img string) (dev string, err error)
- func Lodetach(img string) (err error)
- func SourceDateEpoch() (int64, bool, error)
- func TouchFiles(root string) error
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 CreateRawDisk ¶
CreateRawDisk creates a raw disk by invoking the `dd` command.
func CreateUKIISO ¶
CreateUKIISO creates an iso using a UKI and UEFI only. nolint:gocyclo
func SourceDateEpoch ¶
SourceDateEpoch returns parsed value of SOURCE_DATE_EPOCH.
func TouchFiles ¶
TouchFiles updates mtime for all the files under root if SOURCE_DATE_EPOCH is set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.