aboutsummaryrefslogtreecommitdiff
path: root/pkg/machine/qemu/options_linux.go
blob: 8f267dbe236d9e39d902f32822b6d5c87126e498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package qemu

import (
	"github.com/containers/podman/v4/pkg/rootless"
	"github.com/containers/podman/v4/pkg/util"
)

func getRuntimeDir() (string, error) {
	if !rootless.IsRootless() {
		return "/run", nil
	}
	return util.GetRuntimeDir()
}