Check if bastille_zfs_enable is actually set to NO

Check if bastille_zfs_enable is actually set to NO before zfs disable
This commit is contained in:
JRGTH
2025-10-13 07:33:21 -04:00
parent 9c10025dfd
commit 0e3ceeee70
3 changed files with 5 additions and 2 deletions

4
bastille-init Normal file → Executable file
View File

@@ -1392,7 +1392,9 @@ rc_params()
if zfs list -H "${CWDIR}" | awk '{print $1}' | grep -qw "${DAFAULT_BASTILLE_PREFIX}"; then
zfs_support_error
else
zfs_support_disabled
if [ "${bastille_zfs_enable}" = "NO" ] || [ "${bastille_zfs_enable}" = "no" ]; then
zfs_support_disabled
fi
fi
fi