summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-26 17:02:03 +0100
committerGitHub <noreply@github.com>2019-02-26 17:02:03 +0100
commit36df2e70738ab277699e8240f62355a67a6b2edb (patch)
tree4d93d4383d90b110200c41561680c951cf14ba0a /libpod/options.go
parent507ab29cfedbcc7503fe10c44ea9e331c5a3a5ca (diff)
parentba6f1acf07d1eddcd810cdb4265a8961770329c6 (diff)
downloadpodman-36df2e70738ab277699e8240f62355a67a6b2edb.tar.gz
podman-36df2e70738ab277699e8240f62355a67a6b2edb.tar.bz2
podman-36df2e70738ab277699e8240f62355a67a6b2edb.zip
Merge pull request #2397 from mheon/volume_path_fixes
Volume path fixes
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/options.go b/libpod/options.go
index e22c81f91..184d5d59f 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -47,6 +47,11 @@ func WithStorageConfig(config storage.StoreOptions) RuntimeOption {
rt.config.StaticDir = filepath.Join(config.GraphRoot, "libpod")
rt.configuredFrom.libpodStaticDirSet = true
+ // Also set libpod volume path, so we are a subdirectory
+ // of the c/storage store by default
+ rt.config.VolumePath = filepath.Join(config.GraphRoot, "volumes")
+ rt.configuredFrom.volPathSet = true
+
setField = true
}
@@ -359,6 +364,7 @@ func WithVolumePath(volPath string) RuntimeOption {
}
rt.config.VolumePath = volPath
+ rt.configuredFrom.volPathSet = true
return nil
}