Commit b195593d authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Commit Bot

Crostini: use automatic disk image type

This lets concierge choose the appropriate disk image type for the
kernel and filesystem.

Bug: 893380
Signed-off-by: default avatarDaniel Verkamp <dverkamp@chromium.org>
Change-Id: I2b8d9ae847e5d2a87949a2e7b9ef965d038e11f2
Reviewed-on: https://chromium-review.googlesource.com/c/1312568Reviewed-by: default avatarNicholas Verne <nverne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604953}
parent 358a1161
......@@ -670,7 +670,7 @@ void CrostiniManager::CreateDiskImage(
request.set_cryptohome_id(CryptohomeIdForProfile(profile_));
request.set_disk_path(std::move(disk_path_string));
// The type of disk image to be created.
request.set_image_type(vm_tools::concierge::DISK_IMAGE_QCOW2);
request.set_image_type(vm_tools::concierge::DISK_IMAGE_AUTO);
if (storage_location != vm_tools::concierge::STORAGE_CRYPTOHOME_ROOT &&
storage_location != vm_tools::concierge::STORAGE_CRYPTOHOME_DOWNLOADS) {
......@@ -776,7 +776,7 @@ void CrostiniManager::StartTerminaVm(std::string name,
vm_tools::concierge::DiskImage* disk_image = request.add_disks();
disk_image->set_path(std::move(disk_path_string));
disk_image->set_image_type(vm_tools::concierge::DISK_IMAGE_QCOW2);
disk_image->set_image_type(vm_tools::concierge::DISK_IMAGE_AUTO);
disk_image->set_writable(true);
disk_image->set_do_mount(false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment