Commit graph

8 commits

Author SHA1 Message Date
Isaac Freund
6e93fa6a6c release: create pkgbase repo config from Makefile
This will allow the VM image build scripts to use the same repository
config file for installing base system packages at build time.

Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51482

(cherry picked from commit f4f0308440d2321fa9172dab1029f16a70289e4e)
2025-10-03 09:49:34 -07:00
Colin Percival
d2b670b27f pkgbase-stage: Use unique PKG_DBDIR
Prior to this commit, pkgbase-stage.lua used a hard-coded PKG_DBDIR
"./pkgdb"; unfortunately this creates a race condition if we start
building disc1.iso and dvd1.iso at the same time

  pkg: sqlite error while executing CREATE TABLE licenses [...]
  in file pkgdb.c:2330: table licenses already exists

since pkg checks to see if the pkgdb is initialized and initializes
it if not.

Use separate pkgdb-disc1 and pkgdb-dvd directories.

MFC after:	1 minute
Sponsored by:	https://www.patreon.com/cperciva
Differential Revision:	https://reviews.freebsd.org/D52755

(cherry picked from commit 523fece9d11e5d084c1d20d10d05971f5354d343)
2025-09-26 21:09:37 -07:00
Lexi Winter
b1187b5a12 release: Improve kernel package handling
Although support for PowerPC kernels (GENERIC64 and GENERIC64LE) was
added to pkgbase-stage.lua, the equivalent support was missing from
bsdinstall, so the installer would fail at runtime since it wouldn't
find a kernel package.

Improve the pkgbase-stage logic to have a specific list of kernels
we want to support (which avoids breaking if multiple kernels are
available), and use the same logic in both bsdinstall and pkgbase-stage.

MFC after:	1 day
Reviewed by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D52638

(cherry picked from commit 3f5385beeacf49d0edb563ccc712841bcfd6b158)
2025-09-25 02:00:41 +01:00
Lexi Winter
3608d730ad pkgbase-stage.lua: Add pkg package to the offline repo
We need a pkg package on the media so we can install it for offline
installations; copy this package from the staging repository to the
pkgbase offline repository on the media.

MFC after:	1 day
Reviewed by:	ifreund_freebsdfoundation.org, cperciva
Differential Revision:	https://reviews.freebsd.org/D52636

(cherry picked from commit 5bb96dab061af5f44e6090831f1b2724196828b8)
2025-09-25 02:00:41 +01:00
Isaac Freund
2bf7d850c5 release: use sets to select base packages
The introduction of package sets allows us to replace the current
fragile string matching with this simpler and more robust alternative.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 seconds
Reviewed by:	emaste, ivy
Differential Revision:	https://reviews.freebsd.org/D52592

(cherry picked from commit 6cdca18d79b9e247d8a34e266fe2215e4bfa1b05)
2025-09-19 02:18:42 +01:00
Colin Percival
da62a299de release: Pass ABI to pkgbase-stage.lua
We then pass ABI from pkgbase-stage.lua to pkg(8); without this,
cross-building releases with PKGBASE enabled fails with

pkg: wrong architecture: ...
pkg: repository FreeBSD-base contains packages with wrong ABI: ...

MFC after:	1 minute
Discussed with:	emaste, jrtc27
Sponsored by:	https://www.patreon.com/c/cperciva

(cherry picked from commit 340e68fd7c0d62cac1f0876b6475a89df5065db5)
2025-09-13 19:05:21 -07:00
Isaac Freund
6fa24b29d8 release, bsdinstall: include FreeBSD-kernel-man package
This package has been newly split off during man page reorganization and
should be considered part of the "base" component rather than being
ignored. Update pkgbase release and bsdinstall scripts for this change.

Reviewed by:	ivy
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51519
2025-07-30 18:57:17 -04:00
Isaac Freund
62d18f8c4c release: Add -DPKGBASE option to include pkgbase packages
If this option is set, an offline repo of pkgbase packages corresponding
to base.txz and kernel.txz will be included in the disc1 release media
rather than the base.txz and kernel.txz tarballs.

Reviewed by:	bapt
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50346
2025-05-20 16:30:12 -04:00