Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jan 2010 02:05:41 -0500
From:      "Philip M. Gollucci" <pgollucci@p6m7g8.com>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        rc@FreeBSD.org
Subject:   Re: [patch] - zfs mount -a *MUST* run before /etc/fstab is processed
Message-ID:  <4B497C45.6030302@p6m7g8.com>
In-Reply-To: <20100110035224.GC1657@garage.freebsd.pl>
References:  <4B47F1DB.8080800@p6m7g8.com> <4B4829B7.1060700@FreeBSD.org> <4B48F161.4070602@p6m7g8.com> <20100110035224.GC1657@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/9/2010 10:52 PM, Pawel Jakub Dawidek wrote:
> Have you tested something like this:
> 
> /etc/fstab:
> /dev/da0	/mnt	ufs	rw	0	0
> 
> zfs create -o mountpoint=/mnt/foo pool/foo
> 
> This is bascially the opposite. Here /etc/fstab must be mounted before
> 'zfs mount -a' is called.
> 
> All in all if you need to mount file systems for your jails use
> /etc/fstab.<jailname>. This way rc.d/jail will mount needed file systems
> when you start jail.
I have not tested that, but the notion of a jail is irrelevant.  It just
happened to be that *particular* use case.

lets say I want any nullfs or unionfs (etc...) mount that depends on a
zfs mount with no jails. [i.e. multiple copies of a ports tree]

Though I do see your point.

So whats the solution if there are no jails ?

-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Sr. System Admin,                 Ridecharge Inc.
Consultant,                       P6M7G8 Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.



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