From 0e37bb09241c0e15b54dc4fac1f7bb2faefe690e Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 23 Dec 2017 11:19:35 +0100 Subject: [PATCH] Follow-up to b0663d0, cond_init() must run before first hooks The new condition triggered hooks requrie /var/run/finit/cond to be set up before calling the first user-configurable hooks. Signed-off-by: Joachim Nilsson --- src/finit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/finit.c b/src/finit.c index 0c62729f..a4d0ac7e 100644 --- a/src/finit.c +++ b/src/finit.c @@ -474,6 +474,9 @@ int main(int argc, char* argv[]) if (fexist("/lib/udev/udev-finish")) run_interactive("/lib/udev/udev-finish", "Finalizing udev"); + /* Bootstrap conditions, needed for hooks */ + cond_init(); + _d("Root FS up, calling hooks ..."); plugin_run_hooks(HOOK_ROOTFS_UP); @@ -487,9 +490,6 @@ int main(int argc, char* argv[]) /* Base FS up, enable standard SysV init signals */ sig_setup(&loop); - /* Bootstrap conditions */ - cond_init(); - /* * Set up inotify watcher for /etc/finit.d and read all .conf * files to figure out how to bootstrap the system.