mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +00:00
cli: use new prefixless config options in tools scripts
Update all tools/packaging scripts to prefer the new options over the old ones (e.g. `--config` instead of `--kata-config`). Signed-off-by: Daniel Knittl-Frank <knittl89+git@googlemail.com>
This commit is contained in:
parent
02ee8b0b8a
commit
fdcde7968a
@ -218,25 +218,25 @@ install_kata_components() {
|
||||
pushd "${destdir}/${prefix}/bin"
|
||||
cat <<EOT | sudo tee kata-fc
|
||||
#!/bin/bash
|
||||
${prefix}/bin/kata-runtime --kata-config "${prefix}/share/defaults/${project}/configuration-fc.toml" \$@
|
||||
${prefix}/bin/kata-runtime --config "${prefix}/share/defaults/${project}/configuration-fc.toml" \$@
|
||||
EOT
|
||||
sudo chmod +x kata-fc
|
||||
|
||||
cat <<EOT | sudo tee kata-qemu
|
||||
#!/bin/bash
|
||||
${prefix}/bin/kata-runtime --kata-config "${prefix}/share/defaults/${project}/configuration-qemu.toml" \$@
|
||||
${prefix}/bin/kata-runtime --config "${prefix}/share/defaults/${project}/configuration-qemu.toml" \$@
|
||||
EOT
|
||||
sudo chmod +x kata-qemu
|
||||
|
||||
cat <<EOT | sudo tee kata-clh
|
||||
#!/bin/bash
|
||||
${prefix}/bin/kata-runtime --kata-config "${prefix}/share/defaults/${project}/configuration-clh.toml" \$@
|
||||
${prefix}/bin/kata-runtime --config "${prefix}/share/defaults/${project}/configuration-clh.toml" \$@
|
||||
EOT
|
||||
sudo chmod +x kata-clh
|
||||
|
||||
cat <<EOT | sudo tee kata-qemu-virtiofs
|
||||
#!/bin/bash
|
||||
${prefix}/bin/kata-runtime --kata-config "${prefix}/share/defaults/${project}/configuration-qemu-virtiofs.toml" \$@
|
||||
${prefix}/bin/kata-runtime --config "${prefix}/share/defaults/${project}/configuration-qemu-virtiofs.toml" \$@
|
||||
EOT
|
||||
sudo chmod +x kata-qemu-virtiofs
|
||||
|
||||
|
@ -81,7 +81,7 @@ configure_docker()
|
||||
--arg config "$config" \
|
||||
--arg runtime "$runtime" \
|
||||
--arg runtime_path "$runtime_path" \
|
||||
'.runtimes[$runtime] = {path: $runtime_path, "runtimeArgs": ["--kata-config", $config]}')
|
||||
'.runtimes[$runtime] = {path: $runtime_path, "runtimeArgs": ["--config", $config]}')
|
||||
|
||||
echo "$result" > "$docker_config_file"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user