Ruslan Zalata <[email protected]> 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
