Date: Thu, 13 Dec 2001 04:52:20 +0100 (CET) From: "Anders Nor Berle" <debolaz@debolaz.com> To: <francisv@dagupan.com> Cc: <freebsd-isp@freebsd.org> Subject: RE: Linux compatibility inside jail system Message-ID: <42555.62.179.128.205.1008215540.squirrel@www.debolaz.com> In-Reply-To: <10F29E27A956D511B0940050DA8D86A9340D3C@apmail.dagupan.com> References: <10F29E27A956D511B0940050DA8D86A9340D3C@apmail.dagupan.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Yes, when you say that, I recall a little hack is neccesary. Basically, the port wants to do 2 things which cannot be done inside a jail. (1) Set the sysctl "kern.fallback_elf_brand" to 3 (LINUX_ELF) (2) Make a a /dev/null device inside the linux chrooted environment. The first is obvious to accomplish, simply set it outside the jail. Sysctls are global. So to do this, you'd simply write: sysctl -w kern.fallback_elf_brand=3 Then, you comment out this code in the linux_base-7 Makefile, which I believe is located at line 136 and 150. The second is slightly more tricky, but shouldnt be any problem. make a directory called /compat/linux/dev inside the jail, chdir to it and write: mknod null c 2 2 Then, comment out this too in your Makefile (Line 130). Then, try installing it again and tell me how it works. :) > I think I already have linux_compat -- how do I install it from inside the jail? I've > tried it but it complained about mknod not being able to access something... > >> Install the linux_compat module, in the nonjail part of the system, then simply >> install the port emulators/linux_base-7 (or another if you prefer an older version) >> inside your jail, and if I recall correctly, that should be about it. >> >>> How did you do it? Can you give me the steps? >>> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42555.62.179.128.205.1008215540.squirrel>
