From e6d536e1b9c91a167eb79f288a17496712a330f2 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Mon, 19 Jan 2015 18:30:05 +0100 Subject: simplified --- init | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'init') 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. -- cgit v1.2.3