Re: git: 9835413fb078 - releng/15.0 - bsdinstall: Enable FreeBSD-base repo when pkgbase
Date: Sun, 16 Nov 2025 05:41:54 UTC
On 11/15/25 20:31, Yasuhiro Kimura wrote:
> When it is fresh install of 15.0-RC1 pkgbase system, information of
> FreeBSD-base repository is put as below
> [...]
> And it works as is expected.
>
> When it is upgrade from 15.0-BETA5 or before, on the other hand, the
> information is put as below after `pkg upgrade` has finished.
> [...]
> [/usr/local/etc/pkg/repos/FreeBSD-base.conf]
> ----------------------------------------------------------------------
> FreeBSD-base: {
> url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_0",
> mirror_type: "srv",
> signature_type: "fingerprints",
> fingerprints: "/usr/share/keys/pkg",
> enabled: yes
> }
> ----------------------------------------------------------------------
>
> Since settings in /usr/local/etc/pkg/repos/FreeBSD-base.conf overwrite
> ones in /etc/pkg/FreeBSD.conf, "pkg.FreeBSD.org" is still used as url
> of FreeBSD-base repository.
Yes, we'll have to document this clearly. The problem here is that since
/usr/local/etc/pkg/repos/FreeBSD-base.conf is created by the installer,
pkgbase doesn't know anything about it.
I'm thinking something along these lines:
> If you are upgrading a system which was installed using pkgbase prior to
> FreeBSD 15.0-RC1, after upgrading you should remove all of the fields in
> the "FreeBSD-base" definition in /usr/local/etc/pkg/repos/FreeBSD-base.conf
> except for the line "enabled: yes".
--
Colin Percival
FreeBSD Release Engineering Lead & EC2 platform maintainer
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid