Skip to content

env-config-container: Fix build by adding depends on niacctbase#1021

Closed
chaitu236 wants to merge 1 commit into
ni:nilrt/master/nextfrom
chaitu236:dev/cvadrevu/fix_env-config-container
Closed

env-config-container: Fix build by adding depends on niacctbase#1021
chaitu236 wants to merge 1 commit into
ni:nilrt/master/nextfrom
chaitu236:dev/cvadrevu/fix_env-config-container

Conversation

@chaitu236

@chaitu236 chaitu236 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

env-config-container fails to build with error sbin/fw_printenv.wrapper is owned by uid 0, gid 500, which doesn't match any user/group on target. This may be due to host contamination

This change adds depends on niacctbase which provides gid 500.

Justification

WI: AB#3910152

Testing

  • @usercw88 tested that core-feeds, bsi, safemode build.

Procedure

Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@emerson.com>
@chaitu236 chaitu236 marked this pull request as ready for review June 11, 2026 20:47
@chaitu236 chaitu236 requested review from a team and Copilot June 11, 2026 20:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a Yocto build failure in env-config-container caused by file ownership validation (host-user-contaminated) by ensuring the recipe’s sysroot includes the ni group definition via niacctbase.

Changes:

  • Add DEPENDS += "niacctbase" to env-config-container.bb so the target sysroot has the required passwd/group entries during packaging.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


DEPENDS += "niacctbase"

RDEPENDS:${PN} = "bash"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change requires more extensive testing for which we don't have time. Abandoning this PR in favor of reverting the problematic commit in #1022.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chaitu236 chaitu236 closed this Jun 12, 2026
@chaitu236 chaitu236 deleted the dev/cvadrevu/fix_env-config-container branch June 12, 2026 13:47
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.

2 participants