chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kmod: automatically load a few kernel modules we need for normal operation before...
[elogind.git]
/
src
/
swap.c
diff --git
a/src/swap.c
b/src/swap.c
index bd49e1ea2bd36e5743d9e30ad58605f52b389abc..2c7e4924d6b4fab2d380b3b6816eed8df8ec5580 100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-115,7
+115,7
@@
static int swap_add_target_links(Swap *s) {
if ((r = manager_load_unit(s->meta.manager, SPECIAL_SWAP_TARGET, NULL, &tu)) < 0)
return r;
if ((r = manager_load_unit(s->meta.manager, SPECIAL_SWAP_TARGET, NULL, &tu)) < 0)
return r;
- if (!p->noauto && p->handle)
+ if (!p->noauto && p->handle
&& s->meta.manager->running_as != MANAGER_SESSION
)
if ((r = unit_add_dependency(tu, UNIT_WANTS, UNIT(s), true)) < 0)
return r;
if ((r = unit_add_dependency(tu, UNIT_WANTS, UNIT(s), true)) < 0)
return r;