mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-31 23:36:12 +00:00
Merge pull request #2617 from fidencio/wip/shimv2_config_paths
katautils: Use config paths set during the build
This commit is contained in:
commit
39a039cde5
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,6 +16,7 @@
|
||||
/data/kata-collect-data.sh
|
||||
/kata-netmon
|
||||
/kata-runtime
|
||||
/pkg/katautils/config-settings.go
|
||||
/virtcontainers/hack/virtc/virtc
|
||||
/virtcontainers/hook/mock/hook
|
||||
/virtcontainers/profile.cov
|
||||
|
1
Makefile
1
Makefile
@ -537,6 +537,7 @@ endef
|
||||
|
||||
|
||||
GENERATED_FILES += $(CLI_DIR)/config-generated.go
|
||||
GENERATED_FILES += pkg/katautils/config-settings.go
|
||||
|
||||
$(TARGET_OUTPUT): $(SOURCES) $(GENERATED_FILES) $(MAKEFILE_LIST) | show-summary
|
||||
$(QUIET_BUILD)(cd $(CLI_DIR) && go build $(KATA_LDFLAGS) $(BUILDFLAGS) -o $@ .)
|
||||
|
@ -55,11 +55,11 @@ const defaultTemplatePath string = "/run/vc/vm/template"
|
||||
const defaultVMCacheEndpoint string = "/var/run/kata-containers/cache.sock"
|
||||
|
||||
// Default config file used by stateless systems.
|
||||
var defaultRuntimeConfiguration = "/usr/share/defaults/kata-containers/configuration.toml"
|
||||
var defaultRuntimeConfiguration = "@CONFIG_PATH@"
|
||||
|
||||
// Alternate config file that takes precedence over
|
||||
// defaultRuntimeConfiguration.
|
||||
var defaultSysConfRuntimeConfiguration = "/etc/kata-containers/configuration.toml"
|
||||
var defaultSysConfRuntimeConfiguration = "@SYSCONFIG@"
|
||||
|
||||
var name = "kata"
|
||||
var defaultProxyPath = "/usr/libexec/kata-containers/kata-proxy"
|
Loading…
Reference in New Issue
Block a user