package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
Package efi supports reading EFI variables.
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
Find returns the bootloader for the system or an error if no bootloader is found.
Force can be used to force Find to always find the specified bootloader; use nil to reset to normal lookup.
ForceError can be used to force Find to return an error; use nil to reset to normal lookup.
ForGadget returns a bootloader matching a given gadget by inspecting the contents of gadget directory or an error if no matching bootloader is found.
InstallBootConfig installs the bootloader config from the gadget snap dir into the right place.
No description provided by the author
# Constants
RoleRecovery apllies to the recovery bootloader.
RoleRunMode applies to the run mode booloader.
RoleSole applies to the sole bootloader used by UC16/18.
# Variables
ErrBootloader is returned if the bootloader can not be determined.
ErrNoBootChainFound is returned by ParametersForEfiLoadOption if no valid bootchain was found.
ErrNoTryKernelRef is returned if the bootloader finds no enabled try-kernel.
# Structs
BootFile represents each file in the chains of trusted assets and kernels used in the boot process.
ComamndLineComponents carries the components of the kernel command line.
Options carries bootloader options.
# Interfaces
Bootloader provides an interface to interact with the system bootloader.
No description provided by the author
ExtractedRunKernelImageBootloader is a Bootloader that also supports specific methods needed to setup booting from an extracted kernel, which is needed to implement encryption and/or secure boot.
NotScriptableBootloader cannot change the bootloader environment because it supports no scripting or cannot do any writes.
RebootBootloader needs arguments to the reboot syscall when snaps are being updated.
No description provided by the author
TrustedAssetsBootloader has boot assets that take part in the secure boot process and need to be tracked, while other boot assets (typically boot config) are managed by snapd.
UefiBootloader provides data for setting EFI boot variables.
# Type aliases
Role indicates whether the bootloader is used for recovery or run mode.