mount /proc earlier in /sbin/mount_root

SVN-Revision: 4022
This commit is contained in:
Felix Fietkau 2006-06-20 15:40:14 +00:00
parent 3b33c72d46
commit e600bdecca
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#!/bin/sh
mount none /proc -t proc
size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
mount none /tmp -t tmpfs -o size=$size

View file

@ -1,6 +1,6 @@
#!/bin/sh
size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
mount none /proc -t proc
size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
mount none /tmp -t tmpfs -o size=$size,nosuid,nodev,mode=1777
mkdir -p /dev/pts
mount none /dev/pts -t devpts