projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aeac5c
)
sysv-generator: Provides: $network should also pull network.target to transaction...
author
Lukáš Nykrýn
<lnykryn@redhat.com>
Thu, 30 Mar 2017 09:12:50 +0000
(11:12 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 30 Mar 2017 09:12:50 +0000
(11:12 +0200)
network.target should be pulled in to the transaction
by the unit that provides network services, but currently
for initscripts it only pulls in network-online.target.
src/sysv-generator/sysv-generator.c
patch
|
blob
|
history
diff --git
a/src/sysv-generator/sysv-generator.c
b/src/sysv-generator/sysv-generator.c
index
9fde9b1
..
9828078
100644
(file)
--- a/
src/sysv-generator/sysv-generator.c
+++ b/
src/sysv-generator/sysv-generator.c
@@
-389,6
+389,9
@@
static int handle_provides(SysvStub *s, unsigned line, const char *full_text, co
r = strv_extend(&s->before, SPECIAL_NETWORK_TARGET);
if (r < 0)
return log_oom();
+ r = strv_extend(&s->wants, SPECIAL_NETWORK_TARGET);
+ if (r < 0)
+ return log_oom();
}
break;