Ensure that plugins are loaded before the first hook point
We want plugins to be able to register themselves at the banner hook
point, but that requires that we have actually loaded them before
then.
@@ -378,6 +378,10 @@ int main(int argc, char *argv[])
*/
emergency_shell();
+ /* Load plugins early, the first hook is in banner(), so we
+ * need plugins loaded before calling it. */
+ plugin_init(&loop);
+
/*
* Hello world.
*/
@@ -388,12 +392,6 @@ int main(int argc, char *argv[])
*/
sig_init();
- /*
- * Load plugins early, finit.conf may contain references to
- * features implemented by plugins.
- */
- plugin_init(&loop);
-
/*
* Initialize default control groups, if available
*/
