diff --git a/install/login/limine-snapper.sh b/install/login/limine-snapper.sh index afd05b15..414d9020 100644 --- a/install/login/limine-snapper.sh +++ b/install/login/limine-snapper.sh @@ -85,6 +85,22 @@ echo "mkinitcpio hooks re-enabled" sudo limine-update +# Verify that limine-update actually added boot entries +if ! grep -q "^/+" /boot/limine.conf; then + echo "Error: limine-update failed to add boot entries to /boot/limine.conf" >&2 + echo "Debug: Installed packages:" >&2 + pacman -Q limine limine-mkinitcpio-hook limine-snapper-sync 2>&1 >&2 + echo "Debug: /etc/default/limine:" >&2 + cat /etc/default/limine 2>&1 >&2 + echo "Debug: Kernels found:" >&2 + ls /usr/lib/modules/*/pkgbase 2>&1 >&2 + echo "Debug: UKI files:" >&2 + ls /boot/EFI/Linux/ 2>&1 >&2 + echo "Debug: ESP mount:" >&2 + findmnt /boot 2>&1 >&2 + exit 1 +fi + if [[ -n $EFI ]] && efibootmgr &>/dev/null; then # Remove the archinstall-created Limine entry while IFS= read -r bootnum; do