ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
a19bc6
From 1649dac4656e8056e5fe5fa99e5753257efe1a42 Mon Sep 17 00:00:00 2001
a19bc6
From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Nykr=C3=BDn?= <lnykryn@redhat.com>
a19bc6
Date: Thu, 30 Mar 2017 11:12:50 +0200
a19bc6
Subject: [PATCH] sysv-generator: Provides: $network should also pull
a19bc6
 network.target to transaction (#5652)
a19bc6
a19bc6
network.target should be pulled in to the transaction
a19bc6
by the unit that provides network services, but currently
a19bc6
for initscripts it only pulls in network-online.target.
a19bc6
a19bc6
Cherry-picked from: bd9ad4ff5bf2252f46ccf0cb91b3ed16def1c1a4
a19bc6
Resolves: #1438749
a19bc6
---
a19bc6
 src/sysv-generator/sysv-generator.c | 3 +++
a19bc6
 1 file changed, 3 insertions(+)
a19bc6
a19bc6
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
181b3f
index 7e0e7fc28..fe6fae151 100644
a19bc6
--- a/src/sysv-generator/sysv-generator.c
a19bc6
+++ b/src/sysv-generator/sysv-generator.c
a19bc6
@@ -500,6 +500,9 @@ static int load_sysv(SysvStub *s) {
a19bc6
                                                         r = strv_extend(&s->before, SPECIAL_NETWORK_TARGET);
a19bc6
                                                         if (r < 0)
a19bc6
                                                                 return log_oom();
a19bc6
+                                                        r = strv_extend(&s->wants, SPECIAL_NETWORK_TARGET);
a19bc6
+                                                        if (r < 0)
a19bc6
+                                                                return log_oom();
a19bc6
                                                 }
a19bc6
                                         }
a19bc6