diff options
| author | Matt Macy <mmacy@FreeBSD.org> | 2020-08-25 02:21:27 +0000 |
|---|---|---|
| committer | Matt Macy <mmacy@FreeBSD.org> | 2020-08-25 02:21:27 +0000 |
| commit | 9e5787d2284e187abb5b654d924394a65772e004 (patch) | |
| tree | 2ebf833af6b1953d4a683e2da830fe87bf3435e1 /libexec/rc | |
| parent | 22df1ffd812f0395cdb7c0b1edae1f67b991562a (diff) | |
Notes
Diffstat (limited to 'libexec/rc')
| -rwxr-xr-x | libexec/rc/rc.d/zfs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/zfs b/libexec/rc/rc.d/zfs index 2d35f9b54642e..69e3ad5ce6718 100755 --- a/libexec/rc/rc.d/zfs +++ b/libexec/rc/rc.d/zfs @@ -25,6 +25,13 @@ zfs_start_jail() zfs_start_main() { + local cachefile + + for cachefile in /boot/zfs/zpool.cache /etc/zfs/zpool.cache; do + if [ -r $cachefile ]; then + zpool import -c $cachefile -a + fi + done zfs mount -va zfs share -a if [ ! -r /etc/zfs/exports ]; then |
