diff --git a/etc/systemd/system-generators/zfs-mount-generator.in b/etc/systemd/system-generators/zfs-mount-generator.in index 28439f424a..c276fbbce5 100755 --- a/etc/systemd/system-generators/zfs-mount-generator.in +++ b/etc/systemd/system-generators/zfs-mount-generator.in @@ -28,6 +28,7 @@ set -e FSLIST="@sysconfdir@/zfs/zfs-list.cache" [ -d "${FSLIST}" ] || exit 0 +[ "$(echo "${FSLIST}"/*)" = "${FSLIST}/*" ] && exit 0 do_fail() { printf 'zfs-mount-generator: %s\n' "$*" > /dev/kmsg