mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
etc/systemd/zfs-mount-generator: don't fail if no cached pools
If $FSLIST exists but is empty, the generator fails with sort: cannot read: '/etc/zfs/zfs-list.cache/*': No such file or directory Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #11915
This commit is contained in:
parent
dc3a56d38b
commit
44287ffa0d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user