Size fix for pv
This commit is contained in:
parent
dec646bee9
commit
2b5f13fea0
@ -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
|
||||
|
||||
@ -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/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user