Skip to content

Commit

Permalink
mcd pull service: use cp instead of cat to copy MCD on host
Browse files Browse the repository at this point in the history
Recent podman in F35 is hanging during `cat`
  • Loading branch information
vrutkovs committed Jan 23, 2022
1 parent db690a2 commit cb76ecf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ contents: |
# See https://github.com/coreos/fedora-coreos-tracker/issues/354
ExecStart=/bin/sh -c '/bin/mkdir -p /run/bin && chcon --reference=/usr/bin /run/bin'
ExecStart=/bin/sh -c "while ! /usr/bin/podman pull --authfile=/var/lib/kubelet/config.json --quiet '{{ .Images.machineConfigOperator }}'; do sleep 1; done"
ExecStart=/bin/sh -c "/usr/bin/podman run --rm --quiet --net=host --entrypoint=cat '{{ .Images.machineConfigOperator }}' /usr/bin/machine-config-daemon > /run/bin/machine-config-daemon.tmp"
ExecStart=/bin/sh -c '/usr/bin/chmod a+x /run/bin/machine-config-daemon.tmp && mv /run/bin/machine-config-daemon.tmp /run/bin/machine-config-daemon'
ExecStart=/usr/bin/podman run --rm --quiet --net=host -v /run/bin:/host/run/bin:z --entrypoint=cp '{{ .Images.machineConfigOperator }}' /usr/bin/machine-config-daemon /host/run/bin
ExecStart=/bin/chcon system_u:object_r:bin_t:s0 /run/bin/machine-config-daemon
{{if .Proxy -}}
EnvironmentFile=/etc/mco/proxy.env
{{end -}}
Expand Down

0 comments on commit cb76ecf

Please sign in to comment.