From 62af87976f56ea69f68add91a4cbdfa7794be731 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Tue, 22 Apr 2025 19:34:06 -0500 Subject: [PATCH] fix: umount: delete the right metapath We were deleting /run/atomfs/meta/ID/destpath/meta/ID/destpath. So doing atomfs mount oci:a dest atomfs umount dest atomfs mount oci:a dest would fail as /run/atomfs/meta/ID/destpath still existed. Signed-off-by: Serge Hallyn --- pkg/molecule/molecule.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/molecule/molecule.go b/pkg/molecule/molecule.go index d8e03bb..c62e2fd 100644 --- a/pkg/molecule/molecule.go +++ b/pkg/molecule/molecule.go @@ -415,11 +415,7 @@ func UmountWithMetadir(dest, metadirArg string) error { } } - mountNSName, err := common.GetMountNSName() - if err != nil { - return err - } - destMetaDir := filepath.Join(common.RuntimeDir(metadir), "meta", mountNSName, common.ReplacePathSeparators(dest)) + destMetaDir := filepath.Join(common.RuntimeDir(metadir)) if err := os.RemoveAll(destMetaDir); err != nil { return err }