With a ZFS root install, which partitions need to be canmount=noauto
and why?
I am looking at a fresh installation of Ubuntu 20.04 with ZFS on root. I am using these instructions on the openzfs site, but there is one thing that I don't get which is bugging me.
from the guide:
3.2 Create filesystem datasets for the root and boot filesystems:
zfs create -o canmount=noauto -o mountpoint=/ rpool/ROOT/ubuntu zfs mount rpool/ROOT/ubuntu zfs create -o canmount=noauto -o mountpoint=/boot bpool/BOOT/ubuntu zfs mount bpool/BOOT/ubuntu
With ZFS, it is not normally necessary to use a mount command (either mount or zfs mount). This situation is an exception because of canmount=noauto.
I understand that the noauto
means that fstab or a mount command is needed to mount the volumes. but I don't get why it is necessary/recommended for some datasets but not others. Can someone help me understand that?