summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/init
diff options
context:
space:
mode:
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'