image_to_vm.sh: use dd conv=sparse to copy partitions.
After writing lots of data to the output block device, the kernel will
sometimes hang in close. See also http://b/135292499.
When the destination is not a regular file, cp ignores --sparse. Since
the copies are to partitions in a loopback block device that was freshly
created, there is no need to write the zero blocks to it.
Tested-by: LaMont Jones <firstname.lastname@example.org>
Commit-Ready: LaMont Jones <email@example.com>
Legacy-Commit-Queue: Commit Bot <firstname.lastname@example.org>
Reviewed-by: Mike Frysinger <email@example.com>
1 file changed