vault no norepodata
Some checks failed
Build empanada images for imagefactory / buildx (push) Failing after 5s
Build empanada container images for lorax / buildx (push) Successful in 2s

This commit is contained in:
Louis Abel 2023-11-16 13:59:52 -07:00
parent 5f89f4da2f
commit eaf545acc4
Signed by: label
GPG Key ID: B37E62D143879B36
3 changed files with 32 additions and 7 deletions

View File

@ -2,6 +2,8 @@
ATTRTEST="/var/tmp/attrtest.img"
ATTRMNT="/mnt/attrtest"
trap 'umount /mnt/attrtest ; /bin/rm -f ${ATTRTEST} ; /bin/rm -rf ${ATTRMNT}' EXIT
r_log "attr" "Checking that *attr works"
dd if=/dev/zero of="${ATTRTEST}" bs=1024000 count=100 &>/dev/null
r_checkExitStatus $?
@ -14,8 +16,3 @@ setfattr -n user.test "${ATTRMNT}/testfile"
getfattr "${ATTRMNT}/testfile" | grep -oq "user.test"
r_checkExitStatus $?
# Cleanup
umount /mnt/attrtest
/bin/rm -f "${ATTRTEST}"
/bin/rm -rf "${ATTRMNT}"

View File

@ -37,7 +37,7 @@ RELEASE_COMPOSE_ROOT="${COMPOSE_ROOT}/${MAJOR}/latest-${SHORT}-${MAJOR}${COMPOSE
# consistency.
NONMODS_REPOS=(
extras
Devel
devel
plus
)

View File

@ -1,6 +1,8 @@
#!/bin/bash
# Syncs everything from production to vault
DATE="$(date +%Y%m%d%H%M%S)"
if [[ "$RLREL" == "lh" ]] || [[ "$RLREL" == "beta" ]]; then
echo "Lookahead nor Beta should be vaulted"
exit 1
@ -19,6 +21,32 @@ if [ $ret_val -eq "0" ]; then
TARGET="${PRODUCTION_ROOT}/${VAULT_STUB}/${REV}"
mkdir -p "${TARGET}"
rsync_no_delete_prod_no_repodata "${REV}" "${TARGET}"
echo "Syncing to the vault completed. Please run the file list script."
fi
if [ "$RLVER" -eq "9" ]; then
echo "copying module data"
for repo in "${MODS[@]}"; do
for arch in "${ARCHES[@]}"; do
mkdir -p "${TARGET}/${repo}/${arch}/os/repodata"
cp "${REV}/${repo}/${arch}/os/repodata/*MODULES.yaml.gz" "/tmp/${repo}-${arch}-${DATE}.modules.yaml.gz"
pushd /tmp || exit 1
gunzip "/tmp/${repo}-${arch}-${DATE}.modules.yaml.gz"
popd || exit 1
cp "/tmp/${repo}-${arch}-${DATE}.modules.yaml" "${TARGET}/${repo}/${arch}/os/repodata/"
done
done
# groups
for repo in "${MODS_REPOS[@]}"; do
for arch in "${ARCHES[@]}"; do
createrepo_comps "${TARGET}/${repo}/${arch}/os" "${REV}" "${REV}/${repo}/${arch}/os/repodata/*GROUPS.xml"
done
done
# no groups
for repo in "${NONMODS_REPOS[@]}"; do
for arch in "${ARCHES[@]}"; do
createrepo_update "${TARGET}/${repo}/${arch}/os" "${REV}"
done
done
fi
echo "Syncing to the vault completed. Please run the file list script."