Page MenuHomeFreeBSD

bsdinstall: always install FreeBSD-base.conf if using pkgbase
ClosedPublic

Authored by ifreund_freebsdfoundation.org on Jul 1 2025, 10:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 2:05 PM
Unknown Object (File)
Sat, Oct 11, 5:54 AM
Unknown Object (File)
Sat, Oct 11, 5:54 AM
Unknown Object (File)
Sat, Oct 11, 5:54 AM
Unknown Object (File)
Fri, Oct 10, 10:42 PM
Unknown Object (File)
Wed, Oct 1, 9:17 PM
Unknown Object (File)
Wed, Oct 1, 2:20 AM
Unknown Object (File)
Tue, Sep 30, 8:56 AM

Details

Summary

Currently bsdinstall does not install FreeBSD-base.conf when performing
an offline pkgbase installation. This commit fixes that.

PR: 287821
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jul 1 2025, 12:57 PM

Compare with the precedent of a single file:

/etc/pkg/FreeBSD.conf

– for multiple FreeBSD repos. With one of my test machines, for example,

#
# To disable a repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file, e.g.:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD-ports: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#   echo "FreeBSD-kmods: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD-ports: {
  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
}

Context

pkg.conf: Use kmod repositories · freebsd/freebsd-src@a47542f for release/14.3.0 was followed by: