diff --git a/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh b/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh index 93b2a338..457159c5 100755 --- a/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh +++ b/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh @@ -61,6 +61,7 @@ fi if [ ! -z "$cons" ]; then echo "Installation will proceed on graphics console, autoconsole not supported during autoinstall phase" > ${cons%,*} echo "Progress can be checked by using ssh to access and running the screendump command" > ${cons%,*} + echo ${cons%,*} > /root/tmp/autoconsdev #fcmdline="$fcmdline console=${cons#/dev/}" fi echo $fcmdline > /custom-installation/confluent/fakecmdline diff --git a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/pre.sh b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/pre.sh index 130a0cfe..e4a1e8a3 100755 --- a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/pre.sh @@ -1,4 +1,14 @@ #!/bin/bash +deploycfg=/custom-installation/confluent/confluent.deploycfg + +cryptboot=$(grep encryptboot: $deploycfg|sed -e 's/^encryptboot: //') +if [ "$cryptboot" != "" ] && [ "$cryptboot" != "none" ] && [ "$cryptboot" != "null" ]; then + echo "****Encrypted boot requested, but not implemented for this OS, halting install" > /dev/console + [ -f '/tmp/autoconsdev' ] && (echo "****Encryptod boot requested, but not implemented for this OS,halting install" >> $(cat /tmp/autoconsdev)) + while :; do sleep 86400; done +fi + + cat /custom-installation/ssh/*.rootpubkey > /root/.ssh/authorized_keys nodename=$(grep ^NODENAME: /custom-installation/confluent/confluent.info|awk '{print $2}') apikey=$(cat /custom-installation/confluent/confluent.apikey)