diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-06-17 03:23:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-06-17 03:26:40 +0200 |
commit | c47fc1f025dd4b4c22d4650385748dc8486df0b6 (patch) | |
tree | 820668266222c28f922ac2148971b3ad0bf987bd /src/core/main.c | |
parent | a1259e0a1481b3621ebcc285b76a2ea43ca223c8 (diff) |
kmod: conditionalize kmod setup on CAP_SYS_MODULE, not whether we run in a container
It's generally preferrable to conditionalize on the actual ability to do
something then the context we run in.
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c index 4ad3bc2c57..899233bf51 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1589,8 +1589,7 @@ int main(int argc, char *argv[]) { status_welcome(); #ifdef HAVE_KMOD - if (detect_container(NULL) <= 0) - kmod_setup(); + kmod_setup(); #endif hostname_setup(); machine_id_setup(""); |