install: register UEFI NVRAM entry + copy debug log to USB
Two missing pieces explaining "install said success but won't boot":
1. UEFI NVRAM entry was never created. ThinkPads (and most non-Mac
firmware) only fall back to /EFI/BOOT/BOOTX64.EFI on REMOVABLE media
— internal disks need an explicit NVRAM entry pointing at the loader.
We installed the file but never told the firmware about it. After
reboot the firmware would skip the new ESP, fall through to the next
boot device (USB, or a stale Fedora "fedora" entry pointing at a
now-deleted grubx64.efi).
Now after a successful copy: remove any prior "AC Native OS" entries
(idempotent reinstall), then `efibootmgr -c -d <disk> -p <part> -L
'AC Native OS' -l '\EFI\BOOT\BOOTX64.EFI'`. -c prepends to BootOrder
so we boot first. efibootmgr is already bundled in initramfs;
/sys/firmware/efi/efivars is mounted by init.
2. Install debug log lived only in tmpfs (/tmp/install-debug.log) so
it died at reboot — making post-mortem of partial failures
impossible. Now copy it to /mnt/install-debug.log on the boot USB
at the end of every install attempt (success or fail), so
subsequent diagnosis can read sfdisk/mkfs/efibootmgr output.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>