From c627b1f7fa3127f5e960c380ff9806b00ffb9bda Mon Sep 17 00:00:00 2001 From: Christer Edwards Date: Sat, 25 Nov 2023 19:11:57 -0700 Subject: [PATCH] fix logic for rc.conf + bastille.conf ZFS check --- usr/local/share/bastille/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/bootstrap.sh b/usr/local/share/bastille/bootstrap.sh index 157436ee..549d6ff2 100644 --- a/usr/local/share/bastille/bootstrap.sh +++ b/usr/local/share/bastille/bootstrap.sh @@ -45,7 +45,7 @@ esac bastille_root_check #Validate if ZFS is enabled in rc.conf and bastille.conf. -if [ "$(sysrc -n zfs_enable)" = "YES" ] && checkyesno bastille_zfs_enable; then +if [ "$(sysrc -n zfs_enable)" = "YES" ] && ! checkyesno bastille_zfs_enable; then warn "ZFS is enabled in rc.conf but not bastille.conf. Do you want to continue? (N|y)" read answer case $answer in