Fix the renaming of the mountpoint while renaming a zfs backed jail.

This commit is contained in:
cryx 2010-01-15 14:23:10 +00:00
parent 7b51b0472d
commit 366059754d

View File

@ -1267,7 +1267,7 @@ config)
fi fi
# rename the filesystem, remounting is done by ZFS # rename the filesystem, remounting is done by ZFS
[ "${ezjail_imagetype}" = "zfs" ] && zfs rename ${ezjail_jailzfs}/${ezjail_old_hostname} ${ezjail_jailzfs}/${ezjail_hostname} [ "${ezjail_imagetype}" = "zfs" ] && /sbin/zfs rename ${ezjail_jailzfs}/${ezjail_old_hostname} ${ezjail_jailzfs}/${ezjail_hostname} && /sbin/zfs set mountpoint=${ezjail_rootdir} ${ezjail_jailzfs}/${ezjail_hostname} && rmdir ${ezjail_old_rootdir}
# rename fstab # rename fstab
rm -f "/etc/fstab.${ezjail_old_safename}" rm -f "/etc/fstab.${ezjail_old_safename}"