Size fix for pv

This commit is contained in:
zador-blood-stained 2015-12-18 16:54:05 +03:00
parent dec646bee9
commit 2b5f13fea0
2 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@
# common options
REVISION="5.00" # all boards have same revision
SDSIZE="4000" # SD image size in MB
SDSIZE="4G" # SD image size in MB
TZDATA=`cat /etc/timezone` # Timezone for target is taken from host or defined here.
USEALLCORES="yes" # Use all CPU cores for compiling
SYSTEMD="no" # Enable or disable systemd on Jessie in debootstrap process

View File

@ -19,10 +19,10 @@ custom_debootstrap (){
#---------------------------------------------------------------------------------------------------------------------------------
# is boot partition to big?
if [ "$SDSIZE" -le "$(($OFFSET+$BOOTSIZE))" ]; then
display_alert "Image size too small." "$BOOTSIZE > $SDSIZE" "err"
exit
fi
#if [ "$SDSIZE" -le "$(($OFFSET+$BOOTSIZE))" ]; then
# display_alert "Image size too small." "$BOOTSIZE > $SDSIZE" "err"
# exit
#fi
# create needed directories and mount image to next free loop device
rm -rf $DEST/cache/sdcard/