When renaming a zfs backed jail, don't try to move the rootdir because it is done by zfs rename.

This commit is contained in:
cryx 2010-01-15 13:59:38 +00:00
parent cc6ceaad9b
commit b0f2792970

View File

@ -1242,7 +1242,7 @@ config)
# we might end up at an existing directory # we might end up at an existing directory
[ -e "${ezjail_rootdir}" ] && exerr "Error: An object already exists at ${ezjail_rootdir}, cant rename." [ -e "${ezjail_rootdir}" ] && exerr "Error: An object already exists at ${ezjail_rootdir}, cant rename."
mv "${ezjail_old_rootdir}" "${ezjail_rootdir}" [ "${ezjail_imagetype}" = "zfs" ] || mv "${ezjail_old_rootdir}" "${ezjail_rootdir}"
fi fi
# This scenario really will only lead to real troubles in the 'fulljail' # This scenario really will only lead to real troubles in the 'fulljail'