Building from source

Matthew Seaman matthew at FreeBSD.org
Tue Jan 5 18:19:03 UTC 2021


On 04/01/2021 19:41, Janos Dohanics wrote:

> However, https://www.freebsd.org/doc/handbook/makeworld.html does not
> mention single user mode.

That documentation is in need of updating, since the switch of the src 
repo from SVN to git last month.  It also still recommends mergemaster 
which is (or will soon be) deprecated in HEAD and gone in FreeBSD-13 -- 
you should use etcupdate instead.

Having said that, aside from the way you checkout the sources, and the 
mergester vs etcupdate thing, the procedure in the current version of 
the handbook is correct.

> Should I assume that these days best practice allows rebuilding
> world/kernel without needing to boot into single user mode?

It hasn't actually been necessary to buildworld or buildkernel in single 
user mode for as long as I've been doing that, which is as far back as 
FreeBSD-3.2.  Nor do you need to be in single user mode to do either the 
installkernel or installworld steps -- although as shown, it can be good 
idea to reboot to a new kernel before upgrading to your new world.  Even 
that isn't entirely necessary if you're tracking one of the -RELEASE or 
-STABLE branches and just using the GENERIC kernel.

Although if you do happen to be running on a ZFS machine, then the 
recommended way to upgrade is to use the boot environments feature. 
There's plenty of articles on the net about how to do that, or feel free 
to ask here if this is something relevant to you.

	Cheers,

	Matthew



-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20210105/2ff4460a/attachment.sig>


More information about the freebsd-questions mailing list