firmware

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

type EfiBootEntry struct {
	Label  string
	Loader string
	Disk   string
}

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.

Jump to

Keyboard shortcuts

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