Ticket #3340: name_fs.patch

File name_fs.patch, 994 bytes (added by matteo, 8 years ago)
  • package/base-files/files/etc/preinit

     
    1717        ash --login 
    1818} 
    1919 
    20 mount none /proc -t proc 
    21 mount none /sys  -t sysfs 
     20mount proc /proc -t proc 
     21mount sysfs /sys  -t sysfs 
    2222 
    2323size=$(awk '/MemTotal:/ {l=5242880;mt=($2*1024);print((s=mt/2)<l)?mt-l:s}' /proc/meminfo) 
    24 mount none /tmp -t tmpfs -o size=$size,nosuid,nodev,mode=1777 
     24mount tmpfs /tmp -t tmpfs -o size=$size,nosuid,nodev,mode=1777 
    2525 
    2626if grep devfs /proc/filesystems > /dev/null; then 
    27         mount none /dev -t devfs 
     27        mount devfs /dev -t devfs 
    2828        M0=/dev/pty/m0 
    2929        M1=/dev/pty/m1 
    3030        HOTPLUG=/sbin/hotplug-call 
     
    4040fi 
    4141 
    4242mkdir -p /dev/pts /dev/shm 
    43 mount none /dev/pts -t devpts 
     43mount devpts /dev/pts -t devpts 
    4444 
    4545# the shell really doesn't like having stdin/out closed 
    4646# that's why we use /dev/pty/m0 and m1 as replacement