Skip to content

Create a type to represent metadata.img creation #1282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Databean
Copy link
Member

There is currently an implicit ordering that InitializeMetadataImage must be run before BuildCompositeDiskIfNecessary which is not obvious to a reader.

Hiding the file path behind a type will make it possible to enforce that the file is created before other code can access the type.

Databean added 3 commits June 17, 2025 21:11
This is only called by assemble_cvd.

Bug: b/425800170
There is currently an implicit ordering that [InitializeMiscImage](https://github.com/google/android-cuttlefish/blob/f6d691bf5cb8e337462929351ce45386af83424c/base/cvd/cuttlefish/host/libs/config/data_image.cpp#L251) must be run before [`BuildCompositeDiskIfNecessary`](https://github.com/google/android-cuttlefish/blob/05001207984a8a91e4a860fb7ac4b6dfcffe71a8/base/cvd/cuttlefish/host/commands/assemble_cvd/disk_flags.cc#L755) which is not obvious to a reader.

Hiding the file path behind a type will make it possible to enforce that the file is created before other code can access the type.

Bug: b/425800170
This path should be accessed through the MiscImage type.

Bug: b/425800170
@Databean Databean requested review from cjreynol and dimorinny and removed request for cjreynol June 18, 2025 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant