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/prepare-boot

Patch an initialized Rugix boot tree against resolved disk geometry.

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

Patch an initialized Rugix boot tree against resolved disk geometry.

Inputs

image

Kind: file

Disk image containing the final partition table.

boot

Kind: directory

Boot filesystem source tree.

Parameters

target

Default: "unknown"

Rugix boot target: rpi-tryboot, rpi-uboot, generic-grub-efi, bsp, or unknown.

Outputs

boot

Kind: directory

Boot tree with its root partition reference patched.

Execution

Environment

Rugix Bakery

Source epoch

Consumed

Output cache

Allowed

Patch an initialized Rugix boot tree against an existing disk’s partition table. The rule reads the disk and copies the boot tree before modifying it.

For example:

uses = "core/prepare-boot"
inputs.image = { path = "layout.img" }
inputs.boot = { path = "initialized-boot" }
parameters.target = "rpi-tryboot"

The predefined boot flows use root partition 5 for MBR and partition 4 for GPT. The rule patches the Raspberry Pi kernel command line or GRUB environment with that partition’s identifier. It leaves partition identifiers and geometry unchanged. The bsp and unknown targets retain the supplied boot content.

Run core/initialize-boot before resolving capacities so generated boot files are included in size estimates. Both rules clamp modification times to the source date and keep their input trees unchanged. The initialized configuration tree passes directly to filesystem creation.