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 ae9ebc5
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion packages/grub2/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,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.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 ae9ebc5

Please sign in to comment.