vault no norepodata
This commit is contained in:
parent
5f89f4da2f
commit
eaf545acc4
@ -2,6 +2,8 @@
|
|||||||
ATTRTEST="/var/tmp/attrtest.img"
|
ATTRTEST="/var/tmp/attrtest.img"
|
||||||
ATTRMNT="/mnt/attrtest"
|
ATTRMNT="/mnt/attrtest"
|
||||||
|
|
||||||
|
trap 'umount /mnt/attrtest ; /bin/rm -f ${ATTRTEST} ; /bin/rm -rf ${ATTRMNT}' EXIT
|
||||||
|
|
||||||
r_log "attr" "Checking that *attr works"
|
r_log "attr" "Checking that *attr works"
|
||||||
dd if=/dev/zero of="${ATTRTEST}" bs=1024000 count=100 &>/dev/null
|
dd if=/dev/zero of="${ATTRTEST}" bs=1024000 count=100 &>/dev/null
|
||||||
r_checkExitStatus $?
|
r_checkExitStatus $?
|
||||||
@ -14,8 +16,3 @@ setfattr -n user.test "${ATTRMNT}/testfile"
|
|||||||
getfattr "${ATTRMNT}/testfile" | grep -oq "user.test"
|
getfattr "${ATTRMNT}/testfile" | grep -oq "user.test"
|
||||||
|
|
||||||
r_checkExitStatus $?
|
r_checkExitStatus $?
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
umount /mnt/attrtest
|
|
||||||
/bin/rm -f "${ATTRTEST}"
|
|
||||||
/bin/rm -rf "${ATTRMNT}"
|
|
||||||
|
@ -37,7 +37,7 @@ RELEASE_COMPOSE_ROOT="${COMPOSE_ROOT}/${MAJOR}/latest-${SHORT}-${MAJOR}${COMPOSE
|
|||||||
# consistency.
|
# consistency.
|
||||||
NONMODS_REPOS=(
|
NONMODS_REPOS=(
|
||||||
extras
|
extras
|
||||||
Devel
|
devel
|
||||||
plus
|
plus
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Syncs everything from production to vault
|
# Syncs everything from production to vault
|
||||||
|
|
||||||
|
DATE="$(date +%Y%m%d%H%M%S)"
|
||||||
|
|
||||||
if [[ "$RLREL" == "lh" ]] || [[ "$RLREL" == "beta" ]]; then
|
if [[ "$RLREL" == "lh" ]] || [[ "$RLREL" == "beta" ]]; then
|
||||||
echo "Lookahead nor Beta should be vaulted"
|
echo "Lookahead nor Beta should be vaulted"
|
||||||
exit 1
|
exit 1
|
||||||
@ -19,6 +21,32 @@ if [ $ret_val -eq "0" ]; then
|
|||||||
TARGET="${PRODUCTION_ROOT}/${VAULT_STUB}/${REV}"
|
TARGET="${PRODUCTION_ROOT}/${VAULT_STUB}/${REV}"
|
||||||
mkdir -p "${TARGET}"
|
mkdir -p "${TARGET}"
|
||||||
rsync_no_delete_prod_no_repodata "${REV}" "${TARGET}"
|
rsync_no_delete_prod_no_repodata "${REV}" "${TARGET}"
|
||||||
echo "Syncing to the vault completed. Please run the file list script."
|
|
||||||
fi
|
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."
|
||||||
|
Loading…
Reference in New Issue
Block a user