bc8da0cb33
For various reasons, systemplate may be read-only or under a different owner and therefore impossible to update the dynamic files in it. To support such a scenario, we first link the eight dynamic files in /etc when creating systemplate. If this fails, we copy the files. When creating jails, we always check that all the dynamic files are up-to-date. If they are, nothing further is necessary and we bind-mount, if enabled and possible. However, if the dynamic files are not up-to-date, we disable bind-mounting and force linking the files in the jails. Failing that, we copy them, which is not ideal, but allows us to ensure the dynamic files are up-to-date as we copy them too. Ideally, the dynamic files in question would be hard-link (or at least soft-linked) in systemplate at creation. From then on we would bind-mount the jails and everything would work perfectly and no files would need updating. This patch is fallback for when this scheme fails, which should be exceedingly rare anyway, but which still ensures correct operation. Change-Id: I09c6f057c49396579aaddb1b8bf4af0930dd4247 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100834 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com> |
||
---|---|---|
.. | ||
ChildSession.cpp | ||
ChildSession.hpp | ||
Delta.hpp | ||
DummyLibreOfficeKit.cpp | ||
DummyLibreOfficeKit.hpp | ||
ForKit.cpp | ||
Kit.cpp | ||
Kit.hpp | ||
KitHelper.hpp | ||
SetupKitEnvironment.hpp | ||
TestStubs.cpp | ||
Watermark.hpp |