diff options
Diffstat (limited to 'init')
-rwxr-xr-x | init | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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. |