Compare commits
2 Commits
992622c428
...
cdc6c95737
Author | SHA1 | Date |
---|---|---|
Balint Reczey | cdc6c95737 | |
Vito Caputo | d4a3494e65 |
|
@ -207,7 +207,7 @@ static int swap_add_device_dependencies(Swap *s) {
|
|||
return 0;
|
||||
|
||||
p = swap_get_parameters(s);
|
||||
if (!p)
|
||||
if (!p || !p->what)
|
||||
return 0;
|
||||
|
||||
mask = s->from_proc_swaps ? UNIT_DEPENDENCY_PROC_SWAP : UNIT_DEPENDENCY_FILE;
|
||||
|
|
|
@ -12,6 +12,7 @@ Description=Kernel Trace File System
|
|||
Documentation=https://www.kernel.org/doc/Documentation/trace/ftrace.txt
|
||||
Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
|
||||
DefaultDependencies=no
|
||||
ConditionVirtualization=!lxc
|
||||
ConditionPathExists=/sys/kernel/tracing
|
||||
ConditionCapability=CAP_SYS_RAWIO
|
||||
Before=sysinit.target
|
||||
|
|
Loading…
Reference in New Issue