]> Zhao Yanbai Git Server - minix.git/commitdiff
Andy's /home scheme.
authorBen Gras <ben@minix3.org>
Sun, 11 Sep 2005 20:00:56 +0000 (20:00 +0000)
committerBen Gras <ben@minix3.org>
Sun, 11 Sep 2005 20:00:56 +0000 (20:00 +0000)
commands/scripts/setup.sh

index 5b6089e43af201cc9f54825e426a6429fa488491..3176bad914544ba09edbd01b91105ae647d5e2ce 100755 (executable)
@@ -340,9 +340,10 @@ then       homesize=""
        while [ -z "$homesize" ]
        do
 
-               # 10% of partition is default
-               defmb="`expr $devsizemb / 10`"
                maxhome="`expr $devsizemb - $TOTALMB - 1`"
+               # 20% of what is left over after /home and /usr
+               # are taken.
+               defmb="`$maxhome / 5`"
                if [ $defmb -gt $maxhome ]
                then
                        defmb=$maxhome