fn: read-only root fs becomes default (#1019)

* fn: read-only root fs becomes default

Set root fs as read-only by default.

* fn: update doc for FN_DISABLE_READONLY_ROOTFS
This commit is contained in:
Tolga Ceylan
2018-05-30 18:17:28 -07:00
committed by GitHub
parent f4712b4f5b
commit d190167580
4 changed files with 7 additions and 9 deletions

View File

@@ -170,7 +170,7 @@ func createAgent(da DataAccess, options ...AgentOption) Agent {
PreForkUseOnce: a.cfg.PreForkUseOnce,
PreForkNetworks: a.cfg.PreForkNetworks,
MaxTmpFsInodes: a.cfg.MaxTmpFsInodes,
EnableReadOnlyRootFs: a.cfg.EnableReadOnlyRootFs,
EnableReadOnlyRootFs: !a.cfg.DisableReadOnlyRootFs,
})
a.da = da