Skip to content

Commit 08787dd

Browse files
committed
Increase blocksize of dd imaging to 4 MiB for nearly 3x speedup
1 parent a857bed commit 08787dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot-switcher/META-INF/com/google/android/update-binary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ log "New boot target: '$TARGET_PRETTY'"
190190

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

195195
# <<< Script <<<
196196

0 commit comments

Comments
 (0)