From 100cea5d9fad01b7f456d8e317086089a30aa238 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Tue, 20 Oct 2020 09:07:32 +0200 Subject: [PATCH] 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. --- src/finit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/finit.c b/src/finit.c index cb6a460d..46492e4e 100644 --- a/src/finit.c +++ b/src/finit.c @@ -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();