Blame SOURCES/0001-disable-DefaultDependencies-to-fix-cycle-error.patch

d495a1
From 483cff9b89abc30f218f223bef98704639bd08e7 Mon Sep 17 00:00:00 2001
d495a1
From: Sayan Paul <saypaul@redhat.com>
d495a1
Date: Mon, 29 Aug 2022 22:33:06 +0530
d495a1
Subject: [PATCH] disable DefaultDependencies to fix cycle error
d495a1
d495a1
The fix relaxes the dependecies of task-runner and status service that
d495a1
otherwise causes issue in the service to start as well as missing
d495a1
logs
d495a1
signed off: saypaul@fedoraproject.org
d495a1
---
d495a1
 usr/lib/systemd/system/greenboot-grub2-set-success.service | 2 ++
d495a1
 usr/lib/systemd/system/greenboot-status.service            | 1 +
d495a1
 usr/lib/systemd/system/greenboot-task-runner.service       | 2 ++
d495a1
 3 files changed, 5 insertions(+)
d495a1
d495a1
diff --git a/usr/lib/systemd/system/greenboot-grub2-set-success.service b/usr/lib/systemd/system/greenboot-grub2-set-success.service
d495a1
index f5ef55a..87a7a61 100644
d495a1
--- a/usr/lib/systemd/system/greenboot-grub2-set-success.service
d495a1
+++ b/usr/lib/systemd/system/greenboot-grub2-set-success.service
d495a1
@@ -11,6 +11,8 @@
d495a1
 Description=Mark boot as successful in grubenv
d495a1
 Requires=boot-complete.target
d495a1
 After=boot-complete.target
d495a1
+Conflicts=redboot.target
d495a1
+DefaultDependencies=no
d495a1
 
d495a1
 [Service]
d495a1
 Type=oneshot
d495a1
diff --git a/usr/lib/systemd/system/greenboot-status.service b/usr/lib/systemd/system/greenboot-status.service
d495a1
index b12ec2f..f52c183 100644
d495a1
--- a/usr/lib/systemd/system/greenboot-status.service
d495a1
+++ b/usr/lib/systemd/system/greenboot-status.service
d495a1
@@ -12,6 +12,7 @@ Description=greenboot MotD Generator
d495a1
 After=greenboot-healthcheck.service
d495a1
 After=greenboot-task-runner.service
d495a1
 After=redboot-task-runner.service
d495a1
+DefaultDependencies=no
d495a1
 
d495a1
 [Service]
d495a1
 Type=oneshot
d495a1
diff --git a/usr/lib/systemd/system/greenboot-task-runner.service b/usr/lib/systemd/system/greenboot-task-runner.service
d495a1
index d1fc07f..bf5e94b 100644
d495a1
--- a/usr/lib/systemd/system/greenboot-task-runner.service
d495a1
+++ b/usr/lib/systemd/system/greenboot-task-runner.service
d495a1
@@ -11,6 +11,8 @@
d495a1
 Description=greenboot Success Scripts Runner
d495a1
 Requires=boot-complete.target
d495a1
 After=boot-complete.target
d495a1
+Conflicts=redboot.target
d495a1
+DefaultDependencies=no
d495a1
 
d495a1
 [Service]
d495a1
 Type=oneshot
d495a1
-- 
d495a1
2.37.2
d495a1