teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0470-sysv-generator-Provides-network-should-also-pull-net.patch

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