Re: Is /usr/obj Required For Installation?

From: Michael Sierchio <kudzu_at_tenebras.com>
Date: Tue, 03 Dec 2024 13:31:01 UTC
On Tue, Dec 3, 2024 at 8:17 AM Tim Daneliuk <thronobulax@gmail.com> wrote:

> After running buildworld and buildkern, is /usr/obj subsequently required
> to install the new kernel(s) and world files or are all the required object
> files already bound into installable libraries?


I'm not sure I understand your question, but I'll blather on.

/usr/obj/usr/src/<arch>/sys/<kernel name>


contains the kernel and the .o files required for building it, and it's
where it gets installed from.  Once you've built and installed it, and
world, you may safely rm -rf usr/obj/* without affecting a running system.

I typically have micro instances as appliances and build kernels and world
on another, more robust multiprocessor VM.