diff options
author | Sebastian Schmelzer | 2010-09-02 17:50:49 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2010-09-02 17:50:49 +0200 |
commit | 416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5 (patch) | |
tree | 4715f7d742fec50931017f38fe6ff0a89d4ceccc /src/os-plugins/plugins/vmware/init-hooks/80-after-plugins/adapt-tmpfs.sh | |
parent | Fix for the problem reported on the list (sed filter forgotten for the (diff) | |
download | core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.tar.gz core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.tar.xz core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.zip |
change dir structure
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.sh | 24 |
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 |