mirror of
https://github.com/containers/podman.git
synced 2025-10-16 10:43:52 +08:00
Prune Server package. Convert to new github location.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
This commit is contained in:
@ -9,9 +9,8 @@ import (
|
||||
is "github.com/containers/image/storage"
|
||||
"github.com/containers/storage"
|
||||
"github.com/fatih/camelcase"
|
||||
"github.com/kubernetes-incubator/cri-o/libkpod"
|
||||
"github.com/kubernetes-incubator/cri-o/libpod"
|
||||
"github.com/kubernetes-incubator/cri-o/server"
|
||||
"github.com/projectatomic/libpod/libkpod"
|
||||
"github.com/projectatomic/libpod/libpod"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
@ -20,6 +19,8 @@ var (
|
||||
stores = make(map[storage.Store]struct{})
|
||||
)
|
||||
|
||||
const CrioConfigPath = "/etc/crio/crio.conf"
|
||||
|
||||
func getStore(c *libkpod.Config) (storage.Store, error) {
|
||||
options := storage.DefaultStoreOptions
|
||||
options.GraphRoot = c.Root
|
||||
@ -65,8 +66,8 @@ func getConfig(c *cli.Context) (*libkpod.Config, error) {
|
||||
var configFile string
|
||||
if c.GlobalIsSet("config") {
|
||||
configFile = c.GlobalString("config")
|
||||
} else if _, err := os.Stat(server.CrioConfigPath); err == nil {
|
||||
configFile = server.CrioConfigPath
|
||||
} else if _, err := os.Stat(CrioConfigPath); err == nil {
|
||||
configFile = CrioConfigPath
|
||||
}
|
||||
// load and merge the configfile from the commandline or use
|
||||
// the default crio config file
|
||||
|
Reference in New Issue
Block a user