"make" in ports tells me "requires kernel source files in SRC_BASE=/usr/src." despite an up-to-date /usr/src

Matthew Seaman matthew at FreeBSD.org
Tue Feb 9 09:53:30 UTC 2021


On 08/02/2021 20:10, Michael Schuster wrote:

> $ bectl list
> BE                             Active Mountpoint Space Created
> [...]
> BE_20210206_175312_CURRENT14   NR     /          30.8G 2021-02-06 17:53
> BE_20210208_204901_CURRENT_14  -      /mnt       860K  2021-02-08 20:49
> 
> ... which, as I found out, does NOT include /usr/src; only after creating a
> snapshot of same and mounting that specifically:

There's an important difference between beadm and bectl which seems 
relevant here.  beadm defaults to accepting a tree of ZFSes as a boot 
environment, whereas bectl only applies to the ZFS at the top level of 
the boot environment unless you use the -r flag.

I don't know why the difference was introduced, since bectl was 
specifically written as a drop-in replacement for beadm, and the 
recursive behaviour of beadm is generally what you'ld want if you have 
several ZFSes per boot environment and entirely harmless if you only 
have a single ZFS per BE.

	Cheers,

	Matthew


More information about the freebsd-questions mailing list