bind mounts with zfs on linux
Zfs on Linux does not mount via /etc/fstab
and and therefore usually mounts later in the bood process than when the fstab is processed. This is a problem when one wants to use bind-mounts (mout a directory within an fstab volume to somewhere else in the directory tree as well). With systems using systemd
to launch services on boot up, there is a simple solution how we can keep on using fstab with bind mounts for zfs:
/data/home /home none bind,x-systemd.requires=zfs-mount.service 0 0