diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-25 19:13:31 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-25 19:24:33 +0900 |
| commit | 0dcac55a0c3fcbb2d48028a4474ccecb37bb22fc (patch) | |
| tree | d4f4440ac8ce805cbc46b8658572fe7a702d78fd /internal/app/seal_linux.go | |
| parent | 6d202d73b41d28166f7bea7da36d1ce054711ff9 (diff) | |
hst/config: remove container etc field
This no longer needs special treatment since it can be specified as a generic filesystem entry.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/seal_linux.go')
| -rw-r--r-- | internal/app/seal_linux.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/internal/app/seal_linux.go b/internal/app/seal_linux.go index 4e77e79e..c2b580b7 100644 --- a/internal/app/seal_linux.go +++ b/internal/app/seal_linux.go @@ -242,7 +242,6 @@ func (seal *outcome) finalise(ctx context.Context, sys sys.State, config *hst.Co HostNet: true, HostAbstract: true, Tty: true, - AutoEtc: true, Filesystem: []hst.FilesystemConfigJSON{ {&hst.FSBind{ @@ -267,6 +266,15 @@ func (seal *outcome) finalise(ctx context.Context, sys sys.State, config *hst.Co conf.Filesystem = append(conf.Filesystem, hst.FilesystemConfigJSON{FilesystemConfig: &hst.FSEphemeral{Target: nscd}}) } + // do autoetc last + conf.Filesystem = append(conf.Filesystem, + hst.FilesystemConfigJSON{FilesystemConfig: &hst.FSBind{ + Target: container.AbsFHSEtc, + Source: container.AbsFHSEtc, + Special: true, + }}, + ) + config.Container = conf } |
