From d4bbebeb93bfb3dc46e6a5a10989eac36d09adc2 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 24 Mar 2021 13:16:12 +0100 Subject: [PATCH] plugins: hotplug: ensure we always call setup() *after* bootmisc The bootmisc plugin creates lots of required system directories which udev, and possibly also mdev, need to operate. E.g., a system which has an empty tmpfs for /var need to populate that before we run. The plugin loader handled this dependency implicitly before, loading all plugins in alphabetical order. We should not rely on that for proper operation. Signed-off-by: Joachim Wiberg --- plugins/hotplug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/hotplug.c b/plugins/hotplug.c index b6d0aedb..35f3c7b9 100644 --- a/plugins/hotplug.c +++ b/plugins/hotplug.c @@ -90,6 +90,7 @@ static plugin_t plugin = { .hook[HOOK_BASEFS_UP] = { .cb = setup }, + .depends = { "bootmisc" }, }; PLUGIN_INIT(plugin_init)