mount /proc earlier in /sbin/mount_root

SVN-Revision: 4022
lede-17.01
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 #!/bin/sh
mount none /proc -t proc
size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo) size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
mount none /tmp -t tmpfs -o size=$size mount none /tmp -t tmpfs -o size=$size

View File

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