Intended method to automatically mount root on ZFS

Thank you for you answer and the information.

I understand that, there is now “wrong” or “right”. But there has to be reasons to choose one or another solution. That is, what I’m trying to understand. E.g. my configuration, from the OpenZFS Wiki “Root on ZFS” for Arch, is using the fstab method, to control the order folders are mounted more precisely:

At boot, datasets on rpool are mounted with /etc/fstab , which can control the mounting process more precisely than zfs-mount.service .

So what are the pros and cons using other method?

As far as I understand it, it is using the canmount=noauto property only for the root dataset ‘rpool/manjaro/ROOT/default’. I’m not using a boot pool, that did not work out for me. :slight_smile:

So for me the scheme is:

  1. Every virtual dataset gets the canmount=off property set, because it just used for organisation and inheriting properties to child datasets.
  2. The datasets for /usr, /var and /var/lib are set to ‘canmount=off’. This is mentioned in nearly any howto I found, even though I don’t know the actual reason.
  3. All other datasets, which are actually mounted have the `canmount=on’ property set.

The dataset, which is not working for me, is discussed in another thread
(Manjaro not booting, because it fails to automount ZFS dataset) as I wanted to split this topics. But its canmount property is set to on.

Thx again, that is something that I did not know. :smiley: