summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-12-19 01:32:55 +0100
committerKay Sievers <kay@vrfy.org>2013-12-19 01:32:55 +0100
commitb43b8f7a7e088c31416374340f576887968f7cad (patch)
tree3db89df4778083e840f60cdcc4f9348a44544e2f /src/core/main.c
parent7491e6e7c5fcb3c445a0656a440bd1551adb6ba1 (diff)
do not run kmod-setup in a container
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();