Use extracted partitions for x86_64
extract bios, root, and efi partitions from x86_64 image, and include those in tarball instead of whole disk image. also change the corresponding vm_config.json for the new partition layout.
Bug: 358426674
Change-Id: Ide24b52a23350330f61776642f99c3d3c2c60dd9
Flag: EXEMPT desktop only
Test: sudo ./build.sh -a x86_64
Test: deploy images.tar.gz to brya DUT
Test: Launch terminal app
diff --git a/build/debian/vm_config.json.x86_64 b/build/debian/vm_config.json.x86_64
index d338080..4d31105 100644
--- a/build/debian/vm_config.json.x86_64
+++ b/build/debian/vm_config.json.x86_64
@@ -2,8 +2,26 @@
"name": "debian",
"disks": [
{
- "image": "$PAYLOAD_DIR/image.raw",
- "partitions": [],
+ "partitions": [
+ {
+ "label": "ROOT",
+ "path": "$PAYLOAD_DIR/root_part",
+ "writable": true,
+ "guid": "{root_part_guid}"
+ },
+ {
+ "label": "BIOS",
+ "path": "$PAYLOAD_DIR/bios_part",
+ "writable": true,
+ "guid": "{root_part_guid}"
+ },
+ {
+ "label": "EFI",
+ "path": "$PAYLOAD_DIR/efi_part",
+ "writable": false,
+ "guid": "{efi_part_guid}"
+ }
+ ],
"writable": true
}
],