core/set-hostname
Set the system hostname.
Preview
You're viewing the Next docs — a rolling preview of in-development changes. The current release docs may differ.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"