From 6a25efd6aa283866dd3a1a46c87390fb7916920f Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Wed, 8 May 2024 13:09:33 -0700 Subject: [PATCH] fixup: repack --- packages/grub2/config.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/packages/grub2/config.sh b/packages/grub2/config.sh index 3016ea9..474a38f 100644 --- a/packages/grub2/config.sh +++ b/packages/grub2/config.sh @@ -45,6 +45,8 @@ SKIP_COPYRIGHTS_CHECK=true # function fetch() { + logmust install_pkgs binutils zstd + logmust cd "$WORKDIR" local url="http://artifactory.delphix.com/artifactory/linux-pkg/misc-debs" @@ -54,7 +56,24 @@ function fetch() { "8d0fe5bee9380906be7006fcb069ef494f07c76f07e66ae7497cdb4e071955da" logmust tar -xvf "grub-2.12-1ubuntu7.tar.gz" - logmust cp grub-2.12-1ubuntu7/* artifacts + + for deb in grub-2.12-1ubuntu7/*; do + DIR=$(mktemp -d) + logmust cd "$DIR" + + logmust ar x "$deb" + + logmust zstd -d control.tar.xz + logmust zstd -d data.tar.xz + + # Re-create the Debian package in /tmp/ + logmust ar -m -c -a sdsd /tmp/$deb debian-binary control.tar.xz data.tar.xz + + logmust mv /tmp/$deb "$WORKDIR/artifacts" + + logmust cd - + logmust rm -r $DIR + done } function build() {