aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/source/system/mount/remount-root
diff options
context:
space:
mode:
authorPS <p@0x53.net>2026-02-01 12:06:46 +0100
committerPS <p@0x53.net>2026-02-01 12:06:46 +0100
commiteaf0ecff18ee063286ad423469241ca0eb2e4c6c (patch)
tree692ca6a0fea576b21d988cb2459f492c6284648b /src/lib/source/system/mount/remount-root
downloadgoetia-linux-eaf0ecff18ee063286ad423469241ca0eb2e4c6c.tar.gz
goetia-linux-eaf0ecff18ee063286ad423469241ca0eb2e4c6c.tar.bz2
goetia-linux-eaf0ecff18ee063286ad423469241ca0eb2e4c6c.zip
version 0.2.0.0
Diffstat (limited to 'src/lib/source/system/mount/remount-root')
-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/up3
3 files changed, 11 insertions, 0 deletions
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..88e00e3
--- /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 -o remount,ro /
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..c1f7e9d
--- /dev/null
+++ b/src/lib/source/system/mount/remount-root/up
@@ -0,0 +1,3 @@
+fdmove -c 2 1
+
+mount -o remount,rw /