summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-01-19 18:30:05 +0100
committerPatrick Simianer <p@simianer.de>2015-01-19 18:30:05 +0100
commite6d536e1b9c91a167eb79f288a17496712a330f2 (patch)
tree027decf25e5dbc6b8079b66a28ce64d57b979320 /init
parent78e0430e8e5973f34e82ab4a97ab2dd83f27ed01 (diff)
simplified
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.