Skip to content

Commit

Permalink
Ensure podman temp directory is created on Start as well.
Browse files Browse the repository at this point in the history
`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 <[email protected]>
  • Loading branch information
kaorihinata committed Jan 18, 2024
1 parent 20b22f8 commit 7472bdb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/machine/applehv/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7472bdb

Please sign in to comment.