From f2655d14c8301bea5aabff6ea5f60a3b480d5c11 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 1 Mar 2018 23:54:34 +0100 Subject: [PATCH] Bootstrap condition subsystem as soon as possible 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 2d5eb3fb..745acdbd 100644 --- a/src/finit.c +++ b/src/finit.c @@ -366,6 +366,9 @@ int main(int argc, char* argv[]) mount("tmpfs", "/run", "tmpfs", MS_NODEV, "mode=0755,size=10%"); umask(022); + /* Bootstrap conditions, needed for hooks */ + cond_init(); + /* * Populate /dev and prepare for runtime events from kernel. * Prefer udev if mdev is also available on the system. @@ -421,9 +424,6 @@ int main(int argc, char* argv[]) #endif } - /* Bootstrap conditions, needed for hooks */ - cond_init(); - if (!rescue) { _d("Root FS up, calling hooks ..."); plugin_run_hooks(HOOK_ROOTFS_UP);