Skip to content

Instantly share code, notes, and snippets.

@fishd72
Created October 3, 2025 11:53
Show Gist options
  • Save fishd72/8897fa7d95c561df4a12d49cc690ed98 to your computer and use it in GitHub Desktop.
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
#! /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