RDKOSS-961: Changes to support Hash Equivalence - #171
Conversation
There was a problem hiding this comment.
Pull request overview
Adds fakeroot execution and deterministic directory creation to metadata-generation tasks so the generated syslog-ng/logrotate configuration metadata doesn’t cause permission/ownership differences that can break sstate signature validation when Hash Equivalence is enabled.
Changes:
- Run
do_write_metadata_syslog_nganddo_write_metadata_logrotateunderfakeroot. - Use
bb.utils.mkdirhier()(andos.chown(..., 0, 0)) when creating the logrotate and syslog-ng metadata directories.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| classes/syslog-ng-config-gen.bbclass | Runs metadata generation under fakeroot and changes metadata directory creation to be more deterministic for hash equivalence. |
| classes/logrotate_config.bbclass | Runs logrotate metadata generation under fakeroot and uses deterministic directory creation/ownership for hash equivalence stability. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
CCI-Build-Verified -1 |
3 similar comments
|
CCI-Build-Verified -1 |
|
CCI-Build-Verified -1 |
|
CCI-Build-Verified -1 |
|
Also https://github.com/rdkcentral/meta-rdk-auxiliary/pull/171/changes this is built on top of latest meta-rdk-aux which includes OSS4.13 and OSS4.13 is NOT yet available in MW and IA develop branch since its integration is still on-going with VL-OSS by MW layer in temporary release branch Fakeroot changes needs to be tested well against full stack builds for STBs and TV Panels |
Reason for change : To avoid file permission change thus avoiding sstate sig validation error
Test procuedure : Build and verify with Hash equivalence enabled
Risk: Low