diff --git a/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.firstboot b/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.firstboot index a6dcac35..b3e0433e 100644 --- a/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.firstboot +++ b/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.firstboot @@ -1,4 +1,5 @@ #!/bin/bash # Add this to firstboot.d -apt-get install proxmox-ve postfix open-iscsi chrony +export DEBIAN_FRONTEND=noninteractive +apt-get -y install proxmox-ve postfix open-iscsi chrony < /dev/null diff --git a/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.post b/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.post index f4ba3fa2..fc413997 100644 --- a/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.post +++ b/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.post @@ -1,18 +1,20 @@ #!/bin/bash # This script would run in post.d # +export DEBIAN_FRONTEND=noninteractive echo "deb [arch=amd64] http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg sum=$(sha512sum /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg) if [ "$sum" -ne "7da6fe34168adc6e479327ba517796d4702fa2f8b4f0a9833f5ea6e6b48f6507a6da403a274fe201595edc86a84463d50383d07f64bdde2e3658108db7d6dc87" ]; then echo "Mismatch in fingerprint!" + rm /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg exit 1 fi -apt-get update && apt-get full-upgrade +apt-get update && apt-get -y full-upgrade < /dev/null -apt-get install proxmox-default-kernel -apt-get remove linux-image-amd64 'linux-image-6.1*' +apt-get -y install proxmox-default-kernel < /dev/null +apt-get -y remove linux-image-amd64 'linux-image-6.1*' < /dev/null update-grub -apt-get remove os-probec +apt-get -y remove os-prober < /dev/null