Fix a bug in ezjail-admin install where the zfs-dataset was not mounted correctly under the ezjail-directory.

This commit is contained in:
cryx 2010-01-03 20:48:44 +00:00
parent a11f8ed733
commit a4b7fa2d75

View File

@ -867,6 +867,7 @@ install)
check_for_zpool check_for_zpool
echo "ZFS: manage basejail and newjail" echo "ZFS: manage basejail and newjail"
[ -d "${ezjail_jailfull}" ] && /sbin/zfs destroy -R "${ezjail_jailzfs}/fulljail" && rm -rf "${ezjail_jailfull}" [ -d "${ezjail_jailfull}" ] && /sbin/zfs destroy -R "${ezjail_jailzfs}/fulljail" && rm -rf "${ezjail_jailfull}"
/sbin/zfs create -p -o mountpoint=${ezjail_jaildir} ${ezjail_jailzfs}
/sbin/zfs create -p "${ezjail_jailzfs}/fulljail" || exerr "Error: Cannot create temporary Jail directory." /sbin/zfs create -p "${ezjail_jailzfs}/fulljail" || exerr "Error: Cannot create temporary Jail directory."
else else
[ -d "${ezjail_jailfull}" ] && chflags -R noschg "${ezjail_jailfull}" && rm -rf "${ezjail_jailfull}" [ -d "${ezjail_jailfull}" ] && chflags -R noschg "${ezjail_jailfull}" && rm -rf "${ezjail_jailfull}"