rkt, common: Move default config paths to common

This commit is contained in:
Krzesimir Nowak
2015-04-22 10:51:17 +02:00
parent ae02db3faa
commit 2d8ec52f83
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -39,6 +39,9 @@ const (
MetadataServicePort = 2375
MetadataServiceRegSock = "/run/rkt/metadata-svc.sock"
DefaultCustomConfigDir = "/etc/rkt"
DefaultSystemConfigDir = "/usr/lib/rkt"
)
// Stage1ImagePath returns the path where the stage1 app image (unpacked ACI) is rooted,
+4 -2
View File
@@ -23,6 +23,8 @@ import (
"path/filepath"
"sort"
"strings"
"github.com/coreos/rkt/common"
)
// Headerer is an interface for getting additional HTTP headers to use
@@ -56,8 +58,8 @@ var (
// Default paths for vendor and custom configuration
const (
DefaultVendorPath = "/usr/lib/rkt"
DefaultCustomPath = "/etc/rkt"
DefaultVendorPath = common.DefaultSystemConfigDir
DefaultCustomPath = common.DefaultCustomConfigDir
)
func addParser(kind, version string, parser configParser) {