From 64c0a72e9fc0a83d4313f37e09b2fa5390f2d28d Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Thu, 3 Jun 2010 13:37:42 +0200 Subject: Do not umount /proc and /sys before switch_root, but mount --move them into the real root --- init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init') 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} "$@" -- cgit v1.2.3-24-g4f1b