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/rpi-raspios-cleanup

Remove Raspberry Pi OS first-boot setup that conflicts with Rugix.

Remove Raspberry Pi OS first-boot setup that conflicts with Rugix.

Inputs

No artifact inputs.

Parameters

disable_swapfile

Default: "true"

Remove dphys-swapfile. Use true or false.

Scheduling

Priority

950000

Dependencies

None

Higher priorities run first within the selected recipe set unless before or after constraints require otherwise. Dependencies include other recipes without ordering them.

Behavior

Disables the Raspberry Pi OS user-configuration and one-time resize services, removes userconf-pi, and disables automatic initramfs handling in the boot configuration. It runs before core/pkg-update and core/pkg-upgrade so package operations use the adapted system.

Sets MODULES=most in /etc/initramfs-tools/conf.d/rugix before removing packages. This prevents initramfs generation from trying to detect the target hardware inside the build chroot. The setting remains in the image so package operations in later layers can also regenerate initramfs.

Example

For example, add the recipe to a layer derived from a compatible base:

recipes = ["core/rpi-raspios-cleanup"]