From 7676c4fd26c62a4070314eb63d97cbeb9da2f5b9 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 3 May 2021 15:18:33 -0400 Subject: [PATCH] Restore EL8 treatment The changes caused EL8 to lose some required special treatment. --- confluent_osdeploy/el8/profiles/default/scripts/pre.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index ad5cc63a..f3a5a730 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -15,6 +15,12 @@ exec >> /tmp/confluent-pre.log exec 2>> /tmp/confluent-pre.log tail -f /tmp/confluent-pre.log > /dev/tty & logshowpid=$! +/usr/libexec/platform-python /etc/confluent/apiclient >& /dev/null +nicname=$(ip link|grep ^$(cat /tmp/confluent.ifidx): | awk '{print $2}' | awk -F: '{print $1}') +nmcli c u $nicname +while ip -6 addr | grep tentative > /dev/null; do + sleep 0.5 +done nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}') locale=$(grep ^locale: /etc/confluent/confluent.deploycfg) locale=${locale#locale: } @@ -62,6 +68,7 @@ touch /tmp/addonpackages if [ "$cryptboot" == "tpm2" ]; then LUKSPARTY="--encrypted --passphrase=$(cat /etc/confluent/confluent.apikey)" echo $cryptboot >> /tmp/cryptboot + echo clevis-dracut >> /tmp/cryptpkglist fi