[ostree-init] Create /dev/shm and /dev/pts
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree-init] Create /dev/shm and /dev/pts
- Date: Fri, 27 Jan 2012 00:17:09 +0000 (UTC)
commit 890103cf8694468cce5d9949c776e9a2970dc720
Author: Colin Walters <walters verbum org>
Date: Thu Jan 26 18:42:52 2012 -0500
Create /dev/shm and /dev/pts
These are needed by the target mounts.
src/ostree-init.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree-init.c b/src/ostree-init.c
index 1288089..d4c5bed 100644
--- a/src/ostree-init.c
+++ b/src/ostree-init.c
@@ -247,6 +247,12 @@ main(int argc, char *argv[])
exit (1);
}
+ snprintf (destpath, sizeof(destpath), "/ostree/%s/dev/shm", ostree_root);
+ (void) mkdir (destpath);
+
+ snprintf (destpath, sizeof(destpath), "/ostree/%s/dev/pts", ostree_root);
+ (void) mkdir (destpath);
+
snprintf (destpath, sizeof(destpath), "/ostree/%s/run", ostree_root);
if (mount ("tmpfs", destpath, "tmpfs",
MS_MGC_VAL | MS_NOSUID | MS_NODEV,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]