Searched defs:etc_machine_id (Results 1 - 3 of 3) sorted by relevance
/systemd/src/core/ |
H A D | machine-id-setup.c | 200 const char *etc_machine_id, *run_machine_id; local 207 etc_machine_id = "/etc/machine-id"; 213 etc_machine_id = path_kill_slashes(x); 225 mkdir_parents(etc_machine_id, 0755); 226 fd = open(etc_machine_id, O_RDWR|O_CREAT|O_CLOEXEC|O_NOCTTY, 0444); 230 fd = open(etc_machine_id, O_RDONLY|O_CLOEXEC|O_NOCTTY); 240 log_error_errno(errno, "Cannot open %s: %m", etc_machine_id); 284 if (mount(run_machine_id, etc_machine_id, NULL, MS_BIND, NULL) < 0) { 286 return log_error_errno(errno, "Failed to mount %s: %m", etc_machine_id); 289 log_info("Installed transient %s file.", etc_machine_id); 300 const char *etc_machine_id; local [all...] |
/systemd/src/firstboot/ |
H A D | firstboot.c | 422 const char *etc_machine_id; local 426 etc_machine_id = prefix_roota(arg_root, "/etc/machine-id"); 427 if (faccessat(AT_FDCWD, etc_machine_id, F_OK, AT_SYMLINK_NOFOLLOW) >= 0) 433 mkdir_parents(etc_machine_id, 0755); 434 r = write_string_file(etc_machine_id, sd_id128_to_string(arg_machine_id, id), WRITE_STRING_FILE_CREATE); 438 log_info("%s written.", etc_machine_id);
|
/systemd/src/nspawn/ |
H A D | nspawn.c | 1372 const char *etc_machine_id, *p, *q; local 1386 etc_machine_id = prefix_roota(directory, "/etc/machine-id"); 1388 r = read_one_line_file(etc_machine_id, &b); 1392 return log_error_errno(r, "Failed to read machine ID from %s: %m", etc_machine_id); 1401 return log_error_errno(r, "Failed to parse machine ID from %s: %m", etc_machine_id);
|
Completed in 22 milliseconds