summaryrefslogtreecommitdiffstats
path: root/src/lib/source/system/vfs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/source/system/vfs')
-rw-r--r--src/lib/source/system/vfs/mount-dev/down9
-rw-r--r--src/lib/source/system/vfs/mount-dev/type1
-rw-r--r--src/lib/source/system/vfs/mount-dev/up7
-rw-r--r--src/lib/source/system/vfs/mount-run/down9
-rw-r--r--src/lib/source/system/vfs/mount-run/type1
-rw-r--r--src/lib/source/system/vfs/mount-run/up13
6 files changed, 40 insertions, 0 deletions
diff --git a/src/lib/source/system/vfs/mount-dev/down b/src/lib/source/system/vfs/mount-dev/down
new file mode 100644
index 0000000..9952c93
--- /dev/null
+++ b/src/lib/source/system/vfs/mount-dev/down
@@ -0,0 +1,9 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+#fdmove -c 2 1
+
+# Not umounting since it is used until shutdown anyway
+
+#umount /dev
diff --git a/src/lib/source/system/vfs/mount-dev/type b/src/lib/source/system/vfs/mount-dev/type
new file mode 100644
index 0000000..bdd22a1
--- /dev/null
+++ b/src/lib/source/system/vfs/mount-dev/type
@@ -0,0 +1 @@
+oneshot
diff --git a/src/lib/source/system/vfs/mount-dev/up b/src/lib/source/system/vfs/mount-dev/up
new file mode 100644
index 0000000..b349c6e
--- /dev/null
+++ b/src/lib/source/system/vfs/mount-dev/up
@@ -0,0 +1,7 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+fdmove -c 2 1
+
+mount -t devfs dev /dev
diff --git a/src/lib/source/system/vfs/mount-run/down b/src/lib/source/system/vfs/mount-run/down
new file mode 100644
index 0000000..d564e3d
--- /dev/null
+++ b/src/lib/source/system/vfs/mount-run/down
@@ -0,0 +1,9 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+#fdmove -c 2 1
+
+# Not umounting since it is used until shutdown anyway
+
+#umount /run
diff --git a/src/lib/source/system/vfs/mount-run/type b/src/lib/source/system/vfs/mount-run/type
new file mode 100644
index 0000000..bdd22a1
--- /dev/null
+++ b/src/lib/source/system/vfs/mount-run/type
@@ -0,0 +1 @@
+oneshot
diff --git a/src/lib/source/system/vfs/mount-run/up b/src/lib/source/system/vfs/mount-run/up
new file mode 100644
index 0000000..a508833
--- /dev/null
+++ b/src/lib/source/system/vfs/mount-run/up
@@ -0,0 +1,13 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+fdmove -c 2 1
+
+# if tmpfsdir is = /run, /run it is already mounted.
+# the value before "=" is replaced during build time,
+# making this check look silly.
+
+if -x0 { eltest @tmpfsdir@ != /run }
+ mount -t tmpfs tmpfs /run
+