summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2010-08-22 11:38:23 +0200
committerDirk von Suchodoletz2010-08-22 11:38:23 +0200
commitd0d6d738c1d169d94373bf539f66fed4669dfd2e (patch)
treece62c3e551af9dc5b1c3a195f2dee5a8cf7df4dc /initramfs/stage3-stuff/init
parentAdapt tempfs size for VMware/Player to better utilize the RAM (see #744) (diff)
downloadcore-d0d6d738c1d169d94373bf539f66fed4669dfd2e.tar.gz
core-d0d6d738c1d169d94373bf539f66fed4669dfd2e.tar.xz
core-d0d6d738c1d169d94373bf539f66fed4669dfd2e.zip
Adapt the tempfs sizes ...
Diffstat (limited to 'initramfs/stage3-stuff/init')
-rwxr-xr-xinitramfs/stage3-stuff/init5
1 files changed, 2 insertions, 3 deletions
diff --git a/initramfs/stage3-stuff/init b/initramfs/stage3-stuff/init
index 50bd604c..1c34cf78 100755
--- a/initramfs/stage3-stuff/init
+++ b/initramfs/stage3-stuff/init
@@ -573,7 +573,7 @@ if [ -n "${bldmod}" ] ; then
RDEV=/dev/dnbd0
if [ -z $nodnbdcache ] ; then # variable not really used yet
mkdir /dnbd
- mount -n -o 'size=10%' -t tmpfs tmpfs /dnbd
+ mount -n -o 'size=20%' -t tmpfs tmpfs /dnbd
( cat /dev/zero > /dnbd/cache 2>/dev/null || echo "ok" >/tmp/cache ) &
clientopt="-c /dnbd/cache"
waitfor /tmp/cache 10000
@@ -725,7 +725,6 @@ else
unset aufs unionfs
fi
-
# runtimer
[ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 20 ] && \
echo "** Filesystem setup started at $(sysup)"
@@ -756,7 +755,7 @@ elif [ -z "${cowloop}" ] ; then
# fire up hardware disk/tmp setup first
hwautocfg disk &
echo "Using bind mounts to ramdisk for rw access"
- mount -n -t tmpfs -o size=${tmpfssize} ramfs ${rwdir}
+ mount -n -t tmpfs -o size=75% ramfs ${rwdir}
for path in ${D_BINDMPTS} ; do
mkdir -p ${rwdir}/${path} >/dev/null 2>&1
mount -n --bind ${rwdir}/${path} /mnt/${path}