Skip to content
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

ImageCustomizer: Refresh partitions after veritysetup so that hash partition's UUID is accurate #11247

Open
wants to merge 1 commit into
base: 3.0-dev
Choose a base branch
from

Conversation

fintelia
Copy link
Contributor

Summary

This change corrects the value set for the systemd.verity_root_hash= kernel cmdline parameter when hashDeviceMountIdType in the configuration is set to uuid.
 
In particular, the veritysetup command earlier in the function generates the UUID for the verity hash partition. But since the diskPartitions array is queried before that call, the partition would be marked as having an empty filesystem UUID.

An alternative would be to edit only the specific partition's UUID in the diskPartitions array, either by passing a manually generated UUID to veritysetup (via the --uuid=UUID flag) or by querying the chosen UUID after veritysetup had run.

Does this affect the toolchain?

NO

Test Methodology
  • local build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants