From c22d123ab07a77e09bd6aab233907299f7a36735 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 7 Jan 2023 18:07:40 +0100 Subject: [PATCH] plugins: sys.so and usr.so must run after bootmisc The bootmisc plugin sets up the base path for finit and figures out if the system has /run or /var/run -- needed by the other plugins. Signed-off-by: Joachim Wiberg --- plugins/sys.c | 1 + plugins/usr.c | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/sys.c b/plugins/sys.c index 63ef00e6..4d2f5cd7 100644 --- a/plugins/sys.c +++ b/plugins/sys.c @@ -179,6 +179,7 @@ static void sys_init(void *arg) static plugin_t plugin = { .name = __FILE__, .hook[HOOK_BASEFS_UP] = { .cb = sys_init }, + .depends = { "bootmisc", }, }; PLUGIN_INIT(plugin_init) diff --git a/plugins/usr.c b/plugins/usr.c index 58c9294e..87e3c909 100644 --- a/plugins/usr.c +++ b/plugins/usr.c @@ -105,6 +105,7 @@ static void usr_init(void *arg) static plugin_t plugin = { .name = __FILE__, .hook[HOOK_BASEFS_UP] = { .cb = usr_init }, + .depends = { "bootmisc", }, }; PLUGIN_INIT(plugin_init)