diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-02-28 20:18:30 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-02-28 20:18:30 +0900 |
| commit | cd9b534d6b1d432d3c997ccc5b14f630afb9dda6 (patch) | |
| tree | fcf2e26356d614bb081e94285a1a8eb19cb8283c /container/autoetc.go | |
| parent | 84e6922f3073ec09756df6075a801529ecd202f6 (diff) | |
container: improve documentation
This change removes inconsistencies collected over time in this package.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/autoetc.go')
| -rw-r--r-- | container/autoetc.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/container/autoetc.go b/container/autoetc.go index 3fd9727e..a2be68b9 100644 --- a/container/autoetc.go +++ b/container/autoetc.go @@ -10,8 +10,7 @@ import ( func init() { gob.Register(new(AutoEtcOp)) } -// Etc appends an [Op] that expands host /etc into a toplevel symlink mirror with /etc semantics. -// This is not a generic setup op. It is implemented here to reduce ipc overhead. +// Etc is a helper for appending [AutoEtcOp] to [Ops]. func (f *Ops) Etc(host *check.Absolute, prefix string) *Ops { e := &AutoEtcOp{prefix} f.Mkdir(fhs.AbsEtc, 0755) @@ -20,6 +19,9 @@ func (f *Ops) Etc(host *check.Absolute, prefix string) *Ops { return f } +// AutoEtcOp expands host /etc into a toplevel symlink mirror with /etc semantics. +// +// This is not a generic setup op. It is implemented here to reduce ipc overhead. type AutoEtcOp struct{ Prefix string } func (e *AutoEtcOp) Valid() bool { return e != nil } |
