mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-22 20:39:41 +00:00
kata-deploy: scripts: Only add conf file to the imports once
Otherwise we'd end up adding a the file several times, which could lead to problems when removing the entry, leading to containerd not being able to start due to an import file not being present. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
This commit is contained in:
committed by
Fabiano Fidêncio
parent
e1269afe8a
commit
1e2c86c068
@@ -673,8 +673,10 @@ function configure_containerd() {
|
||||
fi
|
||||
|
||||
if [ $use_containerd_drop_in_conf_file = "true" ]; then
|
||||
if ! grep -q "${containerd_drop_in_conf_file}" ${containerd_conf_file}; then
|
||||
tomlq -i -t $(printf '.imports|=.+["%s"]' ${containerd_drop_in_conf_file}) ${containerd_conf_file}
|
||||
fi
|
||||
fi
|
||||
|
||||
for shim in "${shims[@]}"; do
|
||||
configure_containerd_runtime "$1" $shim
|
||||
|
Reference in New Issue
Block a user