1) 更新另一rootfs分支,
mount -t proc none /home/teddy/newroot/proc
mount -o bind /dev /home/teddy/newroot/dev
chroot haineko2 /bin/bash
执行上述以后切入新的rootfs, 此时执行下面
env-update
source /etc/profile
export PS1="(chroot) $PS1"
cd /home/teddy
export HOME=/home/teddy
此时完整切入新的rootfs执行。