https://wiki.freebsd.org/PkgBase and -r base vs. -rFreeBSD-base on the page; more
Date: Sat, 20 Jan 2024 06:07:08 UTC
I've just done my first Initial setup. I've some notes.
https://wiki.freebsd.org/PkgBase has an odd mix of -r base vs. -r FreeBSD-base .
Since the notes use:
QUOTE
# mkdir -p /usr/local/etc/pkg/repos/
# cat <<EOF >/usr/local/etc/pkg/repos/base.conf
> base: {
END QUOTE
I expect that -r base is the intent. When I cross checked by
trying a -r FreeBSD-base the result was:
# pkg upgrade -r FreeBSD-base
No repositories are enabled.
I set this up via a RPi5 from a prior snapshot (2023-Jan-11's)
based media for main.
I ended up with:
# ls -Tlodt /boot/kernel*/kernel
-r--r--r-- 1 root wheel - 18194200 Jan 19 18:22:51 2024 /boot/kernel.GENERIC-NODEBUG/kernel
-r--r--r-- 1 root wheel uarch 17731376 Jan 11 06:27:12 2024 /boot/kernel/kernel
so the default kernel driectory was not actually updated.
https://wiki.freebsd.org/PkgBase does not make the intent
for this clear. Two mv's? mv and a cp -aRx ? I did:
# mv /boot/kernel /boot/kernel.old
# cp -aRx /boot/kernel.GENERIC-NODEBUG /boot/kernel
and rebooted yet again to get the new kernel. That got
me to:
# uname -apKU
FreeBSD generic 15.0-CURRENT FreeBSD 15.0-CURRENT main-n267654-dfe30e41967f GENERIC-NODEBUG arm64 aarch64 1500011 1500011
But I'm unsure what is expected for /boot/kernel.GENERIC-NODEBUG .
pkg would not initially bootstrap. I added a:
/usr/local/etc/pkg/repos/FreeBSD.conf
in order for pkg to bootstrap and removed it after the
bootstrap. pkg then continued to work based on
/etc/pkg/FreeBSD.conf and /usr/local/etc/pkg/repos/base.conf .
Other notes:
The intent is to have a "test official build" media for
main. I prefer to submit problems based on official builds
instead of my personal ones that are not fully standard.
Also, I learn if it is "just my build" for any oddities
that I can not replicate for an official build.
I'll likely do similarly for a stable/14 snapshot media,
also created via the RPi5.
Now that armv7 base_latest has shown up, I may do similarly
for that type of context as well.
===
Mark Millard
marklmi at yahoo.com