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/set-hostname

Set the system hostname.

Set the system hostname.

Inputs

No artifact inputs.

Parameters

hostname

Required

Hostname written to /etc/hostname.

Scheduling

Priority

90000

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

Writes the selected name into /etc/hostname in the target root filesystem.

Example

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

recipes = ["core/set-hostname"]

[parameters."core/set-hostname"]
hostname = "rugix-device"