Documentation
¶
Index ¶
Constants ¶
View Source
const ( EfiEntryPath = "/EFI/ELEMENTAL" EfiFallbackPath = "/EFI/BOOT" EfivarsMountPath = "/sys/firmware/efi/efivars" EfiBootEntryName = "elemental-shim" EfiImgX86 = "bootx64.efi" EfiImgArm64 = "bootaa64.efi" EfiImgRiscv64 = "bootriscv64.efi" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EfiBootEntry ¶
EfiBootEntry contains information about a EFI boot entry.
func DefaultBootEntry ¶
func DefaultBootEntry(p *platform.Platform, disk string) *EfiBootEntry
DefaultBootEntry generates the default EFI boot entry for the platform.
type EfiBootManager ¶
type EfiBootManager struct {
// contains filtered or unexported fields
}
EfiBootManager contains logic to update the EFI variables and boot-entries for a system.
func NewEfiBootManager ¶
func NewEfiBootManager(s *sys.System) *EfiBootManager
NewEfiBootManager creates a new EfiBootManager.
func (*EfiBootManager) CreateBootEntries ¶
func (b *EfiBootManager) CreateBootEntries(entries []*EfiBootEntry) error
CreateBootEntries creates the EFI boot entries using efibootmgr.
Click to show internal directories.
Click to hide internal directories.