Function write_machine_id

Source
pub fn write_machine_id() -> Result<(), Error>
Expand description

Writes a dummy /etc/machine-id, which is required for systemd-creds.

ยงErrors

Returns an error if

  • a static machine-id can not be written to /etc/machine-id,
  • or metadata on the created /etc/machine-id can not be retrieved.