[patch] - zfs mount -a *MUST* run before /etc/fstab is processed
Philip M. Gollucci
pgollucci at p6m7g8.com
Sun Jan 10 07:05:41 UTC 2010
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 at 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.
More information about the freebsd-rc
mailing list