Skip to content

Commit

Permalink
vault no norepodata
Browse files Browse the repository at this point in the history
  • Loading branch information
nazunalika committed Nov 16, 2023
1 parent 5f89f4d commit eaf545a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
7 changes: 2 additions & 5 deletions func/core/pkg_attr/10-check-attr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand All @@ -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}"
2 changes: 1 addition & 1 deletion sync/common_9
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RELEASE_COMPOSE_ROOT="${COMPOSE_ROOT}/${MAJOR}/latest-${SHORT}-${MAJOR}${COMPOSE
# consistency.
NONMODS_REPOS=(
extras
Devel
devel
plus
)

Expand Down
30 changes: 29 additions & 1 deletion sync/vault-release-no-repodata.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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."

0 comments on commit eaf545a

Please sign in to comment.