We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92d68f8 commit 6379c5fCopy full SHA for 6379c5f
1 file changed
core-services/03-filesystems.sh
@@ -30,9 +30,14 @@ if [ -e /etc/crypttab ]; then
30
fi
31
32
33
-if [ -e /etc/zfs/zpool.cache -a -x /usr/bin/zfs ]; then
34
- msg "Activating ZFS devices..."
35
- zpool import -c /etc/zfs/zpool.cache -N -a
+if [ -x /usr/bin/zpool -a -x /usr/bin/zfs ]; then
+ if [ -e /etc/zfs/zpool.cache ]; then
+ msg "Importing cached ZFS pools..."
36
+ zpool import -N -a -c /etc/zfs/zpool.cache
37
+ else
38
+ msg "Scanning for and importing ZFS pools..."
39
+ zpool import -N -a -o cachefile=none
40
+ fi
41
42
msg "Mounting ZFS file systems..."
43
zfs mount -a
0 commit comments