summaryrefslogtreecommitdiffstats
path: root/os-plugins
diff options
context:
space:
mode:
authorDirk von Suchodoletz2010-08-22 11:37:24 +0200
committerDirk von Suchodoletz2010-08-22 11:37:24 +0200
commitcba42371836d626a2a466b667cdb0479418d3a99 (patch)
tree0bc9ba1bd53382536865628d550e1a96d63c8e34 /os-plugins
parentvbox changes for vmchooser and var adaption (diff)
downloadcore-cba42371836d626a2a466b667cdb0479418d3a99.tar.gz
core-cba42371836d626a2a466b667cdb0479418d3a99.tar.xz
core-cba42371836d626a2a466b667cdb0479418d3a99.zip
Adapt tempfs size for VMware/Player to better utilize the RAM (see #744)
...
Diffstat (limited to 'os-plugins')
-rw-r--r--os-plugins/plugins/vmware/XX_vmware.sh2
-rw-r--r--os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh24
2 files changed, 25 insertions, 1 deletions
diff --git a/os-plugins/plugins/vmware/XX_vmware.sh b/os-plugins/plugins/vmware/XX_vmware.sh
index 116561f6..b67c6222 100644
--- a/os-plugins/plugins/vmware/XX_vmware.sh
+++ b/os-plugins/plugins/vmware/XX_vmware.sh
@@ -1,5 +1,5 @@
# Copyright (c) 2007..2009 - RZ Uni Freiburg
-# Copyright (c) 2008..2009 - OpenSLX GmbH
+# Copyright (c) 2008..2010 - OpenSLX GmbH
#
# This program/file is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
diff --git a/os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh b/os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh
new file mode 100644
index 00000000..ec0718a3
--- /dev/null
+++ b/os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh
@@ -0,0 +1,24 @@
+#!/bin/ash
+# Copyright (c) 2010 - OpenSLX GmbH
+#
+# This program is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your feedback to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org
+#
+# Init hook to adapt the tmpfs size for VMware/Player
+# (should be kept identical to the files of virtualbox plugin)
+#############################################################################
+
+# adapt tmpfs size (overbook)
+case $(grep tmpfs /proc/mounts) in
+ */tmp*)
+ mount -o remount,size=200% /mnt/tmp
+ ;;
+ */uniontmp*)
+ mount -o remount,size=200% /mnt/tmp
+ ;;
+esac