diff options
-rwxr-xr-x | etc/systemd/system-generators/zfs-mount-generator.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/systemd/system-generators/zfs-mount-generator.in b/etc/systemd/system-generators/zfs-mount-generator.in index 28439f424..c276fbbce 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 |