Commit 494140f
feat: trigger rollback at update-time via ostree-finalize-staged
Change greenboot-set-rollback-trigger.service to run when bootc update
or rpm-ostree upgrade stages a deployment, instead of at next boot.
The service is now RequiredBy=ostree-finalize-staged.service and ordered
Before= it, matching the pattern used by the original bash greenboot's
greenboot-grub2-set-counter.service. This means the rollback trigger
and fallback grub variables are set immediately when an update is
staged, not deferred to the next boot.
Removed: ConditionNeedsUpdate, boot-time ordering (sysinit.target,
systemd-update-done.service), WantedBy boot targets.
Added: ConditionPathExists=/run/ostree-booted, RequiresMountsFor=/boot,
PrivateMounts=yes, RemainAfterExit=yes.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 24d834f commit 494140f
1 file changed
Lines changed: 6 additions & 8 deletions
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
13 | | - | |
| 10 | + | |
14 | 11 | | |
| 12 | + | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
| 15 | + | |
0 commit comments