mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
Merge pull request #21172 from cgwalters/machine-use-datadir
machine: use GlobalDataDir helper
This commit is contained in:
@ -25,7 +25,6 @@ import (
|
||||
"github.com/containers/podman/v4/pkg/rootless"
|
||||
"github.com/containers/podman/v4/pkg/signal"
|
||||
"github.com/containers/storage/pkg/directory"
|
||||
"github.com/containers/storage/pkg/homedir"
|
||||
"github.com/containers/storage/pkg/idtools"
|
||||
stypes "github.com/containers/storage/types"
|
||||
securejoin "github.com/cyphar/filepath-securejoin"
|
||||
@ -1166,10 +1165,6 @@ func ExitCode(err error) int {
|
||||
return 126
|
||||
}
|
||||
|
||||
func GetIdentityPath(name string) string {
|
||||
return filepath.Join(homedir.Get(), ".local", "share", "containers", "podman", "machine", name)
|
||||
}
|
||||
|
||||
func Tmpdir() string {
|
||||
tmpdir := os.Getenv("TMPDIR")
|
||||
if tmpdir == "" {
|
||||
|
Reference in New Issue
Block a user