chroot and ia32libs combined
I'm trying to create a chroot in a AMD64 Debian system, following a how-to
posted from http://www.debian-administration.org/articles/356. However,
I'm not comfortable messing with my main system config files (like
/et/ld.so.conf), which the how-to suggests. For other reasons, I also had
the ia32-libs package installed, so I thought I could avoid messing my
/etc/ld.so.conf and thought that the chroot should be able to use the
libraries from ia32-libs. I can see I already have the /lib/ld-linux.so.2
link. Is this sensible? if not, is there some alternative?
I'm also not sure about what and how things should mounts be specified in
/etc/fstab. The how-to above says to use this:
/home /var/sid-386-chroot/home none bind 0 0
/tmp /var/sid-386-chroot/tmp none bind 0 0
proc /var/sid-386-chroot/proc proc defaults 0 0
I've been advised to also mount /etc read-only, in order to avoid copying
files around (very error prone) to the chroot. Other how-tos also
recommend mounting /dev, so people are using very different ways to
install a chroot. Can somebody please suggest what the best method is?
Thanks in advance.