Slackware UEFI boot fix
If boot device has been replaced (M.2 disk) or CMOS is cleared (battery drained) on a Slackware installation that uses UEFI and elilo, here is a quick fix:
- Edit BIOS settings: Enable UEFI boot and turn off CSM
 - Boot an (USB) installation image (Slackware 15)
 - Mount the EFI System Partition (mount /dev/nvme0n1p1 /boot/efi)
 - Backup the content in /boot/efi/EFI/Slackware/ (elilo.conf, vmlinuz, initrd.gz)
 - Run the eliloconfig script
 - Restore elilo.conf and kernel files from backup (or edit/adapt new elilo.conf)
 - Reboot