summaryrefslogtreecommitdiffstats
path: root/src/lib/source/system/mount
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/source/system/mount')
-rw-r--r--src/lib/source/system/mount/mount-fstab/dependencies.d/mount-dev0
-rw-r--r--src/lib/source/system/mount/mount-fstab/down7
-rw-r--r--src/lib/source/system/mount/mount-fstab/type1
-rw-r--r--src/lib/source/system/mount/mount-fstab/up7
-rw-r--r--src/lib/source/system/mount/mount-tmp/down8
-rw-r--r--src/lib/source/system/mount/mount-tmp/type1
-rw-r--r--src/lib/source/system/mount/mount-tmp/up7
-rw-r--r--src/lib/source/system/mount/remount-root/down7
-rw-r--r--src/lib/source/system/mount/remount-root/type1
-rw-r--r--src/lib/source/system/mount/remount-root/up7
10 files changed, 46 insertions, 0 deletions
diff --git a/src/lib/source/system/mount/mount-fstab/dependencies.d/mount-dev b/src/lib/source/system/mount/mount-fstab/dependencies.d/mount-dev
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/lib/source/system/mount/mount-fstab/dependencies.d/mount-dev
diff --git a/src/lib/source/system/mount/mount-fstab/down b/src/lib/source/system/mount/mount-fstab/down
new file mode 100644
index 0000000..794c607
--- /dev/null
+++ b/src/lib/source/system/mount/mount-fstab/down
@@ -0,0 +1,7 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+fdmove -c 2 1
+
+umount -a
diff --git a/src/lib/source/system/mount/mount-fstab/type b/src/lib/source/system/mount/mount-fstab/type
new file mode 100644
index 0000000..bdd22a1
--- /dev/null
+++ b/src/lib/source/system/mount/mount-fstab/type
@@ -0,0 +1 @@
+oneshot
diff --git a/src/lib/source/system/mount/mount-fstab/up b/src/lib/source/system/mount/mount-fstab/up
new file mode 100644
index 0000000..e0bce06
--- /dev/null
+++ b/src/lib/source/system/mount/mount-fstab/up
@@ -0,0 +1,7 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+fdmove -c 2 1
+
+mount -a
diff --git a/src/lib/source/system/mount/mount-tmp/down b/src/lib/source/system/mount/mount-tmp/down
new file mode 100644
index 0000000..106ff1f
--- /dev/null
+++ b/src/lib/source/system/mount/mount-tmp/down
@@ -0,0 +1,8 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+#fdmove -c 2 1
+
+# Not umounting since it is used until shutdown anyway
+# umount /tmp
diff --git a/src/lib/source/system/mount/mount-tmp/type b/src/lib/source/system/mount/mount-tmp/type
new file mode 100644
index 0000000..bdd22a1
--- /dev/null
+++ b/src/lib/source/system/mount/mount-tmp/type
@@ -0,0 +1 @@
+oneshot
diff --git a/src/lib/source/system/mount/mount-tmp/up b/src/lib/source/system/mount/mount-tmp/up
new file mode 100644
index 0000000..1474e2f
--- /dev/null
+++ b/src/lib/source/system/mount/mount-tmp/up
@@ -0,0 +1,7 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+fdmove -c 2 1
+
+mount -t tmpfs -o mode=1777 tmpfs /tmp
diff --git a/src/lib/source/system/mount/remount-root/down b/src/lib/source/system/mount/remount-root/down
new file mode 100644
index 0000000..36356fe
--- /dev/null
+++ b/src/lib/source/system/mount/remount-root/down
@@ -0,0 +1,7 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+fdmove -c 2 1
+
+mount -ur /
diff --git a/src/lib/source/system/mount/remount-root/type b/src/lib/source/system/mount/remount-root/type
new file mode 100644
index 0000000..bdd22a1
--- /dev/null
+++ b/src/lib/source/system/mount/remount-root/type
@@ -0,0 +1 @@
+oneshot
diff --git a/src/lib/source/system/mount/remount-root/up b/src/lib/source/system/mount/remount-root/up
new file mode 100644
index 0000000..e57f468
--- /dev/null
+++ b/src/lib/source/system/mount/remount-root/up
@@ -0,0 +1,7 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+fdmove -c 2 1
+
+mount -uw /