More setup checks
This commit is contained in:
parent
95086b988b
commit
77ff4a2a75
1 changed files with 2 additions and 1 deletions
|
@ -437,7 +437,8 @@ echo " --- Step 6: Select the size of /home ----------------------------------"
|
||||||
homemb="$homesize MB"
|
homemb="$homesize MB"
|
||||||
homesize="`expr $homesize '*' 1024 '*' 2`"
|
homesize="`expr $homesize '*' 1024 '*' 2`"
|
||||||
else
|
else
|
||||||
homesize="`devsize /dev/$home` / 2 / 1024"
|
homepart="`devsize /dev/$home`"
|
||||||
|
homesize="`expr $homepart / 2 / 1024`"
|
||||||
if [ "$homesize" -gt "$maxhome" ]
|
if [ "$homesize" -gt "$maxhome" ]
|
||||||
then
|
then
|
||||||
echo "Sorry, but your /home is too big ($homesize MB) to leave enough"
|
echo "Sorry, but your /home is too big ($homesize MB) to leave enough"
|
||||||
|
|
Loading…
Reference in a new issue