I have the problem that I don’t know how to access the efi folder to set the default kernel to the zen kernel. I can change the kernel during boot by pressing F1 and select default, but with every update of the kernel the setting gets reset.
So I want to access the efi folder to edit loader.conf file to set the zen kernel with wildcards (?) to be the default and after an update the setting remains.
sudo nano /efi/loader/loader.conf and edit the file as desired.
Press Ctrl-O, enter and Ctrl-X to save and exit nano.
How to change the default entry to boot
There is a default entry inside /efi/loader/loader.conf that determine the default boot entry.
On a new install, it will look something like this:
default 665eca4ae83246df8ec17d1cbc6a1763*
That first string of characters is you entry token which identifies the install. That is important if you are dual-booting with another Linux, otherwise it can be replaced with *. That line supports wildcards and so if you want to boot the LTS kernel by default you could use something like this:
default 665eca4ae83246df8ec17d1cbc6a1763*lts.conf
Alternatively, if you want to boot the mainline kernel by default, something like this should work: