Nick Rout wrote:
You don't need an emulator. You could build an i386 system in a chroot
environment.
Perhaps you or someone can help me set one up. I don't seem to be doing it
correctly...
$ mkdir debi386-jail
$ env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
fakeroot -s debi386-jail.chrtsav fakechroot debootstrap --variant=fakechroot
--foreign --arch=i386 lenny ./debi386-jail/ file:///cdrom/debian
[live progress report]
$ env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
fakeroot -s debi386-jail.chrtsav fakechroot chroot debi386-jail sh
sh-3.2# ./debootstrap/debootstrap --second-stage
I: Installing core packages...
W: Failure trying to run: chroot / dpkg --force-depends --install
var/cache/apt/archives/base-passwd_3.5.20_i386.deb
var/cache/apt/archives/base-files_5lenny3_i386.deb
I have also tried different mixes of options (including not running the second
fakeroot through env), but I still get the same type of errors. I also tried
running the debootstrap that is in the jail directory from outside the jail,
which gives me the error...
cat: /usr/share/debootstrap/suite: No such file or directory
I have succuessfully used debootstrap to make chroot jails of the same
architecture as the host, so it's not that I have no idea how to use
debootstrap; it's the cross-debootstrapping part that gives me trouble.
Thanks,
Aidan