Re: Selecting the scheduler from boot menu

From: Milan Obuch <freebsd-hackers_at_dino.sk>
Date: Sat, 31 Jan 2026 20:35:15 UTC
On Sat, 31 Jan 2026 12:21:59 -0800
Steve Kargl <kargls@comcast.net> wrote:

> All,
> 
> Is it possible modify the boot menu to select 4BSD or ULE
> during the boot process?  I've looked at the code in
> src/stand/forth, but unfortunately the language is foreign
> to me.  Currently, one boots into FreeBSD, checks the
> kern.sched.name, and then may need to edit /boot/loader.conf
> to change to the other scheduler, and then reboot.
> 

Which version are you working on? I think something recent, maybe
16-CURRENT. Loader was rewritten in lua some time ago.

Hint from Minsoo Choo is good one, albeit manual - it is still quite
quick one, as described.

Regards,
Milan