diff options
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/options.go | 2 | ||||
-rw-r--r-- | libpod/runtime.go | 2 |
2 files changed, 3 insertions, 1 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) diff --git a/libpod/runtime.go b/libpod/runtime.go index 1a18b7e8e..4a45bf008 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -61,7 +61,7 @@ var ( "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", }, CgroupManager: "cgroupfs", - StaticDir: "/var/lib/libpod", + StaticDir: filepath.Join(storage.DefaultStoreOptions.GraphRoot, "libpod"), TmpDir: "/var/run/libpod", SelinuxEnabled: false, PidsLimit: 1024, |