Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Mar 2016 20:16:02 -0500
From:      Ultima <ultima1252@gmail.com>
To:        marquis@roble.com
Cc:        freebsd-current@freebsd.org
Subject:   Re: zfsboot patch for /usr
Message-ID:  <CANJ8om7ppsYx-Y1HVdnUkZQgOHykjDvsi9HyJX8Ze0=FpKLAhQ@mail.gmail.com>
In-Reply-To: <CAOjFWZ6KVs_J1AVAZ-R5Loo9PpXdNYN0RYEmtFX3MoJDAttMOA@mail.gmail.com>
References:  <20160309233641.91BEA2849B@elsa.codelab.cz> <56E0BA15.50702@quip.cz> <CAOjFWZ6KVs_J1AVAZ-R5Loo9PpXdNYN0RYEmtFX3MoJDAttMOA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
 Zfs automatically creates directories needed to be mounted, it would be a
wasted effort making directories for zfs. I don't really understand your
issue with an unused /usr dataset, but you can just modify
the ZFSBOOT_DATASETS area of the script to get accomplish what you're
trying to do.

On Wed, Mar 9, 2016 at 8:02 PM, Freddie Cash <fjwcash@gmail.com> wrote:

> On Mar 9, 2016 4:04 PM, "Miroslav Lachman" <000.fbsd@quip.cz> wrote:
> >
> > Roger Marquis wrote on 03/10/2016 00:36:
> >>
> >> Wondering if anyone has example patches for zfsboot (from
> >> usr.sbin/bsdinstall/scripts)?
> >>
> >> We're looking to change some of the default zfs subvolumes, removing
> /usr in
> >> favor of /usr/local in particular, and have run into a "parent does not
> exist"
> >> issue.  It's not clear where in the script the /usr parent dir should be
> >> mkdir'd.
> >
> >
> > I no nothing about this script but if you want /usr/local as ZFS
> filesystem, then you need to create parent (/usr in this case) and you can
> use property canmount=off plus different 'mountpoint' (for example
> /mnt/usr) to not mount /usr over existing directory on root filesystem.
>
> Set mountpoint=none if you just want to create the parent dataset without
> actually using it for storage. Then you can set properties on it, and child
> datasets will inherit then. Like pool/usr/local
>
> You'd still need to "mkdir /usr" in the script, but that's separate.
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANJ8om7ppsYx-Y1HVdnUkZQgOHykjDvsi9HyJX8Ze0=FpKLAhQ>