From fb37dbebfa140bc3be8921ccbb2a0e3de9777caa Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Thu, 6 Nov 2025 11:08:46 -0700 Subject: [PATCH] start: remove zfs jail dataset block --- usr/local/share/bastille/start.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/usr/local/share/bastille/start.sh b/usr/local/share/bastille/start.sh index bb9dcc98..3a68a09f 100644 --- a/usr/local/share/bastille/start.sh +++ b/usr/local/share/bastille/start.sh @@ -184,16 +184,6 @@ for _jail in ${JAILS}; do # Start jail jail ${OPTION} -f "${bastille_jailsdir}/${_jail}/jail.conf" -c "${_jail}" - # Add ZFS jailed datasets - if [ -s "${bastille_jailsdir}/${_jail}/zfs.conf" ]; then - while read _dataset _mount; do - zfs set jailed=on "${_dataset}" - zfs jail ${_jail} "${_dataset}" - jexec -l -U root "${_jail}" zfs set mountpoint="${_mount}" "${_dataset}" - jexec -l -U root "${_jail}" zfs mount "${_dataset}" 2>/dev/null - done < "${bastille_jailsdir}/${_jail}/zfs.conf" - fi - # Add rctl limits if [ -s "${bastille_jailsdir}/${_jail}/rctl.conf" ]; then while read _limits; do @@ -218,4 +208,4 @@ for _jail in ${JAILS}; do # Delay between jail action sleep "${DELAY_TIME}" -done \ No newline at end of file +done