From cbd60032fcbae10c3ec5671f5bb3b47e37ec01a8 Mon Sep 17 00:00:00 2001 From: Bike Dude Date: Tue, 15 Dec 2020 09:12:02 +0100 Subject: [PATCH] add ZFS check on bootstrap --- usr/local/share/bastille/bootstrap.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/usr/local/share/bastille/bootstrap.sh b/usr/local/share/bastille/bootstrap.sh index 35ee66f9..bd5c177a 100644 --- a/usr/local/share/bastille/bootstrap.sh +++ b/usr/local/share/bastille/bootstrap.sh @@ -61,6 +61,19 @@ if [ "${bastille_zfs_enable}" = "YES" ]; then fi fi +if [ "$(sysrc -n zfs_enable)" = "YES" ] && [ ! "${bastille_zfs_enable}" = "YES" ]; then + warn "ZFS is enabled in rc.conf but not bastille.conf. Do you want to continue? (N|y)" + read answer + case $answer in + no|No|n|N|"") + error_exit "ERROR: Bootstrap interrupted" + ;; + yes|Yes|y|Y) + continue + ;; + esac +fi + validate_release_url() { ## check upstream url, else warn user if [ -n "${NAME_VERIFY}" ]; then