Blob Blame History Raw
From 0429dff8063dd65549b676188ef6edea3870a419 Mon Sep 17 00:00:00 2001
From: Martin Kolman <mkolman@redhat.com>
Date: Fri, 6 Mar 2020 13:46:22 +0100
Subject: [PATCH 4/4] Make sure rhsm.service is running at Anaconda startup

Make sure rhsm.service is running at Anaconda startup
to avoid issues with DBus activation of rhsm.service
timing out on systems that are slow or under heavy load.

We need both Wants to specify the anaconda.target requires
the rhsm.service as well as After to make sure it is started
before all the Anaconda services that just have Wants but
not After.

If the rhsm.service fails to start or it cannot be added to
the transaction, anaconda will start anyway.

(cherry picked from commit 1cd68dd)

Resolves: rhbz#1948371
---
 data/systemd/anaconda.target | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/data/systemd/anaconda.target b/data/systemd/anaconda.target
index dab6966a28..12ee15e3a8 100644
--- a/data/systemd/anaconda.target
+++ b/data/systemd/anaconda.target
@@ -13,3 +13,5 @@ Wants=anaconda-sshd.service
 Wants=anaconda-pre.service
 Wants=anaconda-fips.service
 Wants=systemd-logind.service
+Wants=rhsm.service
+After=rhsm.service
-- 
2.26.3