(works on Slackware 14.2+, not tested on 14.1 and before)
sudo efibootmgr
Will return something like:
BootCurrent: 0001 Timeout: 10 seconds BootOrder: 0000,0001,0004,9999 Boot0000* Windows Boot Manager Boot0001* Slackware Boot0004* Internal Hard Disk Boot9999* USB Drive (UEFI)
sudo efibootmgr -o 0001,0000,0004,9999
Will return something like:
BootCurrent: 0001 Timeout: 10 seconds BootOrder: 0001,0000,0004,9999 Boot0000* Windows Boot Manager Boot0001* Slackware Boot0004* Internal Hard Disk Boot9999* USB Drive (UEFI)
When you remove/replace old OS installs, the EFI boot menu retains references to them. To remove these old references:
List the current boot entries:
sudo efibootmgr
Then delete the desired entry:
sudo efibootmgr -Bb 0000
WHERE: 0000 is the menu entry number.