Bootstrap condition subsystem as soon as possible

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2018-03-01 23:57:27 +01:00
parent 6d1d51b28c
commit f2655d14c8
+3 -3
View File
@@ -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);