Documentation ¶
Overview ¶
Package sdboot provides the interface to the Systemd-Boot bootloader: config management, installation, etc.
Index ¶
Constants ¶
View Source
const ( // SystemdBootGUIDString is the GUID of the SystemdBoot EFI variables. SystemdBootGUIDString = "4a67b082-0a4c-41cf-b6c7-440b29bb8c4f" // SystemdBootStubInfoPath is the path to the SystemdBoot StubInfo EFI variable. SystemdBootStubInfoPath = constants.EFIVarsMountPoint + "/" + "StubInfo-" + SystemdBootGUIDString )
View Source
const ( LoaderEntryDefaultName = "LoaderEntryDefault" LoaderEntrySelectedName = "LoaderEntrySelected" LoaderConfigTimeoutName = "LoaderConfigTimeout" )
Variable names.
Variables ¶
View Source
var SystemdBootGUID = efiguid.MustFromString(SystemdBootGUIDString)
SystemdBootGUID is the GUID of the SystemdBoot EFI variables.
Functions ¶
func IsBootedUsingSDBoot ¶
func IsBootedUsingSDBoot() bool
IsBootedUsingSDBoot returns true if the system is booted using sd-boot.
func ReadVariable ¶
ReadVariable reads a SystemdBoot EFI variable.
Types ¶
type Config ¶
Config describe sd-boot state.
func Probe ¶
func Probe(disk string, options options.ProbeOptions) (*Config, error)
Probe for existing sd-boot bootloader.
func (*Config) Install ¶
func (c *Config) Install(opts options.InstallOptions) (*options.InstallResult, error)
Install the bootloader.
func (*Config) RequiredPartitions ¶ added in v1.8.0
RequiredPartitions returns the list of partitions required by the bootloader.
Click to show internal directories.
Click to hide internal directories.