Documentation ¶
Overview ¶
Package iso contains functions for creating ISO images.
Index ¶
Constants ¶
View Source
const ( // UKIISOSizeAMD64 is the size of the AMD64 UKI ISO. UKIISOSizeAMD64 = 80 * mib // UKIISOSizeARM64 is the size of the ARM64 UKI ISO. UKIISOSizeARM64 = 120 * mib )
Variables ¶
This section is empty.
Functions ¶
func CreateGRUB ¶
func CreateGRUB(printf func(string, ...any), options GRUBOptions) error
CreateGRUB creates a GRUB-based ISO image.
This iso supports both BIOS and UEFI booting.
func CreateUEFI ¶
func CreateUEFI(printf func(string, ...any), options UEFIOptions) error
CreateUEFI creates an iso using a UKI, systemd-boot.
The ISO created supports only booting in UEFI mode, and supports SecureBoot.
Types ¶
type GRUBOptions ¶
type GRUBOptions struct { KernelPath string InitramfsPath string Cmdline string ScratchDir string OutPath string }
GRUBOptions described the input for the CreateGRUB function.
type UEFIOptions ¶
type UEFIOptions struct { UKIPath string SDBootPath string // optional, for auto-enrolling secureboot keys PlatformKeyPath string KeyExchangeKeyPath string SignatureKeyPath string Arch string Version string ScratchDir string OutPath string }
UEFIOptions describe the input for the CreateUEFI function.
Click to show internal directories.
Click to hide internal directories.