Last active
June 26, 2021 20:04
-
-
Save kpcyrd/dcae45376675dcb446a0f1fcb4e9ee92 to your computer and use it in GitHub Desktop.
Test repro alpine raspi images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -ex | |
## this needs to be run once for ./mkimage.sh to work | |
# doas cp -v /usr/share/apk/keys/armhf/* /etc/apk/keys/ | |
mkdir -p ~/out | |
rm -vf ~/out/*/* ~/out/diff.html | |
for x in 1 2; do | |
mkdir -p ~/out/"$x" | |
SOURCE_DATE_EPOCH=0 ./mkimage.sh --tag edge --outdir ~/out/"$x" \ | |
--arch armhf --hostkeys \ | |
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \ | |
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \ | |
--profile rpi | |
done | |
diffoscope --html ~/out/diff.html \ | |
--no-default-limits \ | |
--max-page-diff-block-lines 4096 \ | |
~/out/1/alpine-rpi-edge-armhf.tar.gz \ | |
~/out/2/alpine-rpi-edge-armhf.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment