Ensure podman temp directory is created on Start as well.

`getRuntimeDir()` (which is also responsible for creating TMPDIR if it doesn't exist) was being called on `Init()` but not on `Start()` which meant that after the host was restarted and TMPDIR was wiped, `startHostNetworking()` would try to start gvproxy and immediately bail.

Signed-off-by: kaorihinata <kaori.hinata@gmail.com>
This commit is contained in:
kaorihinata
2024-01-17 22:56:03 -05:00
committed by Thomas Gallen
parent 20b22f8f10
commit 7472bdb161

View File

@ -572,6 +572,10 @@ func (m *MacMachine) Start(name string, opts machine.StartOptions) error {
return machine.ErrVMAlreadyRunning
}
if _, err := m.getRuntimeDir(); err != nil {
return err
}
// TODO handle returns from startHostNetworking
forwardSock, forwardState, err := m.startHostNetworking()
if err != nil {