mirror of
https://github.com/clearlinux/rkt.git
synced 2026-11-25 13:34:53 +00:00
rkt, common: Move default config paths to common
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user