From cba42371836d626a2a466b667cdb0479418d3a99 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 22 Aug 2010 11:37:24 +0200 Subject: Adapt tempfs size for VMware/Player to better utilize the RAM (see #744) ... --- .../init-hooks/80-after-plugins/adapt-tmpfs.sh | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh (limited to 'os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh') 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 -- cgit v1.2.3-55-g7522