Create mount.static and use it for mounting the filesystems.
[fedora-riscv.git] / init.sh
diff --git a/init.sh b/init.sh
index 267ae74..7dbb8fd 100755 (executable)
--- a/init.sh
+++ b/init.sh
@@ -5,12 +5,12 @@ LD_LIBRARY_PATH=/usr/lib64
 export LD_LIBRARY_PATH
 
 # Root filesystem is mounted as ro, remount it as rw.
-mount -o remount,rw /
+mount.static -o remount,rw /
 
 # Mount standard filesystems.
-mount -t proc /proc /proc
-mount -t sysfs /sys /sys
-mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
+mount.static -t proc /proc /proc
+mount.static -t sysfs /sys /sys
+mount.static -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
 mkdir -p /run/lock
 
 # XXX devtmpfs