zengxyz / rpms / anaconda

Forked from rpms/anaconda 4 months ago
Clone
Radek Vykydal 387710
From 0429dff8063dd65549b676188ef6edea3870a419 Mon Sep 17 00:00:00 2001
Radek Vykydal 387710
From: Martin Kolman <mkolman@redhat.com>
Radek Vykydal 387710
Date: Fri, 6 Mar 2020 13:46:22 +0100
Radek Vykydal 387710
Subject: [PATCH 4/4] Make sure rhsm.service is running at Anaconda startup
Radek Vykydal 387710
Radek Vykydal 387710
Make sure rhsm.service is running at Anaconda startup
Radek Vykydal 387710
to avoid issues with DBus activation of rhsm.service
Radek Vykydal 387710
timing out on systems that are slow or under heavy load.
Radek Vykydal 387710
Radek Vykydal 387710
We need both Wants to specify the anaconda.target requires
Radek Vykydal 387710
the rhsm.service as well as After to make sure it is started
Radek Vykydal 387710
before all the Anaconda services that just have Wants but
Radek Vykydal 387710
not After.
Radek Vykydal 387710
Radek Vykydal 387710
If the rhsm.service fails to start or it cannot be added to
Radek Vykydal 387710
the transaction, anaconda will start anyway.
Radek Vykydal 387710
Radek Vykydal 387710
(cherry picked from commit 1cd68dd)
Radek Vykydal 387710
Radek Vykydal 387710
Resolves: rhbz#1948371
Radek Vykydal 387710
---
Radek Vykydal 387710
 data/systemd/anaconda.target | 2 ++
Radek Vykydal 387710
 1 file changed, 2 insertions(+)
Radek Vykydal 387710
Radek Vykydal 387710
diff --git a/data/systemd/anaconda.target b/data/systemd/anaconda.target
Radek Vykydal 387710
index dab6966a28..12ee15e3a8 100644
Radek Vykydal 387710
--- a/data/systemd/anaconda.target
Radek Vykydal 387710
+++ b/data/systemd/anaconda.target
Radek Vykydal 387710
@@ -13,3 +13,5 @@ Wants=anaconda-sshd.service
Radek Vykydal 387710
 Wants=anaconda-pre.service
Radek Vykydal 387710
 Wants=anaconda-fips.service
Radek Vykydal 387710
 Wants=systemd-logind.service
Radek Vykydal 387710
+Wants=rhsm.service
Radek Vykydal 387710
+After=rhsm.service
Radek Vykydal 387710
-- 
Radek Vykydal 387710
2.26.3
Radek Vykydal 387710