Re: Questions
- Reply: Ruslan Zalata : "Questions"
- In reply to: Ruslan Zalata : "Questions"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
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