profile/coreos/base: slsa: switch to bz2 compression for consistency

...and remove redundant mkdir. Mkdir is already called with the same argument a
couple of lines lower.
This commit is contained in:
Jeremi Piotrowski 2022-07-26 13:19:28 +02:00
parent d211a2b168
commit 1a0f396be4

View File

@ -171,11 +171,10 @@ cros_post_src_install_generate_slsa_provenance_report() {
return
fi
mkdir -p "$D/usr/share/SLSA/"
local report_file="${CATEGORY}_${PF}.json.xz"
local report_file="${CATEGORY}_${PF}.json.bz2"
local dest_dir="${D}/usr/share/SLSA/"
__slsa_provenance_report | xz -9cz > "${T}/${report_file}"
__slsa_provenance_report | lbzip2 -9cz > "${T}/${report_file}"
mkdir -p "${dest_dir}"
mv "${T}/${report_file}" "${dest_dir}"