summaryrefslogtreecommitdiff
path: root/vclone
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2018-01-21 00:04:46 +0500
committerAnton Bobov <abobov@gmail.com>2018-01-21 00:05:53 +0500
commit88a42702cb07b56cb577e1e701a1a075486a1e30 (patch)
treeb25dd7d95a877dfa61d0e9d03ae38c9e7577b73d /vclone
parentae5ce758ce3132ea3f7719c36a80b55ccb8af997 (diff)
Update vclone script.
Reset description and set title with clone prefix.
Diffstat (limited to 'vclone')
-rwxr-xr-xvclone2
1 files changed, 2 insertions, 0 deletions
diff --git a/vclone b/vclone
index e2c3194..cf3fdaf 100755
--- a/vclone
+++ b/vclone
@@ -29,6 +29,8 @@ read -p "Enter new image name: " NAME
echo "Cloning..."
virt-clone --quiet --original "$BASE_IMAGE" --auto-clone --name "$NAME"
+virsh desc --new-desc '' "$NAME"
+virsh desc --title --new-desc "clone/$NAME" "$NAME"
echo "Cloning... Done."
echo "Preparing..."
virt-sysprep --quiet --domain "$NAME" --hostname "$NAME"