Bug 296202 - Missing FreeBSD-set-*-jail packages on pkgbase distribution media
Summary: Missing FreeBSD-set-*-jail packages on pkgbase distribution media
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-pkgbase (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-22 11:40 UTC by Harald Schmalzbauer
Modified: 2026-08-16 09:29 UTC (History)
1 user (show)

See Also:


Attachments
Ship FreeBSD-set-jail-* packages in offline media repos (1.01 KB, patch)
2026-06-22 11:40 UTC, Harald Schmalzbauer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Schmalzbauer 2026-06-22 11:40:32 UTC
Created attachment 272033 [details]
Ship FreeBSD-set-jail-* packages in offline media repos

Please find attached a simple patch to include FreeBSD-set-jail-base in the list of selected packages for making releases.
pkg fetch (-d) will resolves dependencies for FreeBSD-set-jail-base which adds all the missing jail packages to the offline repo.

I haven't utilized bsdinstall [jail]. But apparently it can't work for offline installing jails as is.

I only verified I have the missing jail packages available in /usr/freebsd-packages/offline on dvd and disc1 (which affects UFD/memstick images as well).
Comment 1 Harald Schmalzbauer 2026-08-16 09:29:17 UTC
With this fix I have all required FreeBSD-set-jail-* offline available.

Digging further (utilizing 'bsdinstall jail /alt/:jails/sipby') I got an idea why this issue wasn't noticed long ago:
./bsdinstall/pkgbase defines "/usr/share/bsdinstall/" as REPOS_DIR override, which in turn defines "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_latest" as the only active repository.

env BSDINSTALL_PKG_REPOS_DIR=/media/cdrom/usr/freebsd-packages/repos/ bsdinstall jail
would allow users to setup a jail from offile repos, but I guess for official media it will fail due to missing (signing) key copy.

Then there's a glitch with the component selection dialog:
User does _not_ select 
"optional-jail"
but resulting (default jail) installation will include FreeBSD-set-optional-jail,
as long as user doesn't additionally _DE-SELECT_ "base-jail".

There's no hint that "FreeBSD-set-minimal-jail" is mandatory/hidden auto-selected.

The resulting setup contradicts the de-selected "optional-jail" user decision/confirmation
because
pkg -r /alt/:jails/sipby info -d FreeBSD-set-base-jail
FreeBSD-set-base-jail-15.1.501.5~cust:
        FreeBSD-set-devel-15.1.501.5~cust
        FreeBSD-set-minimal-jail-15.1.501.5~cust
        FreeBSD-set-optional-jail-15.1.501.5~cust
and users won't _DE-SELECT_ "base-jail".

I'd suggest reconsidering whether the shadow config "/usr/share/bsdinstall/FreeBSD-base.conf" could be dropped.
And the lua component selection dialog was much more userfriendly if we save users trial'n'error repitition.

Are you interested in a lua-rookie patch for the component selection dialog?

What about the key-copy step - I noticed the is considered to be a temp hack only, it it?