mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-23 16:24:19 +01:00
1.2.0 release changed the tarball file layout for the Kata artifacts. Adjust scripts accordingly. Fixes: #142 Signed-off-by: Eric Ernst <eric.ernst@intel.com>
15 lines
480 B
Bash
Executable File
15 lines
480 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "copying kata artifacts onto host"
|
|
cp -R /opt/kata-artifacts/opt/kata/* /opt/kata/
|
|
chmod +x /opt/kata/bin/*
|
|
|
|
# Configure crio to use Kata:
|
|
echo "Set Kata containers as default runtime in CRI-O for untrusted workloads"
|
|
cp /etc/crio/crio.conf /etc/crio/crio.conf.bak
|
|
sed -i '/runtime_untrusted_workload = /c\runtime_untrusted_workload = "/opt/kata/bin/kata-runtime"' /etc/crio/crio.conf
|
|
|
|
echo "Reload systemd services"
|
|
systemctl daemon-reload
|
|
systemctl restart crio
|