Clone partitions using head instead of dd
authorJacek Kryszyn <j.kryszyn@samsung.com>
Wed, 3 Apr 2024 14:16:11 +0000 (16:16 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 24 Apr 2024 01:50:02 +0000 (10:50 +0900)
commit826b0c40b3efb37a3c51d3a1fa2f80eecdb5dc23
tree1e0605e4510e260192efaf1d686f7e608f52ab15
parenta38b700627c099b505172ac77e7dbacfbd7ac53e
Clone partitions using head instead of dd

Instead of cloning partitions (whole disks) using dd,
head -c $part_size is used to copy only necessary bytes.
This can be much faster in case of partitions placed
on much bigger disks.

Change-Id: Ie15b9f543bac8ef351ef0a4ed4e9adfd148cf704
scripts/upgrade-support/upgrade-common.inc