summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init4
1 files changed, 2 insertions, 2 deletions
diff --git a/init b/init
index 3a34a45..e543477 100644
--- a/init
+++ b/init
@@ -141,6 +141,6 @@ if [ -n "${udevpid}" ]; then
done
fi
-umount /proc
-umount /sys
+mount --move /proc /new_root/proc
+mount --move /sys /new_root/sys
exec /sbin/switch_root -c /dev/console /new_root ${init} "$@"