> Date: Sat, 5 Feb 2022 21:21:53 +0000
> From: Alexander Nasonov <al...@yandex.ru>
> 
> Since I plan to migrate my ZFS setup to a smaller cgd disk, I gave
> legacy mountpoints a try to see how much complexity they add.

I use legacy mountpoints for / and /var, but it's a little kludgey,
and from what I recall a legacy mountpoint requires setting the
mountpoint property explicitly on anything mounted under it.

I assumed you had made the change to obviate the need for most of this
extra bookkeeping with fstab and explicit mountpoint properties that
don't match the zpool dataset path.

E.g., right now I have:

rpool/ROOT mountpoint=legacy mounted at /
rpool/ROOT/var mountpoint=legacy mounted at /var
rpool/chroot mountpoint=/var/chroot
rpool/crash mountpoint=/var/crash
rpool/home mountpoint=/home (default)
rpool/export mountpoint=/export (default)
...

and critical_filesystems_local=/var in rc.conf entries in /etc/fstab
for / and /var.  (This is all inside a chroot with the `real' /
mounted from a ramdisk, of course.)

So I'm guessing with your change and critical_filesystems_zfs=/var, I
could:

- skip the fstab entry for /var,
- have only rpool/ROOT with mountpoint=legacy, and
- have /var and all the file systems under /var use default
  mountpoints.

(I haven't looked at or tried the changes yet!)

Reply via email to