Lines Matching refs:mount
24 #include <sys/mount.h>
35 #include "mount-util.h"
157 if (mount("tmpfs", dev, "tmpfs", MS_NOSUID|MS_STRICTATIME, "mode=755") < 0) {
164 if (mount("/dev/pts", devpts, NULL, MS_BIND, NULL) < 0) {
177 r = mount("/dev/shm", devshm, NULL, MS_BIND, NULL);
185 (void) mount("/dev/mqueue", devmqueue, NULL, MS_BIND, NULL);
189 (void) mount("/dev/hugepages", devhugepages, NULL, MS_BIND, NULL);
237 * consistent with mount units creating the mount points when missing.
241 if (mount(dev, m->path, NULL, MS_MOVE, NULL) < 0) {
289 if (mount("tmpfs", root, "tmpfs", MS_NOSUID|MS_STRICTATIME, "mode=777") < 0) {
295 * bind-mount the custom endpoint over. */
308 r = mount(m->path, busnode, NULL, MS_BIND, NULL);
310 r = log_error_errno(errno, "bind mount of %s failed: %m",
321 if (mount(root, basepath, NULL, MS_MOVE, NULL) < 0) {
322 r = log_error_errno(errno, "bind mount of %s failed: %m",
367 /* Nothing to mount here, we just later toggle the
368 * MS_RDONLY bit for the mount point */
391 r = mount(what, m->path, NULL, MS_BIND|MS_REC, NULL);
528 if (mount(NULL, "/", NULL, MS_SLAVE|MS_REC, NULL) < 0)
533 /* Turn directory into bind mount */
534 if (mount(root_directory, root_directory, NULL, MS_BIND|MS_REC, NULL) < 0)
564 if (mount(NULL, "/", NULL, mount_flags | MS_REC, NULL) < 0)