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 <email@example.com>
Commit-Ready: LaMont Jones <firstname.lastname@example.org>
Legacy-Commit-Queue: Commit Bot <email@example.com>
Reviewed-by: Mike Frysinger <firstname.lastname@example.org>
1 file changed