efi

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUKIAndPartitionInfo

func GetUKIAndPartitionInfo(loopDevice, rawImage string) (string, any, error)

GetUKIAndPartitionInfo reads UKI file name and partition info from installed image. Returns UKI file name and blkid info from raw image file.

func IsUEFIBoot

func IsUEFIBoot() bool

IsUEFIBoot returns true if the system is booted using UEFI.

func UpdateEFIVariables

func UpdateEFIVariables(disk string) error

UpdateEFIVariables creates a Talos boot entry pointing to the target disk's ESP and updates BootOrder to put it first.

Types

type BootOrderType

type BootOrderType []uint16

BootOrderType represents the UEFI BootOrder variable.

type SecureBootState

type SecureBootState struct {
	Enabled   bool // SecureBoot variable is 1
	SetupMode bool // SetupMode variable is 1 (keys can be enrolled without authentication)
}

SecureBootState represents the current Secure Boot status.

func GetSecureBootState

func GetSecureBootState() (SecureBootState, error)

GetSecureBootState reads the current Secure Boot state from UEFI variables. Returns error if not running on UEFI system or variables cannot be read.

Jump to

Keyboard shortcuts

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