Subject: Linux emulation problem
To: None <port-i386@netbsd.org>
From: Christian Groessler <cpg@aladdin.de>
List: port-i386
Date: 11/20/2002 12:50:13
Hi,

I've got a Linux - NetBSD dualboot machine. On NetBSD the Linux
partition is mounted on /linux.

/emul/linux/lib is a symlink to /linux/lib.

I can run Linux binaries fine from NetBSD:

[root@gibbon:/]# /linux/bin/bash
bash# exit
exit
[root@gibbon:/]# 

But I cannot run them chrooted:

[root@gibbon:/]# chroot /linux /bin/bash
chroot: /bin/bash: Exec format error
[root@gibbon:/]# 

Another try:

[root@gibbon:/]# chroot /linux /tmp/sh         # /linux/tmp/sh: netbsd sh
# /bin/bash
/bin/bash: 1: Syntax error: word unexpected (expecting ")")
# 


Any ideas?

regards,
chris