forked from kata-containers/tests
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: kata-containers#5593 Signed-off-by: Unmesh Deodhar <[email protected]>
- Loading branch information
1 parent
0bf11f8
commit 198b5b8
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
# Copyright 2022 Advanced Micro Devices, Inc. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
set -o errtrace | ||
|
||
cidir=$(dirname "$0") | ||
source "${cidir}/lib.sh" | ||
|
||
main() { | ||
local buildscript="${katacontainers_repo_dir}/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh" | ||
|
||
# Just in case the kata-containers repo is not cloned yet. | ||
clone_katacontainers_repo | ||
|
||
pushd $katacontainers_repo_dir | ||
sudo -E PATH=$PATH bash ${buildscript} --build=cc-x86_64-ovmf | ||
sudo tar -xvJpf build/kata-static-cc-x86_64-ovmf.tar.xz -C / | ||
sudo ln -sf /opt/confidential-containers/share/ovmf /usr/share/ovmf | ||
popd | ||
} | ||
|
||
main "$@" |