From 7ec9166e80c192754e4bd2902b44cd0cd5826809 Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Fri, 10 Dec 2021 12:42:54 -0500 Subject: [PATCH] Sync CS9 shipped content rather than its buildroot content Signed-off-by: Mohan Boddu --- roles/batcave/files/centos-9s-sync | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/roles/batcave/files/centos-9s-sync b/roles/batcave/files/centos-9s-sync index aa2cf761d7..62cae2fc1e 100644 --- a/roles/batcave/files/centos-9s-sync +++ b/roles/batcave/files/centos-9s-sync @@ -1,17 +1,20 @@ #!/bin/sh -SERVER=kojihub.stream.centos.org -STREAM_TOPDIR=kojifiles/repos/c9s-build/latest/ +## Set up variables we use +RSYNC='/usr/bin/rsync' +RS_OPT="-avSHP --numeric-ids" +#RS_DEADLY="--delete --delete-excluded --delete-delay --delay-updates" +RS_DEADLY="--delete --delete-delay --delay-updates" +CENT_EXCLUDES="--exclude=isos --exclude=kickstart --exclude=images" -## mirror CentOS-9 Stream +SERVER=centos-master01.iad2.fedoraproject.org -DESTDIR=/mnt/fedora/app/fi-repo/centos/centos-9-stream +## Mirror CentOS-9-Stream -mkdir -p ${DESTDIR} +RSYNC_DESTDIR=/mnt/fedora/app/fi-repo/centos/centos-9-stream/ +RSYNC_MOD="CentOS-Stream-Ref/9-stream/" -for i in `echo aarch64 i386 ppc64le s390x x86_64` -do - mkdir -p ${DESTDIR}/${i} - cd ${DESTDIR} - reposync --download-metadata --disablerepo=* --repofrompath=$i,https://$SERVER/$STREAM_TOPDIR/$i --enablerepo=$i -done +mkdir -p ${RSYNC_DESTDIR} + + +${RSYNC} ${RS_OPT} ${RS_DEADLY} ${CENT_EXCLUDES} ${SERVER}::${RSYNC_MOD} ${RSYNC_DESTDIR}