Skip to content

Commit f67c2f2

Browse files
committed
Create new config for virtio-blk based vanilla kata
1 parent beb9b8a commit f67c2f2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tools/osbuilder/node-builder/azure-linux/common.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ else
3939
SHIM_CONFIG_PATH="${INSTALL_PATH_PREFIX}/share/defaults/kata-containers"
4040
SHIM_CONFIG_FILE_NAME="configuration-clh.toml"
4141
SHIM_CONFIG_INST_FILE_NAME="configuration.toml"
42+
SHIM_BLK_CONFIG_INST_FILE_NAME="configuration-blk.toml"
4243
DEBUGGING_BINARIES_PATH="${INSTALL_PATH_PREFIX}/local/bin"
4344
SHIM_BINARIES_PATH="${INSTALL_PATH_PREFIX}/local/bin"
4445
SHIM_BINARY_NAME="containerd-shim-kata-v2"

tools/osbuilder/node-builder/azure-linux/package_install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,8 @@ else
6767
echo "Skipping installation of shim configuration"
6868
fi
6969

70+
echo "Installing virtio-blk based shim configuration"
71+
cp -a --backup=numbered src/runtime/config/"${SHIM_CONFIG_FILE_NAME}" "${PREFIX}/${SHIM_CONFIG_PATH}/${SHIM_BLK_CONFIG_INST_FILE_NAME}"
72+
sudo sed -i 's/shared_fs = "virtio-fs"/shared_fs = "none"/' "${PREFIX}/${SHIM_CONFIG_PATH}/${SHIM_BLK_CONFIG_INST_FILE_NAME}"
73+
7074
popd

0 commit comments

Comments
 (0)