mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
build_library: Use lbzip2 to decompress gcc binpkg
Speeds things up a bit. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
47b77cea07
commit
0eb0bb38e8
@ -529,7 +529,8 @@ insert_extra_slsa() {
|
|||||||
if [ -f "${binpkg}" ]; then
|
if [ -f "${binpkg}" ]; then
|
||||||
info "Found ${atom} at ${binpkg}"
|
info "Found ${atom} at ${binpkg}"
|
||||||
qtbz2 -O -t "${binpkg}" | \
|
qtbz2 -O -t "${binpkg}" | \
|
||||||
sudo tar -C "${rootfs}" -xj --wildcards './usr/share/SLSA'
|
lbzcat -d -c - | \
|
||||||
|
sudo tar -C "${rootfs}" -x --wildcards './usr/share/SLSA'
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
warn "Missing SLSA information for ${atom}"
|
warn "Missing SLSA information for ${atom}"
|
||||||
|
@ -44,7 +44,8 @@ extract_prod_gcc() {
|
|||||||
# /usr/lib/gcc/x86_64-cros-linux-gnu/$version/*
|
# /usr/lib/gcc/x86_64-cros-linux-gnu/$version/*
|
||||||
# Instead we extract them to plain old /usr/lib
|
# Instead we extract them to plain old /usr/lib
|
||||||
qtbz2 -O -t "${pkg}" | \
|
qtbz2 -O -t "${pkg}" | \
|
||||||
sudo tar -C "${root_fs_dir}" -xj \
|
lbzcat -d -c - | \
|
||||||
|
sudo tar -C "${root_fs_dir}" -x \
|
||||||
--transform 's#/usr/lib/.*/#/usr/lib64/#' \
|
--transform 's#/usr/lib/.*/#/usr/lib64/#' \
|
||||||
--wildcards './usr/lib/gcc/*.so*' \
|
--wildcards './usr/lib/gcc/*.so*' \
|
||||||
--wildcards './usr/share/SLSA'
|
--wildcards './usr/share/SLSA'
|
||||||
|
Loading…
Reference in New Issue
Block a user