Skip to content

Commit

Permalink
Increase blocksize of dd imaging to 4 MiB for nearly 3x speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
JamiKettunen committed Apr 24, 2020
1 parent a857bed commit 08787dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot-switcher/META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ log "New boot target: '$TARGET_PRETTY'"

# Start
log "Writing $TARGET-boot image..."
dd if=$ROOT/boot/$TARGET-boot.img of=/dev/block/bootdevice/by-name/boot || abort 5 "Writing new boot image failed."
dd if=$ROOT/boot/$TARGET-boot.img of=/dev/block/bootdevice/by-name/boot bs=4m || abort 5 "Writing new boot image failed."

# <<< Script <<<

Expand Down

0 comments on commit 08787dd

Please sign in to comment.