summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh')
-rw-r--r--src/os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh b/src/os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh
new file mode 100644
index 00000000..a28a8c6f
--- /dev/null
+++ b/src/os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+# 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=160% /mnt/tmp
+ ;;
+ */uniontmp*)
+ mount -o remount,size=160% /mnt/uniontmp
+ ;;
+esac