mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07: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:
+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