mirror of
https://github.com/containers/podman.git
synced 2025-06-07 07:45:34 +08:00
If local storage file exists, then use it rather then defaults.
Currently we always force overlay if it exists even though a user might want vfs. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -316,6 +316,7 @@ func GetDefaultStoreOptions() (storage.StoreOptions, string, error) {
|
|||||||
|
|
||||||
storageConf := filepath.Join(os.Getenv("HOME"), ".config/containers/storage.conf")
|
storageConf := filepath.Join(os.Getenv("HOME"), ".config/containers/storage.conf")
|
||||||
if _, err := os.Stat(storageConf); err == nil {
|
if _, err := os.Stat(storageConf); err == nil {
|
||||||
|
storageOpts = storage.StoreOptions{}
|
||||||
storage.ReloadConfigurationFile(storageConf, &storageOpts)
|
storage.ReloadConfigurationFile(storageConf, &storageOpts)
|
||||||
} else if os.IsNotExist(err) {
|
} else if os.IsNotExist(err) {
|
||||||
os.MkdirAll(filepath.Dir(storageConf), 0755)
|
os.MkdirAll(filepath.Dir(storageConf), 0755)
|
||||||
|
Reference in New Issue
Block a user