-
Notifications
You must be signed in to change notification settings - Fork 12
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
Allow systemctl run in chroot()ed environment. #28
Allow systemctl run in chroot()ed environment. #28
Conversation
Some code in the tuned daemon relies on running systemctl commands. Export SYSTEMD_IGNORE_CHROOT=1 so that it is visible to the systemctl commands inside the tuned daemon. See redhat-performance/tuned#197 for detail.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jmencak, sjug The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
How this will affect the PR i wrote? I am still seeing issues, exactly the same ones. That is from a fedora container with podman: |
I'm testing only on OCP:
|
There is a difference between executing that call with crictl/podman (shows error), and executing it with oc rsh (works). If i enter into the container with crictl exec , i get: And if i execute it with oc rsh, it works. |
Hmm, still have no reproducer, sorry:
Saying that, I tested on OCP 4.2 with RHCOS8 on the node and RHEL7 as the container image. |
Some code in the tuned daemon relies on running systemctl commands. Export
SYSTEMD_IGNORE_CHROOT=1
so that it is visible to the systemctl commands inside the tuned daemon.See redhat-performance/tuned#197 for detail.