]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/main.c
mount-setup: remove mount_setup_late()
[thirdparty/systemd.git] / src / core / main.c
index d563ae35092353d2c3a2e2f30a38dfe51eb1759c..59a2be97f3bcabc6571ce5c9b94489863bae0676 100644 (file)
@@ -1389,6 +1389,11 @@ int main(int argc, char *argv[]) {
         /* Mount /proc, /sys and friends, so that /proc/cmdline and
          * /proc/$PID/fd is available. */
         if (getpid() == 1) {
+#ifdef HAVE_KMOD
+                if (!skip_setup)
+                        kmod_setup();
+#endif
+
                 r = mount_setup(loaded_policy);
                 if (r < 0)
                         goto finish;
@@ -1553,10 +1558,6 @@ int main(int argc, char *argv[]) {
                 if (arg_show_status > 0 || plymouth_running())
                         status_welcome();
 
-#ifdef HAVE_KMOD
-                kmod_setup();
-#endif
-                mount_setup_late();
                 hostname_setup();
                 machine_id_setup(NULL);
                 loopback_setup();