Merge AndroidEfiLoaderCompositeDiskConfig with AndroidCompositeDiskConfig#2254
Merge AndroidEfiLoaderCompositeDiskConfig with AndroidCompositeDiskConfig#2254Databean wants to merge 4 commits intogoogle:mainfrom
Conversation
cjreynol
left a comment
There was a problem hiding this comment.
I saw you came up with a test case, but consider checking with Dmitrii or Ram if there are any other cases to check? I am just ignorant to how disruptive a breakage here might be and am defaulting towards greater caution.
base/cvd/cuttlefish/host/commands/assemble_cvd/disk/efi_loader.h
Outdated
Show resolved
Hide resolved
|
FYI @dimorinny |
|
Looks like this "happens to work" in an unintuitive way. There's a comment in the code from before this CL saying
As written here, the partitions are put in a |
cjreynol
left a comment
There was a problem hiding this comment.
Based on the latest comment about this not necessarily working except in certain cases.
34fd5ed to
18da0b1
Compare
|
The "insert at the beginning" logic is now more explicit. |
base/cvd/cuttlefish/host/commands/assemble_cvd/disk/android_composite_disk_config.cc
Outdated
Show resolved
Hide resolved
18da0b1 to
b85cf89
Compare
Bug: b/491903055
Bug: b/491903055
This replaces using a hardcoded number which places constraints on the partition table generation code. Bug: b/491903055
The ImageFile mechanism is already dynamic in which partitions are added, and the only contribution of AndroidEfiLoaderCompositeDisk was to add another partition. Bug: b/491903055
b85cf89 to
332ca9f
Compare
|
Thanks Cody, it looks good to me! |
We now have the
ImageFilemechanism where partitions can be supplied dynamically. Since the main contribution ofAndroidEfiLoaderCompositeDiskConfig, this can go through theImageFilelogic instead.Tested with a build fetched using
--android_efi_loader_build=aosp_uefi-gbl-mainline/gbl_efi_dist_and_test.Bug: b/491903055