diff --git a/base/add-backports.sh b/base/add-backports.sh new file mode 100755 index 00000000..c14a8bfc --- /dev/null +++ b/base/add-backports.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# The mkosi sandbox environment should have a debian backports source list +# that matches the archive timestamp of the main release. +# See https://github.com/systemd/mkosi/issues/1755 +MIRROR=$(jq -r .Mirror /work/config.json) +if [ "$MIRROR" = "null" ]; then + MIRROR="http://deb.debian.org/debian" +fi + +cat > "$SRCDIR/mkosi.builddir/debian-backports.sources" <