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
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 19 2021, 10:22 PM
Parents
rG219acd907bf0: freebsd/libshare: nfs: make nfs_is_shared() thread-safe
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG478b8ec8f218: etc/systemd/zfs-mount-generator: don't fail if no cached pools (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Apr 19 2021, 10:22 PM