From 62f8f29f690c66f5b72a9241addc3c910be641fa Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Thu, 4 Sep 2025 08:55:43 -0400 Subject: [PATCH] list: fix JAIL_TYPE on zfs --- usr/local/share/bastille/list.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/list.sh b/usr/local/share/bastille/list.sh index c47c83cd..fc378d76 100644 --- a/usr/local/share/bastille/list.sh +++ b/usr/local/share/bastille/list.sh @@ -159,12 +159,14 @@ get_jail_info() { # Get jail type if grep -qw "${bastille_jailsdir}/${JAIL_NAME}/root/.bastille" "${bastille_jailsdir}/${JAIL_NAME}/fstab"; then JAIL_TYPE="thin" + elif [ "$(grep -c "^linprocfs" "${bastille_jailsdir}/${JAIL_NAME}/fstab" 2> /dev/null)" -gt 0 ]; then + JAIL_TYPE="linux" elif checkyesno bastille_zfs_enable; then if [ "$(zfs get -H -o value origin ${bastille_zfs_zpool}/${bastille_zfs_prefix}/jails/${JAIL_NAME}/root)" != "-" ]; then JAIL_TYPE="clone" + else + JAIL_TYPE="thick" fi - elif [ "$(grep -c "^linprocfs" "${bastille_jailsdir}/${JAIL_NAME}/fstab" 2> /dev/null)" -gt 0 ]; then - JAIL_TYPE="linux" else JAIL_TYPE="thick" fi