From cd9b534d6b1d432d3c997ccc5b14f630afb9dda6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 28 Feb 2026 20:18:30 +0900 Subject: container: improve documentation This change removes inconsistencies collected over time in this package. Signed-off-by: Ophestra --- container/autoetc.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'container/autoetc.go') 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 } -- cgit v1.3.1