add generate_comps mangler

This commit is contained in:
Louis Abel 2022-08-08 12:47:16 -07:00
parent a1734103bd
commit 52d1bca6f8
Signed by: label
GPG Key ID: B37E62D143879B36
2 changed files with 24 additions and 0 deletions

View File

@ -7,3 +7,4 @@ LIST=${LIST:-mirrorlist}
MIRRORLIST_BASE="http://mirrors.rockylinux.org/${LIST}"
MIRROR_DISPLAY_COUNT=1
GIT_URL="https://git.rockylinux.org"

23
mangle/generate_comps Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
source common
if [ ! -f "/usr/bin/pungi-koji" ]; then
echo "You must have pungi installed."
exit 1
fi
if [[ $# -eq 0 ]]; then
echo "You must provide a major version."
exit 1
fi
VER="${1}"
BRANCH="r${VER}"
REPO="${GIT_URL}/rocky/pungi-rocky.git"
CMD="/usr/bin/pungi-koji --production --no-latest-link --just-phase init --config rocky.conf --compose-dir /var/tmp/composes/ --label RC-${VER}"
git clone ${REPO} -b ${BRANCH} /var/tmp/pungi
pushd /var/tmp/pungi
${CMD}
popd