freebsd-nq/etc
наб 7c64ee9e77
zfs-import-{cache,scan}: change condition to FileNotEmpty
When all pools are exported ZFS will generate an empty cache file.
This will cause the import service to fail, which is sub-optimal, 
since this means that dracut fails, and it necessary to run 
`zpool import -a` to boot, delete the file, and regenerate+reinstall 
the initrd.

This resolves the issue by treating an zero-length cache files the
same as a missing cache file.  This aligns the behavior with that
of the `zpool` command itself.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11568
2021-02-05 11:25:22 -08:00
..
default Remove vestigial settings related to initramfs 2020-08-22 11:04:49 -07:00
init.d Replace ZFS on Linux references with OpenZFS 2020-10-08 20:10:13 -07:00
modules-load.d Centralize variable substitution 2020-07-14 17:33:44 -07:00
sudoers.d Drop unnecessary srcdir paths 2020-06-24 18:20:18 -07:00
systemd zfs-import-{cache,scan}: change condition to FileNotEmpty 2021-02-05 11:25:22 -08:00
zfs Centralize variable substitution 2020-07-14 17:33:44 -07:00
Makefile.am Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00