aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx-create6
1 files changed, 5 insertions, 1 deletions
diff --git a/kvmx-create b/kvmx-create
index b7cb993..9d4b8c9 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -197,7 +197,11 @@ function kvmx_create_vmdebootstrap {
# Custom version
#
function kvmx_create_custom {
- WORK="`mktemp -d`"
+ if [ -z "$TMP" ]; then
+ TMP="/tmp"
+ fi
+
+ WORK="`mktemp -d $TMP/kvmx-create.XXXXXXXXXX`"
# Determine kernel architecture
if [ "$arch" == "i386" ]; then