Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix zpool import command

Bug introduced in 24c54d6
  • Loading branch information...
commit c411faf989719ccd34b9fae4b9b30f9a4eb70b45 1 parent 677e6f3
@williambr williambr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  nanobsd/Files/etc/rc.d/ix-zfs
View
2  nanobsd/Files/etc/rc.d/ix-zfs
@@ -30,7 +30,7 @@ import_zpools()
${FREENAS_SQLITE_CMD} ${FREENAS_CONFIG} "SELECT $sf FROM storage_volume WHERE vol_fstype = 'ZFS' AND vol_encrypt < 2" | \
while eval read -r $f; do
if [ -n "${vol_guid}" ]; then
- [ -e /data/zfs/zpool.cache.saved ] && /sbin/zpool import -c /data/zfs/zpool.cache.saved -o cachefile=none -R /mnt -f ${vol_guid} || /sbin/zpool import -o cachefile=none -R /
+ [ -e /data/zfs/zpool.cache.saved ] && /sbin/zpool import -c /data/zfs/zpool.cache.saved -o cachefile=none -R /mnt -f ${vol_guid} || /sbin/zpool import -o cachefile=none -R /mnt -f ${vol_guid}
rc=$?
fi
if [ ${rc} -ne 0 ]; then
Please sign in to comment.
Something went wrong with that request. Please try again.