Update post-pve-install.sh

tweak the N-series processor detection
This commit is contained in:
tteckster 2023-05-28 13:03:05 -04:00 committed by GitHub
parent a85205cb80
commit f2c54ba6de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ EOF
microcode="" microcode=""
cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+') cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+')
if [ "$cpu" == "GenuineIntel" ]; then if [ "$cpu" == "GenuineIntel" ]; then
if lscpu | awk '/Model name:.*N/ {exit 0} END {exit 1}'; then if lscpu | grep -qP 'Model name:.*N'; then
CHOICE=$(whiptail --title "N-SERIES PROCESSOR DETECTED" --menu "\nTo ensure compatibility with Proxmox VE on systems equipped with N-series processors, it is recommended to install the Proxmox 6.2 kernel.\n\nInstall the Proxmox 6.2 kernel now?" 16 58 2 \ CHOICE=$(whiptail --title "N-SERIES PROCESSOR DETECTED" --menu "\nTo ensure compatibility with Proxmox VE on systems equipped with N-series processors, it is recommended to install the Proxmox 6.2 kernel.\n\nInstall the Proxmox 6.2 kernel now?" 16 58 2 \
"yes" " " \ "yes" " " \
"no" " " 3>&1 1>&2 2>&3) "no" " " 3>&1 1>&2 2>&3)