slitaz-boot-scripts rev 405

init: tuneable nr_inodes (thanks az_ua)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 01 11:05:18 2015 +0200 (2015-08-01)
parents bf6a1b7f0dd0
children d6c818f35639
files init
line diff
     1.1 --- a/init	Sat Aug 01 10:55:30 2015 +0200
     1.2 +++ b/init	Sat Aug 01 11:05:18 2015 +0200
     1.3 @@ -224,10 +224,12 @@
     1.4  root=100
     1.5  got tmpram
     1.6  r=$root
     1.7 +inodes=90%
     1.8 +got rootfsinodes && inodes=$root
     1.9  root=90%
    1.10  got rootfssize
    1.11  [ $(busybox free|busybox awk '/Mem:/{print int(($4*100)/$3)}') -ge $r ] &&
    1.12 -	busybox mount -t tmpfs -o size=$root tmpfs /mnt &&
    1.13 +	busybox mount -t tmpfs -o size=$root,nr_inodes=$inodes tmpfs /mnt &&
    1.14  for i in $(ls -ar /); do
    1.15  	case "$i" in
    1.16  	.*|cdrom)	;;