mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
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:
1 parent
cc655609e2
commit
100cea5d9f
1 file changed
+4
-2
+4
-2
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user