summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index eac4fe6134..5189833e48 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1489,7 +1489,8 @@ int main(int argc, char *argv[]) {
status_welcome();
#ifdef HAVE_KMOD
- kmod_setup();
+ if (detect_container(NULL) <= 0)
+ kmod_setup();
#endif
hostname_setup();
machine_id_setup();