diff options
Diffstat (limited to 'internal/app/spcontainer.go')
| -rw-r--r-- | internal/app/spcontainer.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/app/spcontainer.go b/internal/app/spcontainer.go index bce0e200..3827fa2e 100644 --- a/internal/app/spcontainer.go +++ b/internal/app/spcontainer.go @@ -1,6 +1,7 @@ package app import ( + "encoding/gob" "errors" "io/fs" "os" @@ -19,6 +20,8 @@ import ( const varRunNscd = fhs.Var + "run/nscd" +func init() { gob.Register(new(spParamsOp)) } + // spParamsOp initialises unordered fields of [container.Params] and the optional root filesystem. // This outcomeOp is hardcoded to always run first. type spParamsOp struct { @@ -113,6 +116,8 @@ func (s *spParamsOp) toContainer(state *outcomeStateParams) error { return nil } +func init() { gob.Register(spFilesystemOp{}) } + // spFilesystemOp applies configured filesystems to [container.Params], excluding the optional root filesystem. type spFilesystemOp struct{} |
