diff --git a/kernel/build-kernel.sh b/kernel/build-kernel.sh index 3f8ac2d500..cb3011a1d2 100755 --- a/kernel/build-kernel.sh +++ b/kernel/build-kernel.sh @@ -370,10 +370,16 @@ install_kata() { install --mode 0644 -D "vmlinux" "${install_path}/${vmlinux}" install --mode 0644 -D ./.config "${install_path}/config-${kernel_version}" - ln -sf "${vmlinuz}" "${install_path}/vmlinuz.container" - ln -sf "${vmlinux}" "${install_path}/vmlinux.container" - ls -la "${install_path}/vmlinux.container" - ls -la "${install_path}/vmlinuz.container" + if [[ ${experimental_kernel} == "true" ]]; then + sufix="-virtiofs.container" + else + sufix=".container" + fi + + ln -sf "${vmlinuz}" "${install_path}/vmlinuz${sufix}" + ln -sf "${vmlinux}" "${install_path}/vmlinux${sufix}" + ls -la "${install_path}/vmlinux${sufix}" + ls -la "${install_path}/vmlinuz${sufix}" popd >>/dev/null } @@ -427,7 +433,11 @@ main() { if [ -z "${kernel_path}" ]; then config_version=$(get_config_version) - kernel_path="${PWD}/kata-linux-${kernel_version}-${config_version}" + if [[ ${experimental_kernel} == "true" ]]; then + kernel_path="${PWD}/kata-linux-experimental-${kernel_version}-${config_version}" + else + kernel_path="${PWD}/kata-linux-${kernel_version}-${config_version}" + fi info "Config version: ${config_version}" fi diff --git a/kernel/kata_config_version b/kernel/kata_config_version index 82cced27d7..0691f67b20 100644 --- a/kernel/kata_config_version +++ b/kernel/kata_config_version @@ -1 +1 @@ -51 +52 diff --git a/release/kata-deploy-binaries.sh b/release/kata-deploy-binaries.sh index 0802c2c8ba..a7e34aae83 100755 --- a/release/kata-deploy-binaries.sh +++ b/release/kata-deploy-binaries.sh @@ -20,6 +20,9 @@ readonly GOPATH="${tmp_dir}/go" push=false export GOPATH workdir="${WORKDIR:-$PWD}" +# This flag help us to test and run this script with changes +# that are local +test_local="false" exit_handler() { [ -d "${tmp_dir}" ] || sudo rm -rf "${tmp_dir}" @@ -58,6 +61,7 @@ version: The kata version that will be use to create the tarball options: -h : Show this help +-l : Run this script to test changes locally -p : push tarball to ${project_to_attach} -w