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 51871) cmdmod: add 'binds' parameter in run_chroot #54996

Merged
merged 2 commits into from
Dec 4, 2019

Conversation

aplanas
Copy link
Contributor

@aplanas aplanas commented Oct 14, 2019

What does this PR do?

Sometimes we want to export directories from the system to the
chroot environment. For example, some services will require the
presence of /run inside the chroot, to request some PID information.

This patch add a new 'binds' parameter in the run_chroot function,
that will export those system directories into the chroot.

Tests written?

Yes, added in this PR

(backport #51871, already merged in develop)

@waynew waynew self-assigned this Nov 5, 2019
@waynew
Copy link
Contributor

waynew commented Nov 6, 2019

@aplanas thanks for adding the tests and getting the backport. Looks like this is out of date with master, would you mind rebasing?

I know at least one of these failures is a flaky test that we've been working on, that shouldn't block the PR from merging. Hopefully with the rebase we should see that test pass.

@aplanas aplanas requested a review from a team as a code owner November 7, 2019 09:13
@ghost ghost requested a review from dwoz November 7, 2019 09:13
Sometimes we want to export directories from the system to the
chroot environment.  For example, some services will require the
presence of /run inside the chroot, to request some PID information.

This patch add a new 'binds' parameter in the run_chroot function,
that will export those system directories into the chroot.

(cherry picked from commit b6a4394)
@dwoz dwoz merged commit 01f84ed into saltstack:master Dec 4, 2019
@aplanas aplanas deleted the backport_51871 branch December 4, 2019 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants