Read configuration after filesystem mount
The contents of /etc/finit.conf and friends could potentially change
after mounting /etc/fstab. If, for example, /etc was to be re-mounted
from ro to rw using an overlay filesystem, we want any user changes to
the configuration to take effect.
@@ -399,13 +399,15 @@ int main(int argc, char *argv[])
*/
cgroup_init();
+
+ /* Check and mount filesystems. */
+ fs_init();
+
/*
* Initialize .conf system and load static /etc/finit.conf.
*/
conf_init();
- fs_init();
-
/* Bootstrap conditions, needed for hooks */
cond_init();
