Skip to content

Commit 62af879

Browse files
committed
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 <serge@hallyn.com>
1 parent 528a53f commit 62af879

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/molecule/molecule.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,7 @@ func UmountWithMetadir(dest, metadirArg string) error {
415415
}
416416
}
417417

418-
mountNSName, err := common.GetMountNSName()
419-
if err != nil {
420-
return err
421-
}
422-
destMetaDir := filepath.Join(common.RuntimeDir(metadir), "meta", mountNSName, common.ReplacePathSeparators(dest))
418+
destMetaDir := filepath.Join(common.RuntimeDir(metadir))
423419
if err := os.RemoveAll(destMetaDir); err != nil {
424420
return err
425421
}

0 commit comments

Comments
 (0)