mirror of
https://github.com/containers/podman.git
synced 2025-12-11 17:27:19 +08:00
Update containers/storage to v1.16.5
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
3
vendor/github.com/containers/storage/store.go
generated
vendored
3
vendor/github.com/containers/storage/store.go
generated
vendored
@@ -3308,6 +3308,9 @@ const defaultConfigFile = "/etc/containers/storage.conf"
|
||||
// DefaultConfigFile returns the path to the storage config file used
|
||||
func DefaultConfigFile(rootless bool) (string, error) {
|
||||
if rootless {
|
||||
if configHome := os.Getenv("XDG_CONFIG_HOME"); configHome != "" {
|
||||
return filepath.Join(configHome, "containers/storage.conf"), nil
|
||||
}
|
||||
home := homedir.Get()
|
||||
if home == "" {
|
||||
return "", errors.New("cannot determine user's homedir")
|
||||
|
||||
Reference in New Issue
Block a user