summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcryx <cryx@h3q.com>2010-01-03 20:48:44 +0000
committercryx <cryx@h3q.com>2010-01-03 20:48:44 +0000
commita4b7fa2d7578a2294b70e1807e92d1390c265a8e (patch)
tree56b1bffd124d042bd746292abee7417b738855ae
parenta11f8ed733eb69518ad6bb492686cda2de7f2bad (diff)
Fix a bug in ezjail-admin install where the zfs-dataset was not mounted correctly under the ezjail-directory.
-rwxr-xr-xezjail-admin1
1 files changed, 1 insertions, 0 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 8fab08b..a7f8222 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -867,6 +867,7 @@ install)
867 check_for_zpool 867 check_for_zpool
868 echo "ZFS: manage basejail and newjail" 868 echo "ZFS: manage basejail and newjail"
869 [ -d "${ezjail_jailfull}" ] && /sbin/zfs destroy -R "${ezjail_jailzfs}/fulljail" && rm -rf "${ezjail_jailfull}" 869 [ -d "${ezjail_jailfull}" ] && /sbin/zfs destroy -R "${ezjail_jailzfs}/fulljail" && rm -rf "${ezjail_jailfull}"
870 /sbin/zfs create -p -o mountpoint=${ezjail_jaildir} ${ezjail_jailzfs}
870 /sbin/zfs create -p "${ezjail_jailzfs}/fulljail" || exerr "Error: Cannot create temporary Jail directory." 871 /sbin/zfs create -p "${ezjail_jailzfs}/fulljail" || exerr "Error: Cannot create temporary Jail directory."
871 else 872 else
872 [ -d "${ezjail_jailfull}" ] && chflags -R noschg "${ezjail_jailfull}" && rm -rf "${ezjail_jailfull}" 873 [ -d "${ezjail_jailfull}" ] && chflags -R noschg "${ezjail_jailfull}" && rm -rf "${ezjail_jailfull}"