mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-18 23:39:30 +00:00
ci: Use versions.yaml for the libseccomp
It would be nice to use `versions.yaml` for the maintainability. Previously, we have been specified the `libseccomp` and the `gperf` version directly in this script without using the `versions.yaml` because the current snap workflow is incomplete and fails. This is because snap CI environment does not have kata-cotnainers repository under ${GOPATH}. To avoid the failure, the `rootfs.sh` extracts the libseccomp version and url in advance and pass them to the `install_libseccomp.sh` as environment variables. Fixes: #4941 Signed-off-by: Manabu Sugimoto <Manabu.Sugimoto@sony.com>
This commit is contained in:
@@ -568,6 +568,8 @@ EOF
|
||||
|
||||
if [ "${SECCOMP}" == "yes" ]; then
|
||||
info "Set up libseccomp"
|
||||
detect_libseccomp_info || \
|
||||
die "Could not detect the required libseccomp version and url"
|
||||
libseccomp_install_dir=$(mktemp -d -t libseccomp.XXXXXXXXXX)
|
||||
gperf_install_dir=$(mktemp -d -t gperf.XXXXXXXXXX)
|
||||
${script_dir}/../../../ci/install_libseccomp.sh "${libseccomp_install_dir}" "${gperf_install_dir}"
|
||||
|
Reference in New Issue
Block a user