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

[backport][release_2.2] Fix image build to override root homedir in /etc/passwd (#1027) #1062

Merged
merged 1 commit into from May 5, 2022

Conversation

nitzmahone
Copy link
Member

  • override root homedir in /etc/passwd

  • using only HOME envvar to override homedir causes mismatches with anything that asks for it a different way (eg, echo ~root)

  • kicking the can down the road on "why are we overriding /root as root's homedir anyway?"

  • more dynamic homedir handling

  • just make everybody's home /home/runner

  • restore ENV HOME override for builds

  • comment wording

(cherry picked from commit c181daa)

* override root homedir in /etc/passwd

* using only `HOME` envvar to override homedir causes mismatches with anything that asks for it a different way (eg, `echo ~root`)
* kicking the can down the road on "why are we overriding /root as root's homedir anyway?"

* more dynamic homedir handling

* just make everybody's home /home/runner

* restore ENV HOME override for builds

* comment wording

(cherry picked from commit c181daa)
@nitzmahone nitzmahone requested a review from a team as a code owner May 5, 2022 04:53
@github-actions github-actions bot added the needs_triage New item that needs to be triaged label May 5, 2022
@nitzmahone nitzmahone merged commit 927109f into ansible:release_2.2 May 5, 2022
@sivel sivel removed the needs_triage New item that needs to be triaged label May 16, 2023
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.

None yet

2 participants