From d17a2054d4bff1e5208fb64ea3126aaf5cc05890 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 3 Jun 2020 16:22:41 -0400 Subject: [PATCH] Add warning about encryptboot to Ubuntu --- .../custom-installation/hooks/casper-bottom.sh | 1 + .../ubuntu20.04/profiles/default/scripts/pre.sh | 10 ++++++++++ 2 files changed, 11 insertions(+) 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)