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);