mirror of
https://git.rockylinux.org/rocky/pungi-rocky.git
synced 2024-11-24 22:01:26 +00:00
38 lines
969 B
Bash
Executable File
38 lines
969 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
echo "Cloning upstream pungi"
|
|
git clone https://gitlab.com/redhat/centos-stream/release-engineering/pungi-centos.git -b centos-9-stream /var/tmp/c9s
|
|
|
|
echo "Copying shared data"
|
|
if [ -d "shared" ]; then
|
|
/bin/cp /var/tmp/c9s/shared/* shared/
|
|
fi
|
|
|
|
echo "Copying prepopulate"
|
|
/bin/cp /var/tmp/c9s/prepopulate.json .
|
|
|
|
echo "Copying variants"
|
|
/bin/cp /var/tmp/c9s/variants.xml .
|
|
|
|
echo "Changing to rocky where required in prepopulate"
|
|
while read -r pattern; do
|
|
sscript+="$pattern;"
|
|
done <<EOF
|
|
s/"redhat-release"/"rocky-release"/g
|
|
s/"redhat-release\..*"/"rocky-release.noarch"/g
|
|
s/"redhat-release-eula\..*"/"rocky-release-eula.noarch"/g
|
|
s/"redhat-indexhtml/"rocky-indexhtml/g
|
|
s/"redhat-logos/"rocky-logos/g
|
|
s/"redhat-backgrounds/"rocky-backgrounds/g
|
|
s/"redhat-sb-certs/"rocky-sb-certs/g
|
|
EOF
|
|
sed -i "$sscript" prepopulate.json
|
|
|
|
echo "Generating yaml"
|
|
/bin/bash ./generate-prepop-yaml
|
|
|
|
rm -rf /var/tmp/c9s
|
|
|
|
git status
|
|
echo "Completed. Check status above."
|