Merge "Mirror the only Fedora Atomic image used by Magnum"

This commit is contained in:
Zuul 2020-10-07 20:21:04 +00:00 committed by Gerrit Code Review
commit eb263527ea
1 changed files with 6 additions and 8 deletions

View File

@ -102,10 +102,12 @@ for REPO in updates/31 updates/32; do
echo_ts "... done"
done
MIRROR="rsync://pubmirror2.math.uh.edu/fedora-buffet/alt/atomic"
# Atomic is EOL but this particular image is used by magnum. We mirror
# only this specific version.
MIRROR="rsync://pubmirror2.math.uh.edu/fedora-buffet/alt/atomic/stable/Fedora-29-updates-20190820.0"
if ! [ -f $BASE/atomic ]; then
$K5START mkdir -p $BASE/atomic
if ! [ -f $BASE/atomic/stable/Fedora-29-updates-20190820.0 ]; then
$K5START mkdir -p $BASE/atomic/stable/Fedora-29-updates-20190820.0
fi
echo_ts "Running rsync atomic..."
@ -114,10 +116,6 @@ $K5START rsync -rltvz \
--delete-excluded \
--exclude="testing/" \
--exclude="Atomic/" \
--exclude="Fedora-Atomic-25-*/" \
--exclude="Fedora-Atomic-26-*/" \
--exclude="Fedora-Atomic-27-*/" \
--exclude="Fedora-Atomic-28-*/" \
--exclude="ppc64le/" \
--exclude="images/*.raw.xz" \
--exclude="images/*.box" \
@ -128,7 +126,7 @@ $K5START rsync -rltvz \
--exclude="os/EFI/BOOT/" \
--exclude="pxeboot/" \
--exclude="isolinux/" \
$MIRROR/ $BASE/atomic/
$MIRROR/ $BASE/atomic/stable/Fedora-29-updates-20190820.0/
echo_ts "... done"
# TODO(pabelanger): Validate rsync process