From owner-freebsd-questions@FreeBSD.ORG Wed May 12 14:37:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 003BC16A4CE for ; Wed, 12 May 2004 14:37:25 -0700 (PDT) Received: from hobbiton.shire.net (hobbiton.shire.net [206.71.64.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FA6643D1F for ; Wed, 12 May 2004 14:37:24 -0700 (PDT) (envelope-from chad@shire.net) Received: from [67.161.247.57] (helo=[192.168.99.66]) by hobbiton.shire.net with asmtp (TLSv1:RC4-SHA:128) (Exim 4.10) id 1BO1Pn-0007Rh-00 for freebsd-questions@freebsd.org; Wed, 12 May 2004 15:37:23 -0600 Mime-Version: 1.0 (Apple Message framework v613) Message-Id: <8C161CA5-A45C-11D8-A0B4-003065A70D30@shire.net> To: freebsd-questions@freebsd.org Questions From: "Chad Leigh -- Shire.Net LLC" Date: Wed, 12 May 2004 15:37:20 -0600 X-Mailer: Apple Mail (2.613) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hobbiton.shire.net X-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Level: Subject: devfs and jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2004 21:37:25 -0000 Hi This is on 5.2-CURRENT I want to apply devfs rules to a jails /dev. I am starting my jails manually and not through rc.conf (directly -- I have written my own rc script to start my jails since I have a bunch of file system stuff like mounting some localhost nfs and some md device mounts to do as part of the launch). I noticed that /etc/defaults/devfs.rules has a default set of rules that one might use with a jail, so I am starting there. It appears that this is ruleset 4 ( # Devices usually found in a jail. # [devfsrules_jail=4] add include $devfsrules_hide_all add include $devfsrules_unhide_basic add include $devfsrules_unhide_login ) I have /sbin/mount_devfs devfs /jail/host/dev /sbin/devfs -m /jail/host/dev ruleset 4 /sbin/devfs -m /jail/host/dev rule applyset but nothing happens. Am I going about this the wrong way? I assume that devfs will normally find the /etc/defaults/devfs.rules ???? I am new to the 5.x way of doing things and have read a bunch of man pages but feel I may be missing a step. Thanks Chad