summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-06-03 13:37:42 +0200
committerThomas Bächler <thomas@archlinux.org>2010-06-03 13:37:42 +0200
commit64c0a72e9fc0a83d4313f37e09b2fa5390f2d28d (patch)
tree92e578ed59c5075886c757ff70ecfcdfb292c0a2
parent1a4819c2def479d7babd942f87b7b38874509ed7 (diff)
downloadmkinitcpio-64c0a72e9fc0a83d4313f37e09b2fa5390f2d28d.tar.gz
mkinitcpio-64c0a72e9fc0a83d4313f37e09b2fa5390f2d28d.tar.xz
Do not umount /proc and /sys before switch_root, but mount --move them into the real root
-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} "$@"