🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.current
1 messages
1 total messages Started by Stéphane Rochoy Fri, 09 Oct 2026 06:41
Re: Questions
#6
Author: Stéphane Rochoy
Date: Fri, 09 Oct 2026 06:41
31 lines
4954 bytes
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


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads