From a4a23457caa8b2b17da3a1a030b122d495fd242a Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Thu, 22 Sep 2022 21:45:20 +0000 Subject: [PATCH] osbuilder: Export directory variables for libseccomp To avoid the random failures when we are building the rootfs as it seems that it does not find the value for the libseccomp and gperf directory, this PR export these variables. Fixes #5232 Signed-off-by: Gabriela Cervantes --- tools/osbuilder/rootfs-builder/rootfs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/osbuilder/rootfs-builder/rootfs.sh b/tools/osbuilder/rootfs-builder/rootfs.sh index 5c9c723a74..c69f8dfef0 100755 --- a/tools/osbuilder/rootfs-builder/rootfs.sh +++ b/tools/osbuilder/rootfs-builder/rootfs.sh @@ -575,8 +575,8 @@ EOF 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) + export libseccomp_install_dir=$(mktemp -d -t libseccomp.XXXXXXXXXX) + export gperf_install_dir=$(mktemp -d -t gperf.XXXXXXXXXX) ${script_dir}/../../../ci/install_libseccomp.sh "${libseccomp_install_dir}" "${gperf_install_dir}" echo "Set environment variables for the libseccomp crate to link the libseccomp library statically" export LIBSECCOMP_LINK_TYPE=static