From c9fe9afa61d96fd970fbd3aa731d931f19208d72 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 24 Jan 2023 10:00:47 +0100 Subject: [PATCH] Revert "HOOK_BASEFS_UP must run as soon as all filesystems are mounted" This reverts commit 5b41c6e since it causes regressions in plugins adding services to the system. The proper fix for early bootmisc is to add a new hook, which will be added in subsequent commits. Signed-off-by: Joachim Wiberg --- src/finit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/finit.c b/src/finit.c index 2238db31..2f642fe9 100644 --- a/src/finit.c +++ b/src/finit.c @@ -476,9 +476,6 @@ static void fs_mount_all(void) dbg("Finalize, ensure common file systems are available ..."); fs_finalize(); - - dbg("Base FS up, calling hooks ..."); - plugin_run_hooks(HOOK_BASEFS_UP); } /* @@ -827,6 +824,9 @@ int main(int argc, char *argv[]) /* Base FS up, enable standard SysV init signals */ sig_setup(&loop); + dbg("Base FS up, calling hooks ..."); + plugin_run_hooks(HOOK_BASEFS_UP); + /* * Set up inotify watcher for /etc/finit.conf, /etc/finit.d, and * their deps, to figure out how to bootstrap the system.