ZFS-MOUNT-GENERATOR(8)

NAME
zfs-mount-generator - generates systemd mount units for zfs

SYNOPSIS
/lib/systemd/system-generators/zfs-mount-generator

DESCRIPTION
The zfs-mount-generator implements the Generators Specification of systemd(1), and is called during early boot to generate systemd.mount(5) units for automatically mounted datasets. Mount ordering and dependencies are created for all tracked pools (see below). If a dataset has canmount=on and mountpoint set, the auto mount option will be set, and a dependency for local-fs.target on the mount will be created. Because zfs pools may not be available very early in the boot process, information on ZFS mountpoints must be stored separately. The output of the command

    zfs list -H -oname,mountpoint,canmount

for datasets that should be mounted by systemd, should be kept separate from the pool, at

    @sysconfdir@/zfs/zfs-list.cache/POOLNAME

The cache file, if writeable, will be kept synchronized with the pool state by the ZEDLET

    history_event-zfs-list-cacher.sh .

SEE ALSO
zfs(5) zfs-events(5) zed(8) zpool(5) systemd(1) systemd.target(5) systemd.special(7) systemd.mount(7)