While debugging another problem on F25 Atomic Host, I was trying to find a way to disable the 'oci-systemd-hook'. It appears the only way to do so is to remove the hook from '/usr/libexec/oci/hooks.d/' However, on an Atomic Host the /usr filesystem is read-only and can't be modified. I think we need a way to disable this hook (and any others) on an Atomic Host.
Ok I guess we can do this similarly to what we did for oci-register-machine.
Of course handling Yaml inside of oci-systemd-hook will be more difficult since it is written in C.
PR created to address this issue. https://github.com/projectatomic/oci-systemd-hook/pull/61
FWIW, here's output from an Atomic host with the above patch in place. [root@localhost tmp]# docker run --env -it --rm centos /bin/bash [root@localhost tmp]# docker run --env oci-systemd-hook=disabled -it --rm centos /bin/bash [root@8bc53da3aabc /]#
Tom, you want to disable oci-systemd-hook one at a time, versus disabling it totally like we do with oci-register-machine?
Unless the '--env oci-systemd-hook=disabled' in included in the docker run call, oci-systemd-hook is in play. Using it does not disable oci-systemd-hook for subsequent docker run calls on the system unless they too include that. Holler if that's incorrect behaviour.
This PR has just been merged: https://github.com/projectatomic/oci-systemd-hook/pull/61 It adds the new oci-systemd-hook environment variable to disable oci-systemd-hook for the current docker run invocation. It does not disable oci-systemd-hook permanently on the system. An example invocation would be: docker run --env oci-systemd-hook=disabled -it --rm centos /bin/bash
And FWIW, this PR https://github.com/projectatomic/oci-systemd-hook/pull/68 is in progress to update the README.md.
oci-systemd-hook-0.1.8-1.gitd899a8e.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-40b2825920
oci-systemd-hook-0.1.8-1.gitd899a8e.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c653be291e
oci-systemd-hook-0.1.11-1.git1ac958a.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-1a87e380ed
oci-systemd-hook-0.1.11-1.git1ac958a.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6d0d8d5289
oci-systemd-hook-0.1.8-1.gitd899a8e.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-40b2825920
oci-systemd-hook-0.1.8-1.gitd899a8e.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c653be291e
oci-systemd-hook-0.1.11-1.git1ac958a.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6d0d8d5289
oci-systemd-hook-0.1.11-1.git1ac958a.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-1a87e380ed
oci-systemd-hook-0.1.11-1.git1ac958a.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
oci-systemd-hook-0.1.11-1.git1ac958a.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.