This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: #5593 Signed-Off-By: Unmesh Deodhar <[email protected]>
- Loading branch information
1 parent
a08386a
commit f093a53
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 "$@" |