Jail upgrade from 14.3-RELEASE to 15.0-RELEASE with pkgbase

I have recently performed a major upgrade on my FreeBSD systems from 14.3 to 15.0 using the traditional freebsd-update(8) procedure and then pkgbasified the upgraded 15.0-RELEASE to the new pkgbase system.
On these upgraded systems, I have been running several thick Jails which I wanted also to upgrade to the latest 15.0-RELEASE and also transform them to the pkgbase system.
In order to do so, I red the pkgbase Wiki page, along with the corresponding FreeBSD Handbook chapter and ended up to this very informative Thread upgrade-from-14-3-to-15-0-release-using-pkgbase-wrong-packagesite-and-no-trusted-public-keys-found.100527 mentioning various problems regarding the pkgbase upgrade procedure of the systems.

Long story short, I decided to write down how I performed the jail upgrades through the pkgbase system in order to help anyone who would like to perform the same task and also to remember the steps I did to perform this upgrade.

Login to your jail
# jexec jail

Let's pkgbasify the jail system
# fetch https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua

# chmod +x ./pkgbasify.lua

# ./pkgbasify.lua
Code:
Running this tool will irreversibly modify your system to use pkgbase.
This tool and pkgbase are experimental and may result in a broken system.
It is highly recommended to backup your system before proceeding.
Do you accept this risk and wish to continue? (y/n) y
Updating FreeBSD repository catalogue...
[jail.host] Fetching data: 100%   11 MiB   2.2 M/s    00:05
Processing entries: 100%
FreeBSD repository update completed. 36641 packages processed.
Updating FreeBSD-kmods repository catalogue...
[jail.host] Fetching data: 100%   36 KiB  36.9 k/s    00:01
Processing entries: 100%
FreeBSD-kmods repository update completed. 245 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
Your packages are up to date.
Updating FreeBSD repository catalogue...
[jail.host] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[jail.host] Fetching data: 100%   10 MiB   2.2 M/s    00:05
Processing entries: 100%
FreeBSD repository update completed. 36712 packages processed.
Updating FreeBSD-kmods repository catalogue...
[jail.host] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[jail.host] Fetching data: 100%   36 KiB  36.9 k/s    00:01
Processing entries: 100%
FreeBSD-kmods repository update completed. 245 packages processed.
Updating FreeBSD-base repository catalogue...
[jail.host] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[jail.host] Fetching data: 100%   50 KiB  51.0 k/s    00:01
Processing entries: 100%
FreeBSD-base repository update completed. 525 packages processed.
All repositories are up to date.
Creating //usr/local/etc/pkg/repos/FreeBSD-base.conf
Adding BACKUP_LIBRARIES=yes to /usr/local/etc/pkg.conf
Updating FreeBSD-base repository catalogue...
[jail.host] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[jail.host] Fetching data: 100%   50 KiB  51.0 k/s    00:01
Processing entries: 100%
FreeBSD-base repository update completed. 525 packages processed.
FreeBSD-base is up to date.
The following 268 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        FreeBSD-acct: 14.3p8 [FreeBSD-base]
        FreeBSD-acct-man: 14.3p8 [FreeBSD-base]
        FreeBSD-acpi: 14.3p8 [FreeBSD-base]
            .
            .
            .
        FreeBSD-zfs-man: 14.3p8 [FreeBSD-base]
        FreeBSD-zoneinfo: 14.3p8 [FreeBSD-base]

Number of packages to be installed: 268

The process will require 1 GiB more space.
348 MiB to be downloaded.
[jail.host] [  1/268] Fetching FreeBSD-nvme-tools-14.3p8: 100%   40 KiB  40.9 k/s    00:01
[jail.host] [  2/268] Fetching FreeBSD-tcpd-dev-14.3p8: 100%   65 KiB  66.2 k/s    00:01
            .
            .
            .
[jail.host] [267/268] Fetching FreeBSD-mlx-tools-man-14.3p8: 100%    2 KiB   2.4 k/s    00:01
[jail.host] [268/268] Fetching FreeBSD-libstdbuf-dev-14.3p8: 100%    5 KiB   4.6 k/s    00:01
Checking integrity... done (0 conflicting)
Checking integrity... done (0 conflicting)
The following 268 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        FreeBSD-acct: 14.3p8 [FreeBSD-base]
        FreeBSD-acct-man: 14.3p8 [FreeBSD-base]
            .
            .
            .
        FreeBSD-zfs-man: 14.3p8 [FreeBSD-base]
        FreeBSD-zoneinfo: 14.3p8 [FreeBSD-base]

Number of packages to be installed: 268

The process will require 1 GiB more space.
[jail.host] [  1/268] Installing FreeBSD-acct-14.3p8...
[jail.host] [  1/268] Extracting FreeBSD-acct-14.3p8: 100%
            .
            .
            .
[jail.host] [267/268] Extracting FreeBSD-zfs-man-14.3p8: 100%
[jail.host] [268/268] Installing FreeBSD-zoneinfo-14.3p8...
[jail.host] [268/268] Extracting FreeBSD-zoneinfo-14.3p8: 100%
Merged //etc/nsswitch.conf
Merged //etc/group
Merged //etc/shells
Merged //etc/master.passwd
Conversion finished.

Please verify that the contents of the following critical files are as expected:
/etc/master.passwd
/etc/group
/etc/ssh/sshd_config

After verifying those files, restart the system.

Exit, restart the jail and login to the jail.
# service jail restart jail
# jexec jail

Let's check our jail system.
# cat /etc/os-release
Code:
NAME=FreeBSD
VERSION="14.3-RELEASE-p8"
VERSION_ID="14.3"
ID=freebsd
ANSI_COLOR="0;31"
PRETTY_NAME="FreeBSD 14.3-RELEASE-p8"
CPE_NAME="cpe:/o:freebsd:freebsd:14.3"
HOME_URL="https://FreeBSD.org/"
BUG_REPORT_URL="https://bugs.FreeBSD.org/"

# pkg -vv
Code:
Version                 : 2.5.1
libpkg                  : 2.5.1
libcurl                 : libcurl/8.17.0 OpenSSL/3.0.16 zlib/1.3.1
libarchive              : libarchive 3.8.1
sqlite                  : 3.51.1
openssl                 : OpenSSL 3.0.16 11 Feb 2025
            .
            .
            .
COMPRESSION_THREADS = -1;
PKG_REINSTALL_ON_OPTIONS_CHANGE = true;
TRACK_LINUX_COMPAT_SHLIBS = false;
ABI = "FreeBSD:14:amd64";
ALTABI = "freebsd:14:x86:64";
OSVERSION = "1403000";


Repositories:
  FreeBSD: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-kmods: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_quarterly_3",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-base: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/base_release_3",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }

Let's take a look at the pkg repo files that have been added from the pkgbasification of our jail system.
# cat /etc/pkg/FreeBSD.conf
Code:
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

Let's edit the /usr/local/etc/pkg/repos/FreeBSD-base.conf file to look like this:
Code:
FreeBSD-base: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_0",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
  enabled: yes
}
Pay attention to the url: edit, where we are choosing the proper release (15.0) based on the wiki page base_release_0. Also pay attention to the correct declaration of the proper version keys fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}".

Let's install the following pkg in order to download the necessary keys (fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}") for the system to be able to be upgraded to the 15.0-RELEASE (base_release_0).

# pkg add -f https://pkg.freebsd.org/FreeBSD:15:amd64/base_release_0/FreeBSD-pkg-bootstrap-15.0.pkg
Code:
[jail.host] Fetching FreeBSD-pkg-bootstrap-15.0: 100%  153 KiB 156.7 k/s    00:01
[jail.host] Installing FreeBSD-pkg-bootstrap-15.0...
pkg: wrong architecture: FreeBSD:15:amd64 instead of FreeBSD:14:amd64
Newer FreeBSD version for package FreeBSD-pkg-bootstrap:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1500068
- running userland: 1403000
Ignore the mismatch and continue? [y/N]: y
package FreeBSD-pkg-bootstrap is already installed, forced install
pkg: FreeBSD-pkg-bootstrap-15.0 conflicts with FreeBSD-pkg-bootstrap-man-14.3p8 (installs files into the same place).  Problematic file: /usr/share/man/man7/pkg.7.gz ignored by forced mode
[jail.host] Extracting FreeBSD-pkg-bootstrap-15.0: 100%

Let's update our ports repository catalogue from the newly installed (from the pkgbasification of the system) repo files.
# pkg update
Code:
Updating FreeBSD-ports repository catalogue...
[jail.host] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[jail.host] Fetching data: 100%   10 MiB   2.7 M/s    00:04
Processing entries: 100%
FreeBSD-ports repository update completed. 36712 packages processed.
Updating FreeBSD-ports-kmods repository catalogue...
[jail.host] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[jail.host] Fetching data: 100%   36 KiB  36.9 k/s    00:01
Processing entries: 100%
FreeBSD-ports-kmods repository update completed. 245 packages processed.
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.

Now, we start the major upgrade procedure
# env ABI=FreeBSD:15:amd64 pkg-static update -r FreeBSD-base
Code:
pkg-static: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
pkg-static: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
Updating FreeBSD-base repository catalogue...
pkg-static: Repository FreeBSD-base has a wrong packagesite, need to re-create database
[jail.host] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[jail.host] Fetching data: 100%   80 KiB  81.5 k/s    00:01
Processing entries:   0%
Newer FreeBSD version for package FreeBSD-zlib-dev-lib32:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1500068
- running userland: 1500000
Ignore the mismatch and continue? [y/N]: y
Processing entries: 100%
FreeBSD-base repository update completed. 496 packages processed.
FreeBSD-base is up to date.

# env ABI=FreeBSD:15:amd64 pkg-static upgrade -r FreeBSD-base
Code:
pkg-static: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
pkg-static: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
FreeBSD-base is up to date.
Updating database digests format: 100%
Checking for upgrades (150 candidates): 100%
Processing candidates (150 candidates): 100%
The following 210 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        FreeBSD-atf: 15.0 [FreeBSD-base]
        FreeBSD-atf-dev: 15.0 [FreeBSD-base]
        .
        .
        .
        FreeBSD-zlib: 15.0 [FreeBSD-base]
        FreeBSD-zlib-dev: 15.0 [FreeBSD-base]

Installed packages to be UPGRADED:
        FreeBSD-acct: 14.3p8 -> 15.0 [FreeBSD-base]
        FreeBSD-acpi: 14.3p8 -> 15.0 [FreeBSD-base]
        .
        .
        .
        FreeBSD-zfs-dev: 14.3p8 -> 15.0 [FreeBSD-base]
        FreeBSD-zoneinfo: 14.3p8 -> 15.0 [FreeBSD-base]

Number of packages to be installed: 62
Number of packages to be upgraded: 148

The operation will free 105 MiB.
306 MiB to be downloaded.

Proceed with this action? [y/N]: y
[jail.host] [  1/210] Fetching FreeBSD-nvme-tools-15.0: 100%   84 KiB  85.9 k/s    00:01
[jail.host] [  2/210] Fetching FreeBSD-ntp-15.0: 100%    2 MiB   2.0 M/s    00:01
.
.
.
[jail.host] [209/210] Fetching FreeBSD-libcasper-15.0: 100%   40 KiB  40.8 k/s    00:01
[jail.host] [210/210] Fetching FreeBSD-ctf-dev-15.0: 100%  138 KiB 141.6 k/s    00:01
Checking integrity... done (303 conflicting)
  - FreeBSD-nvme-tools-15.0 [FreeBSD-base] conflicts with FreeBSD-nvme-tools-man-14.3p8 [installed] on /usr/share/man/man8/nvmecontrol.8.gz
  - FreeBSD-ntp-15.0 [FreeBSD-base] conflicts with FreeBSD-utilities-14.3p8 [installed] on /etc/ntp.conf
             .
             .
             .
  - FreeBSD-ctf-dev-15.0 [FreeBSD-base] conflicts with FreeBSD-utilities-dev-14.3p8 [installed] on /usr/lib/libctf.a
  - FreeBSD-ctf-dev-15.0 [FreeBSD-base] conflicts with FreeBSD-utilities-man-14.3p8 [installed] on /usr/share/man/man5/ctf.5.gz
Checking integrity... done (0 conflicting)
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
The following 323 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        FreeBSD-atf: 15.0 [FreeBSD-base]
        FreeBSD-atf-dev: 15.0 [FreeBSD-base]
            .
            .
            .
        FreeBSD-zlib: 15.0 [FreeBSD-base]
        FreeBSD-zlib-dev: 15.0 [FreeBSD-base]

Installed packages to be UPGRADED:
        FreeBSD-acct: 14.3p8 -> 15.0 [FreeBSD-base]
        FreeBSD-acpi: 14.3p8 -> 15.0 [FreeBSD-base]
            .
            .
            .
        FreeBSD-zfs-dev: 14.3p8 -> 15.0 [FreeBSD-base]
        FreeBSD-zoneinfo: 14.3p8 -> 15.0 [FreeBSD-base]

Installed packages to be REMOVED:
        FreeBSD-acct-man: 14.3p8
        FreeBSD-acpi-man: 14.3p8
            .
            .
            .
        FreeBSD-yp-man: 14.3p8
        FreeBSD-zfs-man: 14.3p8

Number of packages to be removed: 113
Number of packages to be installed: 62
Number of packages to be upgraded: 148

The operation will free 170 MiB.

Proceed with this action? [y/N]: y
Checking integrity... done (0 conflicting)
[jail.host] [  1/326] Deinstalling FreeBSD-acct-man-14.3p8...
[jail.host] [  1/326] Deleting files for FreeBSD-acct-man-14.3p8: 100%
            .
            .
            .
[jail.host] [325/326] Installing FreeBSD-set-base-15.0...
[jail.host] [326/326] Upgrading FreeBSD-tests-dbg from 14.3p8 to 15.0...
[jail.host] [326/326] Extracting FreeBSD-tests-dbg-15.0: 100%
==> Running trigger: mandoc.ucl
Generating apropos(1) database for /usr/share/man...
Generating apropos(1) database for /usr/share/openssl/man...

Hopefully, everything ran smoothly.

Let's check our system
# pkg -vv
Code:
pkg: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
Version                 : 2.5.1
libpkg                  : 2.5.1
libcurl                 : libcurl/8.17.0 OpenSSL/3.0.16 zlib/1.3.1
libarchive              : libarchive 3.8.2
sqlite                  : 3.51.1
openssl                 : OpenSSL 3.0.16 11 Feb 2025
            .
            .
            .
COMPRESSION_THREADS = -1;
PKG_REINSTALL_ON_OPTIONS_CHANGE = true;
TRACK_LINUX_COMPAT_SHLIBS = false;
ABI = "FreeBSD:15:amd64";
ALTABI = "freebsd:15:x86:64";
OSVERSION = "1500068";


Repositories:
  FreeBSD-ports: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-ports-kmods: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-base: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkgbase-15"
  }

Everything seems fine. Let's force a pkg bootstrap to the current 15.0-RELEASE in order to be sure.
# pkg bootstrap -f
Code:
pkg: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
pkg(8) is already installed. Forcing reinstallation through pkg(7).
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
[jail.host] Installing pkg-2.5.1...
package pkg is already installed, forced install
[jail.host] Extracting pkg-2.5.1: 100%

Exit and restart the jail. Login again to the jail and check the following:
# uname -aKpU
Code:
FreeBSD jail.host 15.0-RELEASE-p1 FreeBSD 15.0-RELEASE-p1 releng/15.0-n280999-7bceec30b351 GENERIC amd64 amd64 1500068 1500068

# cat /etc/os-release
Code:
NAME=FreeBSD
VERSION="15.0-RELEASE-p2"
VERSION_ID="15.0"
ID=freebsd
ANSI_COLOR="0;31"
PRETTY_NAME="FreeBSD 15.0-RELEASE-p2"
CPE_NAME="cpe:/o:freebsd:freebsd:15.0"
HOME_URL="https://FreeBSD.org/"
BUG_REPORT_URL="https://bugs.FreeBSD.org/"

Edit the file /usr/local/etc/pkg/repos/FreeBSD-base.conf to look like this:
Code:
FreeBSD-base: {
   url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
  enabled: yes
}
Pay attention to the url: line, where we chose the latest branch base_latest base_release_${VERSION_MINOR} for our pkgbase jail system.

Let's perform the final upgrade of the system
# pkg update
Code:
Updating FreeBSD-ports repository catalogue...
pkg: Repository FreeBSD-ports has a wrong packagesite, need to re-create database
[jail.host] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[jail.host] Fetching data: 100%   10 MiB   1.8 M/s    00:06
Processing entries: 100%
FreeBSD-ports repository update completed. 36702 packages processed.
Updating FreeBSD-ports-kmods repository catalogue...
pkg: Repository FreeBSD-ports-kmods has a wrong packagesite, need to re-create database
[jail.host] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[jail.host] Fetching data: 100%   35 KiB  35.6 k/s    00:01
Processing entries: 100%
FreeBSD-ports-kmods repository update completed. 239 packages processed.
Updating FreeBSD-base repository catalogue...
pkg: Repository FreeBSD-base has a wrong packagesite, need to re-create database
[jail.host] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[jail.host] Fetching data: 100%   80 KiB  82.1 k/s    00:01
pkg: No trusted public keys found
FreeBSD-base repository is up to date.
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
[jail.host] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[jail.host] Fetching data: 100%   10 MiB   2.2 M/s    00:05
Processing entries: 100%
FreeBSD repository update completed. 36702 packages processed.
All repositories are up to date.

# pkg upgrade
Code:
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
Updating FreeBSD-base repository catalogue...
pkg: Repository FreeBSD-base has a wrong packagesite, need to re-create database
[media.yooniks.lan] Fetching meta.conf: 100%    179 B   0.2 k/s    00:01
[media.yooniks.lan] Fetching data: 100%   80 KiB  82.1 k/s    00:01
pkg: No trusted public keys found
FreeBSD-base repository is up to date.
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: Repository FreeBSD-base has a wrong packagesite, need to re-create database
pkg: Repository FreeBSD-base cannot be opened. 'pkg update' required
Updating database digests format: 100%
Checking for upgrades (246 candidates): 100%
Processing candidates (246 candidates): 100%
The following 273 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        basu: 0.2.1 [FreeBSD-ports]
        compat14x-amd64: 14.2.1402000.20251120_1 [FreeBSD-ports]
            .
            .
            .
Installed packages to be REINSTALLED:
        ImageMagick6-6.9.13.36,1 [FreeBSD] (ABI changed: 'FreeBSD:14:amd64' -> 'FreeBSD:15:amd64')
        Imath-3.2.2_2 [FreeBSD] (ABI changed: 'FreeBSD:14:amd64' -> 'FreeBSD:15:amd64')
            .
            .
            .
 
Thanks for this work.

Code:
FreeBSD-base: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
  enabled: yes
}
Why did you switch your jails to 15-STABLE since your host is at 15.0-RELEASE?

I think you could have configured them as follows:
Code:
url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
 
Thanks for this work.

Code:
FreeBSD-base: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
  enabled: yes
}
Why did you switch your jails to 15-STABLE since your host is at 15.0-RELEASE?

I think you could have configured them as follows:
Code:
url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
You are right. I wrongly thought that the base_latest was pointing to the latest updates of the 15.0-RELEASE (${ABI}) - just like the FreeBSD pkg repository (latest vs quarterly).
Thanks for the correction - I updated my post.
 
That said, beware if you apply now a 15.0-RELEASE base in your jails, because it's a downgrade and it's likely not supported.

You left the FreeBSD-ports-kmods at a RELEASE level (quarterly) and that's fine since kmods depend on kernel and jails use the host kernel. Personally, I disabled FreeBSD-ports-kmods in my jails, as I think you don't need kmods in jails. But I may be wrong, some exceptions might exist.
 
Back
Top