mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
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:

committed by
Thomas Gallen

parent
20b22f8f10
commit
7472bdb161
@ -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 {
|
||||
|
Reference in New Issue
Block a user