Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Mar 2008 05:42:42 -0500
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        "Attila Nagy" <bra@fsn.hu>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Mounting devfs over to ZFS from fstab fails
Message-ID:  <790a9fff0803290342x1f00d22fu2ac3c6dd14751736@mail.gmail.com>
In-Reply-To: <47ECF7F3.2010301@fsn.hu>
References:  <47ECF7F3.2010301@fsn.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/28/08, Attila Nagy <bra@fsn.hu> 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_<jailname>_devfs_enable="YES"
jail_<jailname>_devfs_ruleset="MyJailRule"  <- this is optional

You can also do the same thing with "chroot", an example script is
/etc/rc.d/named.

Scot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0803290342x1f00d22fu2ac3c6dd14751736>