Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBootNext ¶
SetBootNext sets the EFI BootNext variable to the bootnum passed to it
func SetBootOrder ¶
SetBootOrder sets the EFI BootOrder variable using a list of args containing boot numbers
Types ¶
type BootEntry ¶
BootEntry represents and EFI boot number entry
func (*BootEntry) Deactivate ¶
Deactivate deactivates the given boot entry
type BootManagerInfo ¶
type BootManagerInfo struct {
// BootEntry stored in the EFI BootCurrent variable
BootCurrent *BootEntry
// BootEntry stored in the EFI BootNext variable
BootNext *BootEntry
// Slice containing BootEntrys in order they will boot
BootOrder []BootEntry
// Slice containing all detected boot entries
BootEntries []BootEntry
}
BootManagerInfo holds all info returned from the efibootmgr command
func BootInfo ¶
func BootInfo() (*BootManagerInfo, error)
BootInfo runs the efibootmanager command and returns an BootInfo struct containing all the info that was returned
Click to show internal directories.
Click to hide internal directories.