summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Schmelzer2012-08-20 17:17:37 +0200
committerSebastian Schmelzer2012-08-20 17:17:37 +0200
commitdbb1fc47b8b3162d66c2d1c8d914ab874e74bb72 (patch)
treebc0a8fd16f3c7dc3f149f2091ea5a2386a6e335c
parentfix sound for windows vm's (diff)
downloadcore-dbb1fc47b8b3162d66c2d1c8d914ab874e74bb72.tar.gz
core-dbb1fc47b8b3162d66c2d1c8d914ab874e74bb72.tar.xz
core-dbb1fc47b8b3162d66c2d1c8d914ab874e74bb72.zip
don't use compressed tmpfs for vmware when /tmp is located on local harddrive
-rw-r--r--src/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm b/src/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
index 7f9b0d3a..6d519a61 100644
--- a/src/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
+++ b/src/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
@@ -407,8 +407,10 @@ sub _writeRunlevelScript
# functions ...
$script = unshiftHereDoc(<<" End-of-Here");
# Create a special tempfs directory
- mkdir -m 1777 -p /tmp/vmware
- mount -t tmpfs -o size=180%,mode=1777 tmpfs /tmp/vmware
+ mkdir -/m 1777 -p /tmp/vmware
+ # Don't mount special tempfs, when using local harddrive for /tmp
+ [ ! -n "\$(cat /proc/mounts |grep ' /tmp '|grep '/dev/sd')" ] \\
+ && mount -t tmpfs -o size=180%,mode=1777 tmpfs /tmp/vmware
End-of-Here
$initfile->addFunction(
"tempdir",