summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init9
1 files changed, 1 insertions, 8 deletions
diff --git a/init b/init
index 76ec252..aa296c7 100644
--- a/init
+++ b/init
@@ -115,13 +115,6 @@ if [ "${udevd_running}" -eq 1 ]; then
udevadm info --cleanup-db
fi
-for d in proc sys dev run; do
- if [ -d /new_root/${d} ]; then
- mount --move /${d} /new_root/${d}
- else
- umount /${d}
- fi
-done
-exec env -i TERM=$TERM /sbin/switch_root -c /dev/console /new_root ${init} "$@"
+exec env -i "TERM=$TERM" /sbin/switch_root /new_root $init "$@"
# vim: set ft=sh ts=4 sw=4 et: