http://kmuto.jp/open.cgi?debian-amd64を参考に作業.
# mkdir -p /var/chroot/ia32/
# aptitude install debootstrap
# debootstrap --arch i386 lenny /var/chrot/ia32
# chroot /var/chroot/ia32 /bin/bash
# vim /etc/passwd
# vim /etc/group
# passwd user
# vim /etc/apt/source.list
# aptitude update
# aptitude install sudo zsh vim
# aptitude safe-upgrade
# exit
# vim /etc/fstab
/home /var/chroot/ia32/home none bind 0 0
/tmp /var/chroot/ia32/tmp none bind 0 0
proc /var/chroot/ia32/proc proc defaults 0 0
# mount /var/chroot/ia32/home
# mount /var/chroot/ia32/tmp
# mount /var/chroot/ia32/proc
# vim /etc/ld.so.conf.d/ia32.conf
/var/chroot/ia32/lib
/var/chroot/ia32/usr/lib
/var/chroot/ia32/usr/X11R6/lib
/var/chroot/ia32/usr/local/lib
# ldconfig
# aptitude install dchroot
# vim /etc/dchroot.conf
ia32 /var/chroot/ia32
% dchroot -c ia32 command
comments powered by Disqus