Monday, April 18, 2022

Re: Auto layout for disk partitions - a new user's perspective

> Hi. I am new to OpenBSD, so these questions come from my first
> experience with the system.
>
> I selected the auto layout option when partitioning my 256GB drive. I have
> then found issues while doing the following:
>
> 1) Cloning src from the github mirror and checking it out, completely fills
> the /usr/src parition.

I think /usr/src is supposed to be used with CVS. My CVS repository is 1.3G,
which is under the 1.5G minimum that disklabel(8) allocates.

>
> 2) Building some ports fail because /usr/local/pobj is not on an wxallowed fs.
>
>
> My questions are:
>
> 1) Should the default /usr/src partition be bigger on large disks?
>
> 2) Should there be a /usr/local/pobj partition created with correct mount
> options? (I appreciate building ports is an "advanced" thing to do - but it
> feels weird having to mess with partition layout after a fresh install just to
> build them)

No need to mess with the partitions if you change the pobj directory by
setting WRKOBJDIR in mk.conf(5). /usr is also too small by default to build
very large ports, I assume you are expected to change the directory.

No comments:

Post a Comment