Merge pull request #689 from Vertalo/work/bugfix_zfs_export

Fix to correctly check ZFS on/off closes #661
This commit is contained in:
Juan David Hurtado G
2024-07-08 20:26:27 -05:00
committed by GitHub

View File

@@ -212,7 +212,7 @@ if [ -n "${TXZ_EXPORT}" -o -n "${TGZ_EXPORT}" ] && [ -n "${SAFE_EXPORT}" ]; then
error_exit "Error: Simple archive modes with safe ZFS export can't be used together."
fi
if checkyesno bastille_zfs_enable; then
if ! checkyesno bastille_zfs_enable; then
if [ -n "${GZIP_EXPORT}" -o -n "${RAW_EXPORT}" -o -n "${SAFE_EXPORT}" -o "${OPT_ZSEND}" = "-Rv" ]; then
error_exit "Options --gz, --raw, --safe, --verbose are valid for ZFS configured systems only."
fi