From 97ab24feef0d3cb1da063a910e477823b693fba0 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 20 Aug 2025 17:14:36 +0900 Subject: container/init: use absolute compare method More checks are also added. Signed-off-by: Ophestra --- container/autoroot.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'container/autoroot.go') diff --git a/container/autoroot.go b/container/autoroot.go index 640d72d1..a7a3f33c 100644 --- a/container/autoroot.go +++ b/container/autoroot.go @@ -73,8 +73,7 @@ func (r *AutoRootOp) apply(state *setupState) error { func (r *AutoRootOp) Is(op Op) bool { vr, ok := op.(*AutoRootOp) return ok && ((r == nil && vr == nil) || (r != nil && vr != nil && - r.Host != nil && vr.Host != nil && - r.Host.String() == vr.Host.String() && + r.Host != nil && vr.Host != nil && r.Host.Is(vr.Host) && r.Prefix == vr.Prefix && r.Flags == vr.Flags)) } func (*AutoRootOp) prefix() string { return "setting up" } -- cgit v1.3.1