Teach ezjail-admin not to attach a zfs backed imagejail when doing archive, reported by Nathan Tice.

This commit is contained in:
cryx 2010-01-15 12:59:44 +00:00
parent 02b7620839
commit 8ecd24f223

View File

@ -1025,7 +1025,7 @@ archive)
fi
# Attach non-attached jails, if they can be attached non blocking
if [ "${ezjail_imagetype}" -a -z "${ezjail_attached}" ]; then
if [ "${ezjail_imagetype}" -a "${ezjail_imagetype}" != "zfs" -a -z "${ezjail_attached}" ]; then
if [ "${ezjail_attachblocking}" ]; then
echo "Warning: Jail ${ezjail_name} is an image jail and can not be attached automatically."
echo " Use '${ezjail_admin} config -i attach ${ezjail_name}' to attach it first."