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