Lines Matching defs:to

232                 return log_error_errno(r, "Failed to determine filesystem type of %s: %m", top);
235 * don't have the right to do so, see https://github.com/systemd/systemd/issues/1555.
245 return log_error_errno(errno, "Failed to mount sysfs to %s: %m", full);
248 _cleanup_free_ char *from = NULL, *to = NULL;
254 to = prefix_root(top, x);
255 if (!to)
258 (void) mkdir(to, 0755);
260 if (mount(from, to, NULL, MS_BIND, NULL) < 0)
261 return log_error_errno(errno, "Failed to mount /sys/%s into place: %m", x);
263 if (mount(NULL, to, NULL, MS_BIND|MS_RDONLY|MS_NOSUID|MS_NOEXEC|MS_NODEV|MS_REMOUNT, NULL) < 0)
264 return log_error_errno(errno, "Failed to mount /sys/%s read-only: %m", x);
268 return log_error_errno(errno, "Failed to unmount %s: %m", full);
271 return log_error_errno(errno, "Failed to remove %s: %m", full);
277 return log_error_errno(errno, "Failed to make %s read-only: %m", top);
334 return log_error_errno(r, "Failed to detect whether %s is a mount point: %m", where);
343 return log_error_errno(r, "Failed to create directory %s: %m", where);
345 log_warning_errno(r, "Failed to create directory %s: %m", where);
385 return log_error_errno(r, "Failed to extract mount option: %m");
422 return log_error_errno(errno, "Failed to stat %s: %m", m->source);
440 return log_error_errno(r, "Failed to make parents of %s: %m", where);
442 return log_error_errno(errno, "Failed to stat %s: %m", where);
454 return log_error_errno(r, "Failed to create mount point %s: %m", where);
493 return log_error_errno(errno, "tmpfs mount to %s failed: %m", where);
558 return log_error_errno(errno, "overlay mount to %s failed: %m", where);
603 char *to;
606 to = strjoina(strempty(dest), "/sys/fs/cgroup/", hierarchy);
608 r = path_is_mount_point(to, 0);
610 return log_error_errno(r, "Failed to determine if %s is mounted already: %m", to);
614 mkdir_p(to, 0755);
616 /* The superblock mount options of the mount point need to be
617 * identical to the hosts', and hence writable... */
618 if (mount("cgroup", to, "cgroup", MS_NOSUID|MS_NOEXEC|MS_NODEV, controller) < 0)
619 return log_error_errno(errno, "Failed to mount to %s: %m", to);
624 if (mount(NULL, to, NULL, MS_BIND|MS_REMOUNT|MS_NOSUID|MS_NOEXEC|MS_NODEV|MS_RDONLY, NULL) < 0)
625 return log_error_errno(errno, "Failed to remount %s read-only: %m", to);
643 /* Mount a tmpfs to /sys/fs/cgroup if it's not mounted there yet. */
646 return log_error_errno(r, "Failed to determine if /sys/fs/cgroup is already mounted: %m");
655 return log_error_errno(errno, "Failed to mount /sys/fs/cgroup: %m");
667 return log_error_errno(r, "Failed to determine cgroup controllers: %m");
689 return log_error_errno(r, "Failed to read link %s: %m", origin);
714 return log_error_errno(r, "Failed to create symlink for combined hierarchy: %m");
724 return log_error_errno(errno, "Failed to remount %s read-only: %m", cgroup_root);
741 return log_error_errno(r, "Failed to determine if %s is mounted already: %m", p);
747 return log_error_errno(errno, "Failed to determine if mount point %s contains the unified cgroup hierarchy: %m", p);
754 return log_error_errno(errno, "Failed to mount unified cgroup hierarchy to %s: %m", p);
783 return log_error_errno(r, "Failed to determine our own cgroup path: %m");
785 /* If we are living in the top-level, then there's nothing to do... */
799 return log_error_errno(errno, "Failed to turn %s into a bind mount: %m", own_cgroup_path);
803 return log_error_errno(errno, "Failed to mount cgroup root read-only: %m");
828 return log_error_errno(r, "Failed to remount %s read-only: %m", directory);
833 return log_error_errno(errno, "Failed to create %s: %m", directory);
843 return log_error_errno(errno, "Failed to mount tmpfs to /var: %m");
865 /* --volatile=yes means we mount a tmpfs to the root dir, and
866 the original /usr to use inside it, and that read-only. */
869 return log_error_errno(errno, "Failed to create temporary directory: %m");
879 r = log_error_errno(errno, "Failed to mount tmpfs for root directory: %m");
890 r = log_error_errno(errno, "Failed to create %s: %m", t);
895 r = log_error_errno(errno, "Failed to create /usr bind mount: %m");
903 log_error_errno(r, "Failed to remount %s read-only: %m", t);
908 r = log_error_errno(errno, "Failed to move root mount: %m");