mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-08-26 10:28:25 +00:00
Check crio.conf before copying
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
This commit is contained in:
committed by
Ganesh Maharaj Mahalingam
parent
5cd217a510
commit
b92dd0e5ed
@@ -74,7 +74,9 @@ sudo chmod +x /usr/bin/kata-fc
|
||||
# Also setup crio to use devicemapper
|
||||
|
||||
sudo mkdir -p /etc/crio/
|
||||
sudo cp /usr/share/defaults/crio/crio.conf /etc/crio/crio.conf
|
||||
if [ ! -f /etc/crio/crio.conf ]; then
|
||||
sudo cp /usr/share/defaults/crio/crio.conf /etc/crio/crio.conf
|
||||
fi
|
||||
|
||||
echo -e "\n[crio.runtime.runtimes.kata-qemu]\nruntime_path = \"/usr/bin/kata-runtime\"" | sudo tee -a /etc/crio/crio.conf
|
||||
echo -e "\n[crio.runtime.runtimes.kata-fc]\nruntime_path = \"/usr/bin/kata-fc\"" | sudo tee -a /etc/crio/crio.conf
|
||||
|
||||
Reference in New Issue
Block a user