Searched defs:new_root (Results 1 - 2 of 2) sorted by relevance
/systemd/src/shared/ |
H A D | switch-root.c | 42 int switch_root(const char *new_root, const char *oldroot, bool detach_oldroot, unsigned long mountflags) { argument 56 if (path_equal(new_root, "/")) 59 temporary_old_root = strjoina(new_root, oldroot); 64 if (stat(new_root, &new_root_stat) < 0) 65 return log_error_errno(errno, "Failed to stat directory %s: %m", new_root); 79 xsprintf(new_mount, "%s%s", new_root, i); 112 (void) base_filesystem_create(new_root, UID_INVALID, GID_INVALID); 114 if (chdir(new_root) < 0) 115 return log_error_errno(errno, "Failed to change directory to %s: %m", new_root); 126 if (pivot_root(new_root, temporary_old_roo [all...] |
/systemd/src/basic/ |
H A D | missing.h | 138 static inline int pivot_root(const char *new_root, const char *put_old) { argument 139 return syscall(SYS_pivot_root, new_root, put_old);
|
Completed in 17 milliseconds