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.
This commit is contained in:
Tobias Waldekranz
2020-10-20 09:31:58 +02:00
parent cc655609e2
commit 100cea5d9f
+4 -2
View File
@@ -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();