mirror of
https://github.com/containers/podman.git
synced 2026-03-28 11:33:11 -04:00
First make sure we check that a given VM exist when holding the VM lock for it. The check in cmd/podman/machine/init.go is a nice quick out but not enough to ensure that 2 processes to not create the same VM at the same time. The only way to ensure this is by holding the lock and checking if the VM config file exists. Signed-off-by: Paul Holzinger <pholzing@redhat.com>