mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-02-21 14:22:24 +00:00
kata-deploy: fix custom runtime config path for runtime-rs shims
Custom runtimes whose base config lives under runtime-rs/ (e.g. dragonball, cloud-hypervisor) were not found because the path was always built under share/defaults/kata-containers/. Use get_kata_containers_original_config_path for the handler so rust shim configs are read from .../runtime-rs/. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
This commit is contained in:
@@ -194,10 +194,9 @@ fn install_custom_runtime_configs(config: &Config) -> Result<()> {
|
||||
// Copy base config to the handler directory
|
||||
// Custom runtime drop-ins will overlay on top of this
|
||||
let base_config_filename = format!("configuration-{}.toml", runtime.base_config);
|
||||
let original_config = format!(
|
||||
"/host/{}/share/defaults/kata-containers/{}",
|
||||
config.dest_dir, base_config_filename
|
||||
);
|
||||
let config_base =
|
||||
utils::get_kata_containers_original_config_path(&runtime.base_config, &config.dest_dir);
|
||||
let original_config = format!("/host{}/{}", config_base, base_config_filename);
|
||||
let dest_config = format!("{}/{}", handler_dir, base_config_filename);
|
||||
|
||||
if Path::new(&original_config).exists() {
|
||||
|
||||
Reference in New Issue
Block a user