summaryrefslogtreecommitdiff
path: root/pkg/machine
diff options
context:
space:
mode:
authorThibault Gagnaux <tgagnaux@gmail.com>2022-03-06 15:32:47 +0100
committerThibault Gagnaux <tgagnaux@gmail.com>2022-03-06 16:24:56 +0100
commit01514f33ba3ec4f54badf7d1297b85d05b24f59d (patch)
treeb5a94ccb0c0c62df3f01da049f53eb00ed75c208 /pkg/machine
parentf4d6e8777213880204ccbce92201c47c74b33036 (diff)
downloadpodman-01514f33ba3ec4f54badf7d1297b85d05b24f59d.tar.gz
podman-01514f33ba3ec4f54badf7d1297b85d05b24f59d.tar.bz2
podman-01514f33ba3ec4f54badf7d1297b85d05b24f59d.zip
Fixes: #13301 ("machine rm removes the mounted socket file on macos")
[NO NEW TESTS NEEDED] Signed-off-by: Thibault Gagnaux <tgagnaux@gmail.com>
Diffstat (limited to 'pkg/machine')
-rw-r--r--pkg/machine/qemu/machine.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index 9beec2173..8b567fb26 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -667,6 +667,11 @@ func (v *MachineVM) Remove(name string, opts machine.RemoveOptions) (string, fun
if !opts.SaveImage {
files = append(files, v.ImagePath)
}
+ socketPath, err := v.getForwardSocketPath()
+ if err != nil {
+ logrus.Error(err)
+ }
+ files = append(files, socketPath)
files = append(files, v.archRemovalFiles()...)
if err := machine.RemoveConnection(v.Name); err != nil {