Documentation
¶
Overview ¶
Package efi provides EFI variable access and boot entry construction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildLoadOption ¶
BuildLoadOption constructs a raw EFI_LOAD_OPTION from a BootEntry.
Types ¶
type EFIVarReader ¶
type EFIVarReader struct {
// contains filtered or unexported fields
}
EFIVarReader reads and writes EFI variables from efivarfs.
func NewEFIVarReader ¶
func NewEFIVarReader(basePath string) *EFIVarReader
NewEFIVarReader creates an EFI variable reader. Use "" for basePath to use the system default (/sys/firmware/efi/efivars).
func (*EFIVarReader) IsSecureBootEnabled ¶
func (r *EFIVarReader) IsSecureBootEnabled() (bool, error)
IsSecureBootEnabled checks if SecureBoot is currently enabled.
func (*EFIVarReader) IsSetupMode ¶
func (r *EFIVarReader) IsSetupMode() (bool, error)
IsSetupMode checks if the system is in UEFI Setup Mode.
func (*EFIVarReader) ListVars ¶
func (r *EFIVarReader) ListVars() ([]string, error)
ListVars returns all EFI variable names.
Click to show internal directories.
Click to hide internal directories.