summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2017-11-29 17:58:42 +0000
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-29 20:40:50 +0000
commitcefa782e5067515bc38b5b3688d53f4fd9d0c70b (patch)
tree1f0ee1f05a9f1d3933647186b7dbf8df49ab87fd /libpod/options.go
parent13e833a3884a22ac303b6f97a59cbeef16950243 (diff)
downloadpodman-cefa782e5067515bc38b5b3688d53f4fd9d0c70b.tar.gz
podman-cefa782e5067515bc38b5b3688d53f4fd9d0c70b.tar.bz2
podman-cefa782e5067515bc38b5b3688d53f4fd9d0c70b.zip
Move libpod under containers/storage
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #65 Approved by: mheon
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 4c21a70c9..59141115d 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -2,6 +2,7 @@ package libpod
import (
"fmt"
+ "path/filepath"
"github.com/containers/storage"
"github.com/containers/storage/pkg/idtools"
@@ -43,6 +44,7 @@ func WithStorageConfig(config storage.StoreOptions) RuntimeOption {
rt.config.StorageConfig.RunRoot = config.RunRoot
rt.config.StorageConfig.GraphRoot = config.GraphRoot
rt.config.StorageConfig.GraphDriverName = config.GraphDriverName
+ rt.config.StaticDir = filepath.Join(config.GraphRoot, "libpod")
rt.config.StorageConfig.GraphDriverOptions = make([]string, len(config.GraphDriverOptions))
copy(rt.config.StorageConfig.GraphDriverOptions, config.GraphDriverOptions)