mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 00:37:24 +00:00
releaes: static: add wrapper for firecracker config.
https://github.com/kata-containers/documentation/wiki/Initial-release-of-Kata-Containers-with-Firecracker-support The wiki says that a wrapper is part of the release tarball, `make install` from runtime is not doing it, add workaround until this is added as an official wrapper. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
ed39937a2c
commit
d1f8846adb
@ -145,6 +145,21 @@ install_kata_components() {
|
||||
pushd "${destdir}/${prefix}/share/defaults/${project}"
|
||||
ln -sf "configuration-qemu.toml" configuration.toml
|
||||
popd
|
||||
|
||||
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" \$@
|
||||
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" \$@
|
||||
EOT
|
||||
sudo chmod +x kata-qemu
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
main() {
|
||||
|
Loading…
Reference in New Issue
Block a user