add conv=fsync to dd command

This commit is contained in:
Jozef Mlich 2020-10-13 18:35:28 +02:00
parent 6c3dbc09f1
commit 19779b2235
1 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ echo "Some commands require root permissions, you might be asked to enter your s
#create loop file for raw.img
if [ $DEVICE_NODE == "raw" ]; then
sudo dd if=/dev/zero of=sdcard.img bs=1 count=0 seek=4G
sudo dd if=/dev/zero of=sdcard.img bs=1 count=0 seek=4G conv=fsync
DEVICE_NODE="./sdcard.img"
fi
@ -212,10 +212,10 @@ sudo mkfs.ext4 -F -L data $DATAPART # 2nd partition = data
# Flashing u-boot
echo -e "\e[1mFlashing U-boot...\e[0m"
if [ "$CUSTOM" != "" ]; then
sudo dd if="${CUSTOM}/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1
sudo dd if="${CUSTOM}/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1 conv=fsync
else
unzip "${UBOOT_JOB}.zip"
sudo dd if="./u-boot-bootloader/u-boot/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1
sudo dd if="./u-boot-bootloader/u-boot/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1 conv=fsync
fi
sync