release/tools: use same pkg settings in containers as in /etc/pkg/FreeBSD.conf

Instructions in /etc/pkg/FreeBSD.conf and elsewhere recommend putting
changes in /usr/local/etc/pkg/repos/FreeBSD.conf so bring OCI containers
into line as well.

Reviewed by:	dfr, ivy
Differential Revision:	https://reviews.freebsd.org/D54090

MFC after:	5 days
Sponsored by:	SkunkWerks, GmbH
This commit is contained in:
Dave Cottlehuber committed 2026-01-27 22:54:44 +00:00
1 parent 331316b073
commit c73ae67348
1 file changed
+1 -5
+1 -5
View File
@@ -36,12 +36,8 @@ oci_image_build() {
;;
esac
mkdir -p $m/usr/local/etc/pkg/repos
cat > $m/usr/local/etc/pkg/repos/base.conf <<EOF
cat > $m/usr/local/etc/pkg/repos/FreeBSD.conf <<EOF
FreeBSD-base: {
url: "https://pkg.FreeBSD.org/\${ABI}/${repo}",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
EOF