On Wed, Oct 09, 2024 at 10:57:15PM +0200, Dr. Nicola Mingotti wrote:
Still, there are a few drawbacks:
- some important files are overwritten : rc.conf, /etc/passwd ...
once [a few hours ago] i lost /etc/fstab (but i was copying one
set at a time and
rebooting to see what happens)
Oh. That is because you can't just extract the etc set. That will
overwrite the files in /etc.
I've been using etcupdate(8) since it was introduced. It comes with the
system so one doesn't have to bother with obtaining a sysupgrade package.
I do "etcupdate -al -s etc.tar.xz" as root. Then I only have to deal with
files that are both changed in the distribution and by me.
- it is really slow to un-tar all to the block (~ 20min), ./build.sh
XXXX install=YYY was
super quick [unfair comparison, that was on a bigger machine ]
Hmm. This may be because by default we use xz(1) to compress the sets
files. Decompressing them seems to be very slow. And decompressing using
multiple CPUs isn't implemented according to xz(1).
Since you are building only locally you could build with USE_XZ_SETS=no
"build.sh -V USE_XZ_SETS=no ..." should do the trick.
Or you can set them in mk.conf(5).
These days I set those variables in mk.conf in the top directory of the
source tree. That works for -current only. For older source trees you
need to use /etc/mk.conf, but that is global.
--chris