Fail loudly if we haven't added any boot entries

This commit is contained in:
David Heinemeier Hansson
2026-02-21 17:31:35 +01:00
parent f1cd65ca7a
commit 23604fbaec
+16
View File
@@ -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