generate a desync index for the erofs

allows to desync... in theory anyway
This commit is contained in:
Harald Sitter
2025-08-14 20:47:46 +02:00
parent c4a62d2971
commit 3f455168d7
2 changed files with 5 additions and 1 deletions

View File

@@ -148,6 +148,9 @@ systemd-repart --no-pager --empty=allow --size=auto --dry-run=no --root=kde-linu
# Create a torrent for the image
./torrent-create.rb "$VERSION" "$OUTPUT" "$IMG"
go install -v github.com/folbricht/desync/cmd/desync@latest
~/go/bin/desync make "$ROOTFS_EROFS.caibx" "$ROOTFS_EROFS"
# TODO before accepting new uploads perform sanity checks on the artifacts (e.g. the tar being well formed)
# efi images and torrents are 700, make them readable so the server can serve them

View File

@@ -33,8 +33,9 @@ sha256sum -- *.raw >> SHA256SUMS
sha256sum -- *.tar.zst >> SHA256SUMS
sha256sum -- *.torrent >> SHA256SUMS
sha256sum -- *.erofs >> SHA256SUMS
sha256sum -- *.caibx >> SHA256SUMS
gpg --homedir="$GNUPGHOME" --output SHA256SUMS.gpg --detach-sign SHA256SUMS
scp -i "$SSH_IDENTITY" ./*.efi ./*.raw ./*.tar.zst ./*.torrent ./*.erofs "$REMOTE"
scp -i "$SSH_IDENTITY" ./*.efi ./*.raw ./*.tar.zst ./*.torrent ./*.erofs ./*.caibx "$REMOTE"
scp -i "$SSH_IDENTITY" SHA256SUMS SHA256SUMS.gpg "$REMOTE" # upload as last artifact to finalize the upload