chiark / gitweb /
kmod: conditionalize kmod setup on CAP_SYS_MODULE, not whether we run in a container
[elogind.git] / src / core / main.c
index 4ad3bc2c573bd5329520e0646768eaccd1d505a0..899233bf518f872ac364c19398c3773cb3718765 100644 (file)
@@ -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("");