chiark / gitweb /
do not run kmod-setup in a container
[elogind.git] / src / core / main.c
index eac4fe613409cd5edf9d562900e23bb7d82bcde8..5189833e48bc8a37cea302a426ad86cce0d2253d 100644 (file)
@@ -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();