Searched refs:etc_hostname (Results 1 - 1 of 1) sorted by relevance

/systemd/src/firstboot/
H A Dfirstboot.c398 const char *etc_hostname; local
401 etc_hostname = prefix_roota(arg_root, "/etc/hostname");
402 if (faccessat(AT_FDCWD, etc_hostname, F_OK, AT_SYMLINK_NOFOLLOW) >= 0)
412 mkdir_parents(etc_hostname, 0755);
413 r = write_string_file(etc_hostname, arg_hostname, WRITE_STRING_FILE_CREATE);
415 return log_error_errno(r, "Failed to write %s: %m", etc_hostname);
417 log_info("%s written.", etc_hostname);

Completed in 13 milliseconds