From b0fcd555db55fc8e739614f44c62f14cd608725d Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 3 Jan 2019 16:18:14 -0500 Subject: 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 --- pkg/util/utils.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/util') diff --git a/pkg/util/utils.go b/pkg/util/utils.go index a6f52cb3e..d327d152c 100644 --- a/pkg/util/utils.go +++ b/pkg/util/utils.go @@ -316,6 +316,7 @@ func GetDefaultStoreOptions() (storage.StoreOptions, string, error) { storageConf := filepath.Join(os.Getenv("HOME"), ".config/containers/storage.conf") if _, err := os.Stat(storageConf); err == nil { + storageOpts = storage.StoreOptions{} storage.ReloadConfigurationFile(storageConf, &storageOpts) } else if os.IsNotExist(err) { os.MkdirAll(filepath.Dir(storageConf), 0755) -- cgit v1.2.3-54-g00ecf