From d3cd22383778e2991d4f45286d2fa10f82bdd2f3 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sun, 4 May 2025 15:23:52 -0600 Subject: [PATCH] create: Error when jail is mounted using UFS --- usr/local/share/bastille/create.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/create.sh b/usr/local/share/bastille/create.sh index a7351e0b..c92020a0 100644 --- a/usr/local/share/bastille/create.sh +++ b/usr/local/share/bastille/create.sh @@ -341,10 +341,10 @@ create_jail() { else mkdir -p "${bastille_jailsdir}/${NAME}/root" fi - # Check if the jail directory has been mounted under UFS + # Check if the jail directory has been mounted under UFS (not supported) elif [ ! -d "${bastille_jailsdir}/${NAME}/root" ] && ! checkyesno bastille_zfs_enable; then if mount | grep "${bastille_jailsdir}/${NAME}" | grep -oq "ufs"; then - mkdir -p "${bastille_jailsdir}/${NAME}/root" + error_exit "[ERROR]: Using UFS mounts for the jail directory is not supported." fi fi