From b6034f2e716f8074b293cf74906a9b904423e746 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 16 Mar 2022 09:40:55 -0400 Subject: [PATCH] Update to fix new profiles and accomodate old profiles /etc/confluent/apiclient is expected by older profiles --- .../initramfs/usr/lib/dracut/hooks/pre-pivot/01-confluent.sh | 1 + confluent_osdeploy/el8/profiles/default/scripts/pre.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-pivot/01-confluent.sh b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-pivot/01-confluent.sh index 75e913fd..89963143 100644 --- a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-pivot/01-confluent.sh +++ b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-pivot/01-confluent.sh @@ -21,3 +21,4 @@ for i in /ssh/*.ca; do done mkdir -p /sysroot/opt/confluent/bin cp /opt/confluent/bin/apiclient /sysroot/opt/confluent/bin +cp /opt/confluent/bin/apiclient /sysroot/etc/confluent/ diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index c6236918..80222fd6 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -88,7 +88,7 @@ fi export confluent_mgr confluent_profile nodename curl -sf https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/functions > /tmp/functions . /tmp/functions -confluentpython /etc/confluent/apiclient /confluent-public/os/$confluent_profile/kickstart.custom -o /tmp/kickstart.custom +confluentpython /opt/confluent/confluent/bin/apiclient /confluent-public/os/$confluent_profile/kickstart.custom -o /tmp/kickstart.custom run_remote pre.custom run_remote_parts pre.d confluentpython /etc/confluent/apiclient /confluent-public/os/$confluent_profile/kickstart -o /tmp/kickstart.base