I installed rEFInd and run refind-install. The generated boot entry works really well, but it defaults to the linux-lts kernel and I would like it to autostart with the linux-zen kernel.
So for what I have understood the only way to do that is create a manual boot stanza with all the configuration parameters.
Unfortunately even though I tried with different configurations, I am always met with an "Invalid loader file" error, all the while the automatic entry is working well with the same options I set in the manual one.
So far I have come up with something like this:
I know that something similar has already been posted, but the fact that the auto entry works tells me that there must be a way to configure the stanza in a way that refind can find the loader file.
I doubt you need a boot stanza for that - editing /boot/refind_linux.conf to pickup -zen should do it - even if you don't do it like mine (with variable boot params built in). Here's an example from one of my systems:
and the mods to /boot/efi/EFI/refind/refind.conf that enable variable usage.
section from refind.conf
# Comma-delimited list of strings to treat as if they were numbers for the
# purpose of kernel version number detection. These strings are matched on a
# first-found basis; that is, if you want to treat both "linux-lts" and
# "linux" as version strings, they MUST be specified as "linux-lts,linux",
# since if you specify it the other way, both vmlinuz-linux and
# vmlinuz-linux-lts will return with "linux" as the "version string," which
# is not wSummaryhat you'd want. Also, if the kernel or initrd file includes both a
# specified string and digits, the "version string" includes both. For
# instance, "vmlinuz-linux-4.8" would yield a version string of "linux-4.8".
# This option is intended for Arch and other distributions that don't include
# version numbers in their kernel filenames, but may provide other uniquely
# identifying strings for multiple kernels. If this feature causes problems
# (say, if your kernel filename includes "linux" but the initrd filename
# doesn't), be sure this is set to an empty string
# (extra_kernel_version_strings "") or comment out the option to disable it.
# Default is no extra version strings
#
extra_kernel_version_strings linux-zen,linux-lts,linux
Hopefully this will solve the difficulty!
it boots my -zen ZFS-enabled kernel by default as shown
Sorry for the late reply but thank you! This solved my issue! I really didn't think that there was no other way than to create a manual boot stanza, but reading online I have found out that it can be really tricky to make it work.
So thanks again for your time!