From c38aac88df9ed12198169beda64dd1e9585e0dc7 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 22 Apr 2021 12:12:58 -0400 Subject: [PATCH] Avoid overwriting customized installdisk or partitioning --- confluent_osdeploy/el8/profiles/default/scripts/pre.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index 0d682a84..828374f0 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -74,8 +74,10 @@ curl -f https://$mgr/confluent-public/os/$profile/scripts/functions > /tmp/funct . /tmp/functions run_remote pre.custom run_remote_parts pre -run_remote_python getinstalldisk if [ -e /tmp/installdisk ]; then + run_remote_python getinstalldisk +fi +if [ -e /tmp/installdisk -a ! -e /tmp/partitioning ]; then echo clearpart --all --initlabel >> /tmp/partitioning echo ignoredisk --only-use $(cat /tmp/installdisk) >> /tmp/partitioning echo autopart --nohome $LUKSPARTY >> /tmp/partitioning