Merge branch 'master' of https://github.com/zador-blood-stained/lib
This commit is contained in:
commit
de26c4ee20
@ -28,7 +28,7 @@
|
||||
# common options
|
||||
|
||||
REVISION="5.00" # all boards have same revision
|
||||
SDSIZE="4G" # SD image size in MB
|
||||
SDSIZE="4000" # 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
|
||||
|
||||
@ -38,10 +38,10 @@ BOOTEND=$(($ROOTSTART-1))
|
||||
# Create image file
|
||||
|
||||
if [ "$OUTPUT_DIALOG" = "yes" ]; then
|
||||
(pv -n -s $SDSIZE -S /dev/zero | dd status=none of=$DEST/cache/tmprootfs.raw) 2>&1 \
|
||||
| dialog --backtitle "$backtitle" --title "Creating blank image ($SDSIZE Mb), please wait ..." --gauge "" 5 70
|
||||
(dd if=/dev/zero bs=1M status=none count=$SDSIZE | pv -n -s $(( $SDSIZE * 1024 * 1024 )) | dd status=none of=$DEST/cache/tmprootfs.raw) 2>&1 \
|
||||
| dialog --backtitle "$backtitle" --title "Creating blank image ($SDSIZE), please wait ..." --gauge "" 5 70
|
||||
else
|
||||
pv -p -b -r -s $SDSIZE -S /dev/zero | dd status=none of=$DEST/cache/tmprootfs.raw
|
||||
dd if=/dev/zero bs=1M status=none count=$SDSIZE | pv -p -b -r -s $(( $SDSIZE * 1024 * 1024 )) | dd status=none of=$DEST/cache/tmprootfs.raw
|
||||
fi
|
||||
|
||||
# Find first available free device
|
||||
|
||||
Loading…
Reference in New Issue
Block a user