Skip to content

Commit

Permalink
fixup: repack
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakash Surya committed May 8, 2024
1 parent 9b68ebf commit c50cff5
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion packages/grub2/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -54,7 +56,25 @@ function fetch() {
"8d0fe5bee9380906be7006fcb069ef494f07c76f07e66ae7497cdb4e071955da"

logmust tar -xvf "grub-2.12-1ubuntu7.tar.gz"
logmust cp grub-2.12-1ubuntu7/* artifacts

logmust cd grub-2.12-1ubuntu7
for deb in *; do
DIR=$(mktemp -d)
logmust cd "$DIR"

logmust ar x "$WORKDIR/grub-2.12-1ubuntu7/$deb"

logmust zstd -d <control.tar.zst | xz >control.tar.xz
logmust zstd -d <data.tar.zst | xz >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() {
Expand Down

0 comments on commit c50cff5

Please sign in to comment.