chroot method: archs combos allowed

Joe Ciccone jciccone at
Sat Mar 25 07:44:49 PST 2006

Any 64bit system with 32bit emulation in the kernel can chroot.

As for checking,

cat > dummy.c << "EOF" &&
#include <stdio.h>
int main() {
(gcc -m32 dummy.c -o dummy &&
./dummy | grep "Hi" >/dev/null) || echo "You can not run 32bit programs"

If the program can run it will print Hi. if grep doesn't see Hi you can
take action todo what ever you want.

More information about the cross-lfs mailing list