#!/bin/bash # End of the spike: remove the test entries, the ESP one-shot and the BootNext loader + firmware entry. KEEP the explicit # GRUB_DEFAULT the setup wrote (the kernel this box runs and booted healthily); the original file stays as *.felhom-spike-orig. set -uo pipefail rm -f /etc/grub.d/01_felhom_oneshot /etc/grub.d/41_felhom_spike /boot/efi/EFI/proxmox/felhom-oneshot.env bash /root/spike-bootnext-undo.sh >/dev/null 2>&1 update-grub 2>&1 | tail -1 echo "felhom lines in grub.cfg: $(grep -c felhom /boot/grub/grub.cfg)" grep -m1 '^GRUB_DEFAULT' /etc/default/grub; uname -r efibootmgr | grep -E 'BootOrder|felhom|BootNext' | cut -c1-80; ls /boot/efi/EFI