From owner-freebsd-current@FreeBSD.ORG Mon Sep 19 20:36:12 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D7EC16A420 for ; Mon, 19 Sep 2005 20:36:12 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC4F643D58 for ; Mon, 19 Sep 2005 20:36:10 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper [212.12.50.230]) by schlepper.zs64.net (8.13.3/8.12.9) with ESMTP id j8JKa9Hs049687; Mon, 19 Sep 2005 22:36:09 +0200 (CEST) (envelope-from cracauer@schlepper.zs64.net) Received: (from cracauer@localhost) by schlepper.zs64.net (8.13.3/8.12.9/Submit) id j8JKa9FC049686; Mon, 19 Sep 2005 16:36:09 -0400 (EDT) (envelope-from cracauer) Date: Mon, 19 Sep 2005 16:36:09 -0400 From: Martin Cracauer To: Alexander Leidinger Message-ID: <20050919163608.A49288@cons.org> References: <20050919130810.A41848@cons.org> <20050919214239.6f5f40ad@Magellan.Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20050919214239.6f5f40ad@Magellan.Leidinger.net>; from Alexander@Leidinger.net on Mon, Sep 19, 2005 at 09:42:39PM +0200 Cc: Martin Cracauer , freebsd-current@freebsd.org Subject: Re: device entries outside /proc with procfs (for chroot) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 20:36:12 -0000 Alexander Leidinger wrote on Mon, Sep 19, 2005 at 09:42:39PM +0200: > On Mon, 19 Sep 2005 13:08:10 -0400 > Martin Cracauer wrote: > > > /usr/ports/emulators/linux_base/pkg-message > > recommendes: > > > You may wish to create and populate /compat/linux/dev/ if you plan to > > > chroot > > > into your Linux installation. For example: > > > > > > mkdir /compat/linux/dev > > > mknod /compat/linux/dev/null c 2 2 > > > chmod 666 /compat/linux/dev/null > > > > > > That won't work, as the major and minor device numbers are now a > > moving target with devfs. > > emulators/linux_base is outdated. The current default is linux_base-8 > (still not very decent, but better than 7.x). The correct way to fix > the old port is to remove it. Unfortunately Trevor isn't very > responsive since he clashed with me and portmgr (normaly I would list > myself last, but in this case it's more appropriate to list me > first)... at least he doesn't response to me. > > I'm wondering why you get problems. Don't create a dev directory at all > and the kernel should fall back to the native one. This is for chrooted environments which don't fall back. It seemes that the controlled procfs mounting is the solution. In my case I don't chroot for security reasons, just to get the FreeBSD libs and programs out of the way, so I don't even have to secure the second mount. The documentation for this procedure should probably get into the chroot manpage. What would be your idea of a proper Linux environment? They move faster than I can follow :-) Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ FreeBSD - where you want to go, today. http://www.freebsd.org/