Build in a bit of overestimate to handle inode tables and stuff

This commit is contained in:
K. Lange 2018-09-21 20:32:17 +09:00
parent cc366b2491
commit 9dbfa0fe87

View File

@ -4,14 +4,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SPACE_REQ=$(du -sb "$DIR/../base" | cut -f 1) SPACE_REQ=$(du -sb "$DIR/../base" | cut -f 1)
let "SIZE = $SPACE_REQ / 4096 + 2048" let "SIZE = ($SPACE_REQ / 3500)"
echo $SIZE echo $SIZE
#if [ -e "$DIR/../base/usr/share/fonts" ]; then
# echo 20000
#elif [ -e "$DIR/../base/usr/python" ]; then
# echo 11000
#else
# echo 4096
#fi