Hello,
for the last day I was trying to figure out why Slax would not boot on my laptop with UEFI (but was booting fine on my other older laptop with legacy bios).
After a bit of trial and error, I could find a simple fix. (At least it works for me, on both of my laptops now.)
The problem is that when booting in UEFI with the config from /EFI/Boot/syslinux.cfg, it does a INCLUDE /slax/boot/syslinux.cfg, which in turns loads the UI module from: UI /slax/boot/vesamenu.c32 (first line)
But when in UEFI, we should be loading this module from EFI instead: /EFI/Boot/vesamenu.c32 (it is not the exact same module, don't know why)
So my suggestion is to simply change the first line of /slax/boot/syslinux.cfg to this instead:
UI vesamenu.c32
(e.g. remove the absolute path /slax/boot/, and use relative path)
This way, it will always load the correct module found in the current working directory, whether it is /slax/boot/ or /EFI/Boot/ (depending on the boot type).
I tested that this works on both EFI/LEGACY boot.
Thank you Tomas for this OS ! Cheers.