Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUKIAndPartitionInfo ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.