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:
parent
cc6ceaad9b
commit
b0f2792970
@ -1242,7 +1242,7 @@ config)
|
||||
# we might end up at an existing directory
|
||||
[ -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
|
||||
|
||||
# This scenario really will only lead to real troubles in the 'fulljail'
|
||||
|
Loading…
x
Reference in New Issue
Block a user