From 76fdf59122af53da59b6692e59c2a805860fbd0b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 3 Mar 2022 08:34:57 -0500 Subject: [PATCH] Change genesis functions location Put it in a place consistent with more normal use. --- .../genesis/initramfs/opt/confluent/bin/rungenesis | 4 ++-- confluent_osdeploy/genesis/profiles/default/scripts/onboot.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis index d626e870..2e888928 100644 --- a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis +++ b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis @@ -155,8 +155,8 @@ done /usr/sbin/sshd confluent_profile=$(grep ^profile: /etc/confluent/confluent.deploycfg | awk '{print $2}') export confluent_profile -/usr/libexec/platform-python /opt/confluent/bin/apiclient /confluent-public/os/$confluent_profile/scripts/functions > /tmp/functions -. /tmp/functions +/usr/libexec/platform-python /opt/confluent/bin/apiclient /confluent-public/os/$confluent_profile/scripts/functions > /etc/confluent/functions +. /etc/confluent/functions set_confluent_vars export confluent_mgr echo "Running https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/onboot.sh" diff --git a/confluent_osdeploy/genesis/profiles/default/scripts/onboot.sh b/confluent_osdeploy/genesis/profiles/default/scripts/onboot.sh index a05957d4..65347eab 100644 --- a/confluent_osdeploy/genesis/profiles/default/scripts/onboot.sh +++ b/confluent_osdeploy/genesis/profiles/default/scripts/onboot.sh @@ -1,5 +1,5 @@ #!/bin/sh -. /tmp/functions +. /etc/confluent/functions # This runs whenever this genesis profile boots for customization # purposes