container: allow additional state between ops

This is useful for ops that need to be aware of previous instances of themselves.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-08-17 01:29:54 +09:00
parent f9edec7e41
commit 8aa65f28c6
4 changed files with 44 additions and 38 deletions

View File

@@ -20,8 +20,8 @@ func (f *Ops) Etc(host *Absolute, prefix string) *Ops {
type AutoEtcOp struct{ Prefix string }
func (e *AutoEtcOp) early(*Params) error { return nil }
func (e *AutoEtcOp) apply(*Params) error {
func (e *AutoEtcOp) early(*setupState) error { return nil }
func (e *AutoEtcOp) apply(*setupState) error {
const target = sysrootPath + FHSEtc
rel := e.hostRel() + "/"