Skip to main content
Rugix Bakery 0.9.6 is here: Build rules for custom image pipelines and verified boot for EFI and Raspberry Pi. Read the release post.
Documentation

core/layout-rpi-ab

Reserve the named A/B partitions for the Raspberry Pi verified boot flow.

Preview
You're viewing the Next docs — a rolling preview of in-development changes. The current release docs may differ.

Reserve the named A/B partitions for the Raspberry Pi verified boot flow.

Inputs

system

Kind: file

Root filesystem image with appended verity data.

boot

Kind: file

Signed boot partition image.

config

Kind: file

Configuration partition image.

Outputs

layout

Kind: file

Rugix ImageLayout with named A/B partitions.

Execution

Environment

Rugix Bakery

Source epoch

Consumed

Output cache

Allowed

Behavior

Create the factory GPT ImageLayout for the core Raspberry Pi verified boot flow. The system input contains SquashFS with appended verity data. Capacities come from the corresponding input images.

NumberNameFactory Contents
1configMutable configuration image
2boot-aSigned boot partition image
3boot-bEmpty reservation matching boot-a
4system-aCombined root and verity image

The first three partitions use the EFI System Partition type for the firmware-visible FAT filesystems. The selection policy in core/prepare-rpi-config uses boot partitions 2 and 3.

On first boot, Rugix Ctrl uses the matching recipe’s bootstrap plan to preserve the configuration and boot capacities, expand the system partition capacity, create an empty system-b as partition 5, and create data as partition 6 in the remaining drive space. The Debian recipe defaults each system slot to at least 4 GiB.

Supply partition artifacts separately to core/image-gpt. The target drive must have room for the completed layout, which is larger than the factory image.

Example

For example, create a layout from prepared partition images:

uses = "core/layout-rpi-ab"
inputs.system = { path = "system.img" }
inputs.boot = { path = "boot.fat" }
inputs.config = { path = "config.fat" }

Save the invocation as build-rule.toml and run ./run-bakery bake rule build-rule.toml build/result.