HomeFreeBSD

etc/systemd/zfs-mount-generator: don't fail if no cached pools

Description

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

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Apr 19 2021, 5:52 PM
GitHub <noreply@github.com>Committed on Apr 19 2021, 5:52 PM
Parents
rGdc3a56d38bf3: libshare: nfs: commonify nfs_enable_share()
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG44287ffa0d5d: etc/systemd/zfs-mount-generator: don't fail if no cached pools (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Apr 19 2021, 5:52 PM