Documentation ¶
Overview ¶
Package uefivars manipulates UEFI variables, and can encode and decode the mixed-endianness GUIDs used by UEFI (and MS).
Subpackage boot deals specifically with UEFI boot variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EfiVarDir = "/sys/firmware/efi/vars"
overridden for testing
Functions ¶
func BytesToU16 ¶
BytesToU16 converts a []byte of length 2 to a uint16.
func DecodeUTF16 ¶
DecodeUTF16 decodes the input as a utf16 string. https://gist.github.com/bradleypeabody/185b1d7ed6c0c2ab6cec
Types ¶
type MixedGUID ¶
type MixedGUID [16]byte
MixedGUID is a mixed-endianness guid, as used by MS and UEFI.
type UUID ¶
type UUID [16]byte
UUID uses the normal ordering, compatible with github.com/google/uuid. Use a package such as that if you need to generate UUIDs, check types, etc.
func (UUID) ToMixedGUID ¶
ToMixedGuid converts UUID to MixedGuid.
Directories ¶
Path | Synopsis |
---|---|
Package boot manipulates UEFI boot variables, and can identify and mount the volume referenced by a boot var.
|
Package boot manipulates UEFI boot variables, and can identify and mount the volume referenced by a boot var. |
Package vartest contains utility functions for testing uefivars and subpackages.
|
Package vartest contains utility functions for testing uefivars and subpackages. |
Click to show internal directories.
Click to hide internal directories.