diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-11-14 15:18:54 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-11-15 04:48:36 +0100 |
commit | 4578e9394c9dda73da418928f9a4658364effa59 (patch) | |
tree | 1bf19f707c980451339f7dbe45f5e0485ae03673 /init | |
parent | 254c99b80f7f5269409b6af61cb90363bd9f66f5 (diff) | |
download | mkinitcpio-4578e9394c9dda73da418928f9a4658364effa59.tar.gz mkinitcpio-4578e9394c9dda73da418928f9a4658364effa59.tar.xz |
use util-linux's switch_root binary
This is a much better solution than busybox's, as it will move our API
filesystems and /run for us.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'init')
-rw-r--r-- | init | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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: |