mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-16 07:05:14 +00:00
kata-deploy: add storage configuration for cri-o
Make sure that the "skip_mount_home" flag is set in cri-o config. Fixes: #9878 Signed-off-by: Julien Ropé <jrope@redhat.com>
This commit is contained in:
parent
dac07239f5
commit
b83d4e1528
@ -465,11 +465,19 @@ function configure_crio() {
|
|||||||
rm -f "$crio_drop_in_conf_file_debug"
|
rm -f "$crio_drop_in_conf_file_debug"
|
||||||
touch "$crio_drop_in_conf_file_debug"
|
touch "$crio_drop_in_conf_file_debug"
|
||||||
|
|
||||||
|
# configure storage option for crio
|
||||||
|
cat <<EOF | tee -a "$crio_drop_in_conf_file"
|
||||||
|
[crio]
|
||||||
|
storage_option = [
|
||||||
|
"overlay.skip_mount_home=true",
|
||||||
|
]
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# configure runtimes for crio
|
||||||
for shim in "${shims[@]}"; do
|
for shim in "${shims[@]}"; do
|
||||||
configure_crio_runtime $shim
|
configure_crio_runtime $shim
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [ "${DEBUG}" == "true" ]; then
|
if [ "${DEBUG}" == "true" ]; then
|
||||||
cat <<EOF | tee $crio_drop_in_conf_file_debug
|
cat <<EOF | tee $crio_drop_in_conf_file_debug
|
||||||
[crio.runtime]
|
[crio.runtime]
|
||||||
|
Loading…
Reference in New Issue
Block a user