options

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package options provides bootloader options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootAssets

type BootAssets struct {
	KernelPath    string
	InitramfsPath string

	UKIPath    string
	SDBootPath string

	DTBPath         string
	UBootPath       string
	RPiFirmwarePath string
}

BootAssets describes the assets to be installed by the bootloader.

func (*BootAssets) FillDefaults

func (assets *BootAssets) FillDefaults(arch string)

FillDefaults fills in default paths to be used when in the context of the installer.

type InstallOptions

type InstallOptions struct {
	// The disk to install to.
	BootDisk string
	// Target architecture.
	Arch string
	// Kernel command line (grub only).
	Cmdline string
	// Talos version.
	Version string

	// Are we running in image mode?
	ImageMode bool

	// Mount prefix for /boot-like partitions.
	MountPrefix string

	// Boot assets to install.
	BootAssets BootAssets

	// Printf-like function to use.
	Printf func(format string, v ...any)
}

InstallOptions configures bootloader installation.

Jump to

Keyboard shortcuts

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