package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev
# Functions
NewEnv creates a new lkenv object referencing the primary bootloader environment file at path with the specified version.
# Constants
Default boot image file name to be used from kernel snap */.
the boot image partition label itself.
the value of the boot image partition label mapping (i.e.
SNAP_BOOTIMG_PART_NUM is the number of available boot image partitions.
const SNAP_BOOTSELECT_RECOVERY_SIGNATURE ('S' | ('R' << 8) | ('s' << 16) | ('e' << 24)) value comes from S(Snap)R(Recovery)se(select).
const SNAP_BOOTSELECT_SIGNATURE ('S' | ('B' << 8) | ('s' << 16) | ('e' << 24)) value comes from S(Snap)B(Boot)se(select).
No description provided by the author
No description provided by the author
SNAP_FILE_NAME_MAX_LEN is the maximum size of a C string representing a snap name, such as for a kernel snap revision.
* maximum number of available bootimg partitions for recovery systems, min 5
* NOTE: the number of actual bootimg partitions usable is determined by the
* gadget, this just sets the upper bound of maximum number of recovery systems
* a gadget could define without needing changes here
*/.
SNAP_RUN_BOOTIMG_PART_NUM is the number of available boot image partitions for uc20 for kernel/try-kernel in run mode.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Env contains the data of the little kernel environment.
Following structure has to be kept in sync with c structure defined by include/lk/snappy-boot_v1.h c headerfile is used by bootloader, this ensures sync of the environment between snapd and bootloader
when this structure needs to be updated, new version should be introduced instead together with c header file, which is to be adopted by bootloader
!!! Support for old version has to be maintained, as it is not guaranteed all existing bootloader would adopt new version!.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author