Impostazione di un nome host

Per impostare un hostname personalizzato per il tuo sistema, utilizza la seguente configurazione di Butane per scrivere in /etc/hostname:

variant: fcos
version: 1.6.0
storage:
  files:
    - path: /etc/hostname
      mode: 0644
      overwrite: true
      contents:
        inline: myhostname

Una volta avviato, puoi anche verificare che il nome host desiderato sia stato impostato utilizzando hostnamectl.

We use overwrite: true to make sure that we overwrite the hostname that is set up by Afterburn on some platforms. If Afterburn does not support setting the hostname on your platform, you can remove it.