mirror of
https://github.com/xcat2/confluent.git
synced 2026-01-11 18:42:29 +00:00
Fix Proxmox sample scripts for post/firstboot
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user