Created
October 3, 2025 11:53
-
-
Save fishd72/8897fa7d95c561df4a12d49cc690ed98 to your computer and use it in GitHub Desktop.
Secure boot fix for Proxmox 8.x installed on top of Debian 12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
apt update | |
apt install --reinstall proxmox-secure-boot-support -y | |
apt remove --purge linux-image-amd64 'linux-image-6.1*' | |
apt full-upgrade -y | |
umount /boot/efi | |
mkdir -p /boot/efi/EFI/proxmox | |
proxmox-boot-tool init /dev/nvme0n1p1 grub | |
mount /dev/nvme0n1p1/boot/efi | |
echo 'grub-efi-amd64 grub2/force_efi_extra_removable boolean true' | debconf-set-selections -v -u | |
apt install --reinstall grub-efi-amd64 | |
efibootgr -v | |
echo 'Ensure the proxmox value is selected using "efiboot -o XXXX" where applicable* | |
echo ' ' | |
echo 'Then run "sudo proxmox-boot-tool refresh" to complete.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment