create: Allow jail dir to be mounted under UFS

This commit is contained in:
tschettervictor
2025-04-22 10:30:46 -06:00
committed by GitHub
parent 6bd93e481b
commit 4a1c5343f0

View File

@@ -341,8 +341,14 @@ create_jail() {
else
mkdir -p "${bastille_jailsdir}/${NAME}/root"
fi
# Check if the jail directory has been mounted under UFS
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"
fi
fi
## PoC for Linux jails @hackacad
if [ -n "${LINUX_JAIL}" ]; then
info "\nCreating a linuxjail. This may take a while...\n"