From owner-freebsd-stable@FreeBSD.ORG Sat Mar 29 10:42:45 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B737B1065672 for ; Sat, 29 Mar 2008 10:42:45 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 415768FC12 for ; Sat, 29 Mar 2008 10:42:44 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so640130fgg.35 for ; Sat, 29 Mar 2008 03:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=oOVC1H8U40yt7kvbHu4/sG9RkUXNIGtyi/LBTk3b98Q=; b=DBmqBYxJeFDTluFLAHNOR1Sbkt34pMW2f51bGUwgKRsn7WuOJ6RVXOwhcmUIRL9CyY8VZyO18llTOe1BRZHfvC01PBJ8ZrS84JnmJPFG/26TtUSJz8vREvliLkVP+EUZ6BMftbr/+j0/OCLSkMJlqzhiddCIjm0CiZx23nVEjIw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=h0qVOtfWahdYWDiouGbJfktqlDCcgxWjb2xwvBvIY43jdmH+2UiVIkL9t+UBsfn/J8FZu/1QFB89hSr3f5qhvLQ/UatX5Mm1YBXiamOf9BGVm+wzUqGiTgtRnpmprYiAPZ8hOznKSqiy1u8SjP8nI0KlQLCjKIy/5mUZzTjV2ko= Received: by 10.86.87.5 with SMTP id k5mr2592246fgb.51.1206787363126; Sat, 29 Mar 2008 03:42:43 -0700 (PDT) Received: by 10.86.95.7 with HTTP; Sat, 29 Mar 2008 03:42:42 -0700 (PDT) Message-ID: <790a9fff0803290342x1f00d22fu2ac3c6dd14751736@mail.gmail.com> Date: Sat, 29 Mar 2008 05:42:42 -0500 From: "Scot Hetzel" To: "Attila Nagy" In-Reply-To: <47ECF7F3.2010301@fsn.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47ECF7F3.2010301@fsn.hu> Cc: freebsd-stable@freebsd.org Subject: Re: Mounting devfs over to ZFS from fstab fails X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2008 10:42:45 -0000 On 3/28/08, Attila Nagy wrote: > Hello, > > I have some jails running on ZFS, so I have to mount devfs's into them. > > For this purpose, I have some similar lines in /etc/fstab: > devfs /pool/jail/ldap/dev devfs rw 0 0 > > Where /pool is a ZFS filesystem. > > This has worked until today -when I upgraded from a previous 7-STABLE > (FreeBSD 7.0-STABLE #16: Fri Mar 7 14:30:08 CET 2008) to today's STABLE- > but not anymore. > > The boot process fails with something like WARNING: $true wasn't set, see > man rc.conf (or something similar, I don't have the exact error message, but > I can reproduce if it's needed), and the problem is that the rc scripts try > to mount the devfs (and nullfs) stuff to the yet unmounted ZFS, so > /pool/jail/ldap/dev doesn't exist. > It would be helpfull to see what the error message is. For "jails" you don't need to place any devfs entries into /etc/fstab. The /etc/rc.d/jail script will automatically mount/umount the devfs for you. Just add the following to /etc/rc.conf: jail__devfs_enable="YES" jail__devfs_ruleset="MyJailRule" <- this is optional You can also do the same thing with "chroot", an example script is /etc/rc.d/named. Scot