summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/init
diff options
context:
space:
mode:
authorMichael Janczyk2009-02-27 20:23:44 +0100
committerMichael Janczyk2009-02-27 20:23:44 +0100
commit572b4f4fcbc7477c1402020fd8a3682d601316b9 (patch)
tree67407495c39a4019a681a1f7306c5e6c604c8aed /initramfs/stage3-stuff/init
parentxserver plugin: (diff)
downloadcore-572b4f4fcbc7477c1402020fd8a3682d601316b9.tar.gz
core-572b4f4fcbc7477c1402020fd8a3682d601316b9.tar.xz
core-572b4f4fcbc7477c1402020fd8a3682d601316b9.zip
modified fmpfssize:
75% of totalmem - 128MB New Messages, since old one is confusing (people think sth is wrong with postinit.local) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2660 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/init')
-rwxr-xr-xinitramfs/stage3-stuff/init11
1 files changed, 7 insertions, 4 deletions
diff --git a/initramfs/stage3-stuff/init b/initramfs/stage3-stuff/init
index 6277fd81..64122b1b 100755
--- a/initramfs/stage3-stuff/init
+++ b/initramfs/stage3-stuff/init
@@ -92,7 +92,8 @@ fi
# set defaults for some important variables, might be overwritten via
# kernel commandline
-tmpfssize="50%"
+tmpfssize=$(expr $(grep -i "memtotal" /proc/meminfo | awk '{print $2}') \
+ \* 1024 / 100 \* 75 - 128000000) # in byte
cowsize="50%"
rwdir=/dev/shm
nfsro="nfs"
@@ -896,11 +897,13 @@ postinit
chmod u+x /bin/postinit.local; }
[ -f /bin/postinit.local ] && {
[ $DEBUGLEVEL -gt 0 ] && \
- echo "Running postinit.local - if boot stops here, check the script!"
- /bin/postinit.local; }
+ echo "Running /bin/postinit.local ..."
+ /bin/postinit.local
+ echo "done"; }
# start a debug shell in higher debug levels
-[ $DEBUGLEVEL -gt 2 -a $DEBUGLEVEL != 8 ] && /bin/ash
+[ $DEBUGLEVEL -gt 2 -a $DEBUGLEVEL != 8 ] \
+ && echo "Debuglevel > 2: starting debug-shell, exit with ctrl+d" && /bin/ash
runinithook '90-postinit-done'