From ff41868b59dd51017e228df9af55ad2ee8c13f07 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 9 Feb 2021 15:18:05 +0100 Subject: [PATCH] Reorder, call conf_init() *after* all cond_init() This to ensure that services, and conditions they may create, actually are recorded in the condition subsystem. Signed-off-by: Joachim Wiberg --- src/finit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/finit.c b/src/finit.c index 1808ae6b..fe502e2b 100644 --- a/src/finit.c +++ b/src/finit.c @@ -438,11 +438,6 @@ int main(int argc, char *argv[]) /* Check and mount filesystems. */ fs_mount(); - /* - * Initialize .conf system and load static /etc/finit.conf. - */ - conf_init(); - /* Bootstrap conditions, needed for hooks */ cond_init(); @@ -451,6 +446,11 @@ int main(int argc, char *argv[]) cond_set_oneshot(plugin_hook_str(HOOK_BANNER)); cond_set_oneshot(plugin_hook_str(HOOK_ROOTFS_UP)); + /* + * Initialize .conf system and load static /etc/finit.conf. + */ + conf_init(); + /* Base FS up, enable standard SysV init signals */ sig_setup(&loop);