Re: Questions

From: Stéphane_Rochoy <stephane.rochoy_at_stormshield.eu>
Date: Fri, 09 Oct 2026 06:41:33 UTC
Ruslan Zalata <rz@fabmicro.ru> writes:

> BTW, can we instruct loader on its prompt what config file to use for
> this boot ? I'm facing this issue quite often toying with different
> kernel modules, sometimes I want to be able to choose what config loader
> uses instead of default.

There's a bunch of variables that drive what config files are used by
the loader itself and later by the kernel (as it populate its
environment).

See loader_conf_dirs, loader_conf_files, product_vars and
local_loader_conf_files in loader.conf(5) in particular.

My bet is that you could:
- populate /boot/loader.conf.d/foo and /boot/loader.conf.d/bar with
  various config files
- set product_vars="loader_profile"
- and set loader_profile="foo" or loader_profile="bar" via the loader's
  interactive mode to switch between your "profiles"

If running an EFI platform, you could even probably leverage
efibootmgr(8)'s -e option to have an experience similar to what you get
with nextboot(8) IMO.

Stéphane