Skip to content

Commit

Permalink
test:aproach as discussed
Browse files Browse the repository at this point in the history
Signed-off-by: Sayan Paul <saypaul@redhat.com>
  • Loading branch information
say-paul committed Jun 30, 2023
1 parent e0d811a commit 3ebf39b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions dist/systemd/system/greenboot-rollback.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
Description=Greenboot rollback
DefaultDependencies=no
Before=systemd-update-done.service
Wants=local-fs.target
After=local-fs.target
ConditionNeedsUpdate=|/var
ConditionNeedsUpdate=|/etc
Conflicts=shutdown.target
Before=shutdown.target

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/libexec/greenboot/greenboot rollback
Restart=no

[Install]
WantedBy=multi-user.target
Restart=no
6 changes: 3 additions & 3 deletions dist/systemd/system/greenboot.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=greenboot Health Checks Runner
DefaultDependencies=no
Before=boot-complete.target greenboot-rollback.service
Before=boot-complete.target
OnFailureJobMode=fail
RequiresMountsFor=/boot
RequiresMountsFor=/etc
Expand All @@ -11,7 +11,7 @@ Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/libexec/greenboot/greenboot health-check
Restart=no
OnFailure=greenboot-rollback.service

[Install]
RequiredBy=boot-complete.target
WantedBy=multi-user.target
RequiredBy=boot-complete.target
2 changes: 1 addition & 1 deletion greenboot.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
%global __cargo_is_lib() false
%global forgeurl https://github.com/fedora-iot/greenboot

Version: 1.1.07
Version: 1.1.08

%forgemeta

Expand Down

0 comments on commit 3ebf39b

Please sign in to comment.