mender with separate A/B kernel partitions
Separate A/B kernel partitions for meta-mender.
Probably not very useful by itself, but is a prerequisite for things like encrypting the rootfs.
/data
partition via the mender-core
variable MENDER_EXTRA_PARTS
.mender_boot_part
. The kernel and/or initramfs are loaded from this partition.ArtifactInstall
state-script updates the kernel partition.Requires meta-secure-core. See this kas file for more setup details.
There were a few gotchas integrating secure boot
SELoader is not setup to verify anything outside the /efi
partition. To workaround this:
SELoader
to verify everything on /efi
(config, env, EFI binaries, etc). This is noop and standard meta-efi-secure-boot
operation.shim
to verify the INITRAMFS_IMAGE_BUNDLE
INITRAMFS_IMAGE_BUNDLE
INITRAMFS_IMAGE_BUNDLE
with sb_sign
to use MOK
key(s)chainloader
instead of linux
grub command to launch INITRAMFS_IMAGE_BUNDLE
bblayers.conf
local.conf
should include: require conf/include/mender-kernel.inc
and any configuration variablesrequire conf/include/mender-kernel-image.inc
Variable | Default | Description |
---|---|---|
MENDER/KERNEL_PART_SIZE_MB |
256 |
size (MB) of each kernel partition |
This layer will remain compatible with the latest YOCTO LTS. This mirrors what meta-mender does.