summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcryx <cryx@h3q.com>2010-01-15 14:23:10 +0000
committercryx <cryx@h3q.com>2010-01-15 14:23:10 +0000
commit366059754d48d7699c7cfbbbb51c7a284981304d (patch)
tree5f4f84af3a94867ffba01e1ba0f8fc0c8c22af31
parent7b51b0472d5806de48361f3f480efd7259752a84 (diff)
Fix the renaming of the mountpoint while renaming a zfs backed jail.
-rwxr-xr-xezjail-admin2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 5840be8..d3cc9c7 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -1267,7 +1267,7 @@ config)
1267 fi 1267 fi
1268 1268
1269 # rename the filesystem, remounting is done by ZFS 1269 # rename the filesystem, remounting is done by ZFS
1270 [ "${ezjail_imagetype}" = "zfs" ] && zfs rename ${ezjail_jailzfs}/${ezjail_old_hostname} ${ezjail_jailzfs}/${ezjail_hostname} 1270 [ "${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}
1271 1271
1272 # rename fstab 1272 # rename fstab
1273 rm -f "/etc/fstab.${ezjail_old_safename}" 1273 rm -f "/etc/fstab.${ezjail_old_safename}"