mirror of
https://github.com/containers/podman.git
synced 2025-11-01 22:32:50 +08:00
[NO NEW TESTS NEEDED] no new functionalities are added Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
14 lines
249 B
Go
14 lines
249 B
Go
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.GetRootlessRuntimeDir()
|
|
}
|