Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/daemon/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -1936,7 +1936,8 @@ func (dn *Daemon) InplaceUpdateViaNewContainer(target string) error {
} else {
glog.Info("SELinux is not enforcing")
}
err = runCmdSync("systemd-run", "--unit", "machine-config-daemon-update-rpmostree-via-container", "--collect", "--wait", "--", "podman", "run", "--authfile", "/var/lib/kubelet/config.json", "--privileged", "--pid=host", "--net=host", "--rm", "-v", "/:/run/host", target, "rpm-ostree", "ex", "deploy-from-self", "/run/host")

err = runCmdSync("systemd-run", "--unit", "machine-config-daemon-update-rpmostree-via-container", "--collect", "--wait", "--", "podman", "run", "--env-file", "/etc/mco/proxy.env", "--authfile", "/var/lib/kubelet/config.json", "--privileged", "--pid=host", "--net=host", "--rm", "-v", "/:/run/host", target, "rpm-ostree", "ex", "deploy-from-self", "/run/host")
if err != nil {
return err
}
Expand Down
8 changes: 8 additions & 0 deletions templates/common/_base/units/rpm-ostreed-proxy.service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: rpm-ostreed.service
dropins:
- name: 10-mco-default-env.conf
contents: |
{{if .Proxy -}}
[Service]
EnvironmentFile=/etc/mco/proxy.env
{{end -}}