Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2013 11:31:42 +0000
From:      Anton Sayetsky <vsjcfm@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   [zfs] root mountpoint
Message-ID:  <CAFG2KCJKxvWxw_pxuWQ0YQQ0bs8Vy2PNOyK_7OcSJ+1iW_-NPw@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hello,
I decided to install FreeBSD on ZFS root. In almost all guides i saw
the following recommendation:
zpool create -o altroot=/mnt zroot /dev/${device}
zfs create zroot/var
zfs create ...
...
zfs set mountpoint=legacy zroot
zfs set mountpoint=/var zroot/var
zfs set mountpount=...
...
reboot

So we're setting mountpoins for all first-level childs of zroot.

Why just don't use the following simpler setup, when mountpoint set only once:
zpool create -o altroot=/mnt zroot /dev${device}
zfs set mountpoint=/ zroot
zfs create zroot/var
zfs create ...
...
reboot

I've tested both ways, the second also works perfectly but requires
less commands to enter. Can anybody explain me why I can't see
recommendations to set mountpoint=/ for zroot instead of
mountpoint=legacy?



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAFG2KCJKxvWxw_pxuWQ0YQQ0bs8Vy2PNOyK_7OcSJ+1iW_-NPw>