From: Ben Gras Date: Tue, 13 Sep 2005 13:39:42 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v3.1.0~100 X-Git-Url: http://zhaoyanbai.com/repos/dnssec-importkey.html?a=commitdiff_plain;h=686b998c87337129cdd4c9b352fe1ba2cd796745;p=minix.git *** empty log message *** --- diff --git a/commands/scripts/setup.sh b/commands/scripts/setup.sh index 76f9fb10b..014e20c81 100755 --- a/commands/scripts/setup.sh +++ b/commands/scripts/setup.sh @@ -398,15 +398,7 @@ nohome="0" homesize="" if [ ! "$auto" = r ] -then homesize="`devsize /dev/$home` / 2 / 1024" - if [ "$homesize" -gt "$maxhome" ] - then - echo "Sorry, but your /home is too big ($homesize MB) to leave enough" - echo "space on the rest of the partition ($devsizemb MB) for your" - echo "selected installation size ($TOTALMB MB)." - exit 1 - fi -else +then echo "" echo " --- Step 6: Select the size of /home ----------------------------------" while [ -z "$homesize" ] @@ -444,6 +436,14 @@ echo " --- Step 6: Select the size of /home ----------------------------------" homemb="$homesize MB" homesize="`expr $homesize '*' 1024 '*' 2`" else + homesize="`devsize /dev/$home` / 2 / 1024" + if [ "$homesize" -gt "$maxhome" ] + then + echo "Sorry, but your /home is too big ($homesize MB) to leave enough" + echo "space on the rest of the partition ($devsizemb MB) for your" + echo "selected installation size ($TOTALMB MB)." + exit 1 + fi # Homesize unchanged (reinstall) homesize=exist homemb="current size"