summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-08 11:49:04 +0100
committerSimon Rettberg2016-01-08 11:49:04 +0100
commitdc5e7e43039c05d742875fc6b74801e4788158d8 (patch)
tree3d8e7887d9cee0710149f3a3672248b70dfeca82
parent[busybox] Add applet: fuser (diff)
downloadtm-scripts-dc5e7e43039c05d742875fc6b74801e4788158d8.tar.gz
tm-scripts-dc5e7e43039c05d742875fc6b74801e4788158d8.tar.xz
tm-scripts-dc5e7e43039c05d742875fc6b74801e4788158d8.zip
[run-virt] TMPDIR is now set globally in set_runvirt_variables.inc
Didn't really make sense in detect_legacy. TMPDIR was only used in one file in the vmware module. Now it's being used in several places, but there's still a lot more occurences that should be unified.
-rw-r--r--remote/modules/run-virt/data/opt/openslx/scripts/includes/detect_legacy.inc7
1 files changed, 0 insertions, 7 deletions
diff --git a/remote/modules/run-virt/data/opt/openslx/scripts/includes/detect_legacy.inc b/remote/modules/run-virt/data/opt/openslx/scripts/includes/detect_legacy.inc
index b71d43fc..11a21832 100644
--- a/remote/modules/run-virt/data/opt/openslx/scripts/includes/detect_legacy.inc
+++ b/remote/modules/run-virt/data/opt/openslx/scripts/includes/detect_legacy.inc
@@ -7,13 +7,6 @@
writelog "Detecting current/legacy mode ..."
-TMPDIR=$(mktemp -d -p /tmp/virt)
-ERR=$?
-if "$ERR"; then
- writelog "Could not mkdir tempdir, using /tmp."
- TMPDIR=/tmp
-fi
-
# First, let's try to extract an imguuid from xmlfile:
IMGUUID=$(grep -io '<uuid param=.*"' "${xmlfile}" | sed -e "s/&.*;/; /g" | awk -F '"' '{ print $2 }')