From 4a9b14554cb5bb48d9a3f39167dc4dbc4b854f73 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Mon, 5 Jul 2021 19:59:39 -0700 Subject: [PATCH] add variant fixes --- sync/prep-staging-8.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/sync/prep-staging-8.sh b/sync/prep-staging-8.sh index 1819e2d..7179faf 100644 --- a/sync/prep-staging-8.sh +++ b/sync/prep-staging-8.sh @@ -119,4 +119,36 @@ for x in "${ARCHES[@]}"; do rm /tmp/modules.yaml sleep 1 done + + echo "** Fix variants" + TREEINFO_VAR="${COMPOSE_DIR}/BaseOS/${x}/os/.treeinfo" + test -f "${TREEINFO_VAR}" + treeinfo_retval=$? + test -x /usr/bin/python3 + python_retval=$? + # There is an awk way to do this, but it was easier to implement python and + # cat heredoc together. It felt cleaner. This was a trick I had used in a + # previous life when I had to admin Solaris systems, and I needed a way to + # add a solaris 10 system into FreeIPA (it was not fun, let me tell you). But + # the take away is I learned something kind of on the fly and well, it worked. + # Emails should have stamps. + if [ "$treeinfo_retval" -eq 0 ] && [ "$python_retval" -eq 0 ]; then + cat <