instead of:
Code:
# sudo cp /etc/passwd /chroot/etc/
# sudo cp /etc/shadow /chroot/etc/
# sudo cp /etc/group /chroot/etc/
# sudo cp /etc/sudoers /chroot/etc/
# sudo cp /etc/hosts /chroot/etc/
you can use:
Code:
# sudo mount --bind /etc/passwd /chroot/etc/passwd
# sudo touch /chroot/etc/shadow
# sudo mount --bind /etc/shadow /chroot/etc/shadow
# sudo mount --bind /etc/group /chroot/etc/group
# sudo mount --bind /etc/sudoers /chroot/etc/sudoers
# sudo mount --bind /etc/hosts /chroot/etc/hosts
with the appropriate entries in /etc/fstab of course.
then changes from the 64bit host system will be propagated to the 32bit chroot.
And for installing debian sid in the chroot:
# debootstrap --arch i386 sid /chroot <url-to-local-debian-mirror>
hope this helps
Bookmarks