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/kernel-debian

Select one installed Debian kernel and its exact version.

Select one installed Debian kernel and its exact version.

Inputs

rootfs

Kind: directory

Debian root filesystem containing boot/vmlinuz-* and lib/modules.

Parameters

version

Default: ""

Exact installed kernel version. Empty selects the unique matching version.

flavor

Default: ""

Required kernel version suffix. Empty accepts any flavor.

Outputs

kernel

Kind: file

Selected kernel image.

version

Kind: file

Selected kernel version as text.

Execution

Environment

Rugix Bakery

Source epoch

Consumed

Output cache

Allowed

Behavior

Select one kernel from a prepared Debian root filesystem. Kernel versions come from directories in lib/modules; the corresponding image must exist at boot/vmlinuz-<version>. Export the selected image as kernel and its version, followed by a newline, as version.

An empty version accepts any installed version. An empty flavor accepts any suffix. After applying both filters, exactly one kernel must remain. Set version when a root filesystem contains several installed kernels.

Example

For example, select a Raspberry Pi kernel:

uses = "core/kernel-debian"
inputs.rootfs = { path = "prepared-root" }
parameters.flavor = "rpi-v8"

Save the invocation as build-rule.toml and run ./run-bakery bake rule build-rule.toml build/result. Supply its version output to core/initrd-debian.