mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
Bootstrap condition subsystem as soon as possible
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
6d1d51b28c
commit
f2655d14c8
1 file changed
+3
-3
+3
-3
@@ -366,6 +366,9 @@ int main(int argc, char* argv[])
|
|||||||
mount("tmpfs", "/run", "tmpfs", MS_NODEV, "mode=0755,size=10%");
|
mount("tmpfs", "/run", "tmpfs", MS_NODEV, "mode=0755,size=10%");
|
||||||
umask(022);
|
umask(022);
|
||||||
|
|
||||||
|
/* Bootstrap conditions, needed for hooks */
|
||||||
|
cond_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Populate /dev and prepare for runtime events from kernel.
|
* Populate /dev and prepare for runtime events from kernel.
|
||||||
* Prefer udev if mdev is also available on the system.
|
* Prefer udev if mdev is also available on the system.
|
||||||
@@ -421,9 +424,6 @@ int main(int argc, char* argv[])
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Bootstrap conditions, needed for hooks */
|
|
||||||
cond_init();
|
|
||||||
|
|
||||||
if (!rescue) {
|
if (!rescue) {
|
||||||
_d("Root FS up, calling hooks ...");
|
_d("Root FS up, calling hooks ...");
|
||||||
plugin_run_hooks(HOOK_ROOTFS_UP);
|
plugin_run_hooks(HOOK_ROOTFS_UP);
|
||||||
|
|||||||
Reference in new issue
Block a user