Fix a bug in ezjail-admin install where the zfs-dataset was not mounted correctly under the ezjail-directory.
This commit is contained in:
parent
a11f8ed733
commit
a4b7fa2d75
@ -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}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user