Setting a Hostname
To set a custom hostname for your system, use the following Butane config to write to /etc/hostname
:
variant: fcos
version: 1.3.0
passwd:
users:
- name: core
ssh_authorized_keys:
- $pubkey
storage:
files:
- path: /etc/hostname
mode: 0644
contents:
inline: myhostname
Once booted, you can also verify that the desired hostname has been set using hostnamectl
.