aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 2a11eaf..b36e834 100755
--- a/kvmx
+++ b/kvmx
@@ -725,6 +725,9 @@ function kvmx_clone {
cp -r `dirname $image` $FOLDER/
fi
+ # Remove old state folder
+ rm -rf $FOLDER/state/*
+
# Create config entry
( cd $GLOBAL_USER_CONFIG_FOLDER && ln -s $FOLDER/kvmxfile $DEST )