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
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ install: build
install -D -m 644 -t ${DESTDIR}/usr/share/polkit-1/rules.d dist/polkit-1/rules.d/*.rules
install -D -m 644 -t ${DESTDIR}/usr/share/polkit-1/actions dist/polkit-1/actions/*.policy
install -D -m 644 -t ${DESTDIR}/usr/share/dbus-1/system.d dist/dbus-1/system.d/*.conf
install -D -m 644 -t ${DESTDIR}/usr/bin dist/bin/*

.PHONY: check
check:
Expand Down
21 changes: 21 additions & 0 deletions dist/bin/zincati-update-now
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
set -euo pipefail

echo "WARN: This command is experimental and subject to change." >&2

# this should exist already, but in case
mkdir -p /run/zincati/config.d
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I am very much out of my depth here but I have to ask in what circumstance would this not exist but the services exist?
would that be an indication of other issues that might want to halt the update attempt ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doubt it, I think this only means that somehow the tmpfiles.d fragment didn't run

cat > /run/zincati/config.d/99-update-now.toml << EOF
[identity]
rollout_wariness = 0.0
[updates]
strategy = "immediate"
EOF

touch /run/zincati/override-interactive-check

systemctl daemon-reload
systemctl restart zincati

echo "INFO: Streaming Zincati and RPM-OSTree logs..." >&2
exec journalctl -f -u zincati -u rpm-ostreed