summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rwxr-xr-xinit6
1 files changed, 4 insertions, 2 deletions
diff --git a/init b/init
index b868088..2b660c8 100755
--- a/init
+++ b/init
@@ -41,9 +41,12 @@ cryptsetup_do()
mount_root()
{
echo "mount root $1"
- mount -o ro $1 /newroot
+ mount $1 /newroot
}
+# setup directories
+mkdir -p /dev /proc /sys /newroot
+
# Mount the /dev, /proc and /sys filesystems.
mount -t devtmpfs none /dev
mount -t proc none /proc
@@ -52,7 +55,6 @@ mount -t sysfs none /sys
# Do your stuff here.
prep_dev
cryptsetup_do $HOME home
-#resume
mount_root $ROOT || rescue_shell
# Clean up.