Files
Anees Iqbal 7867384c0a 🆕 Give OVMF's package a second source, and name each when all fail
On 2026-11-21 archive.archlinux.org, the OVMF package's only source,
answered nothing over IPv4, and a fresh install made no VM. The package now
comes from the Arch Linux Archive, or else from its mirror at
umea.archive.pkgbuild.com (Arch's infrastructure docs/servers.md, "Archive
Mirrors"), which serves the same file, with the pinned SHA-256, and answers
ranges.

- A pinned file's sources are tried in order, and the pinned hash decides:
  a source that fails, or whose file has another hash, hands the download
  to the next, which goes on from the .part file the earlier one left.
  Stopping (Ctrl+C) stops; it doesn't hand over.
- A source with another after it gives up after 2 failed requests in a row
  instead of 10 (Download::tries), so a host that answers nothing delays
  the download about a minute and a half, not nine minutes. The last
  source keeps all 10.
- When every source fails, the error lists each source and what it
  answered, and says what to do: try again later, or put the file at its
  path in the cache, where it is used if its SHA-256 matches. The
  interactive interface prints it line by line.
- OpenCore's release and OcBinaryData keep their one source and their own
  errors.
- The tests fake the network with an HTTP server on 127.0.0.1: the order,
  the shorter handover, the error's text, a file put in the cache by hand,
  stopping, and a file with one source.
- CHANGELOG.md starts here.

With an empty cache and the archive down, `reims-util opencore` wrote OVMF
from the mirror in 1 min 39 s.
2026-11-21 16:22:59 -08:00

720 B

Changelog

Unreleased

  • OVMF's package, edk2-ovmf-202608-1-any.pkg.tar.zst, has a second source: the Arch Linux Archive's mirror at umea.archive.pkgbuild.com, tried when archive.archlinux.org fails. On 2026-11-21 the archive answered nothing over IPv4 and a fresh install made no OVMF; the mirror served the same file, with the pinned SHA-256. The first source now gives up after 2 failed requests in a row instead of 10, so a dead host delays the download by about a minute and a half.
  • When every source of the package fails, the error names each source and what it answered, and says where to put the file by hand: in ~/.cache/reims-util, where it is used if its SHA-256 matches the pin.