Re: Plan for "distribution set" deprecation

From: Lexi Winter <ivy_at_freebsd.org>
Date: Mon, 22 Sep 2025 22:23:55 UTC
Shawn Webb wrote in <3ily2wedv7oue6qjjv2b47c37umnlqw363whvpohu6rrpz3hsg@a6g6mgjuy334>:
> > > I have confirmed that the pkgbase repo that gets built does indeed
> > > include the right kernel package. Hence why I'm puzzled why that lua
> > > assertion is being tripped.
> > 
> > please also show the (names of) the kernel packages you have in your
> > release repository, i.e. the one in <objdir>/release/pkgbase-repo
> > which is generated during the release build.
> 
> ==== BEGIN OUTPUT ====
> $ pkg repos
> LocalBase: { 
>     url             : "file:///usr/obj/usr/src/amd64.amd64/release/pkgbase-repo/FreeBSD:16:amd64/latest",
>     enabled         : yes,
>     priority        : 0
>   }
> $ pkg rquery -U -r LocalBase '%n' | grep HardenedBSD-kernel-hardenedbsd
> HardenedBSD-kernel-hardenedbsd
> HardenedBSD-kernel-hardenedbsd-dbg
> ==== END OUTPUT ====
> 
> That `pkg rquery` command is effectively the same as what that lua
> script is executing, which is why I'm extra confused.

pkgbase-stage.lua expects the kernel package to be called "kernel-generic",
but yours is called "kernel-hardenedbsd", which would cause this error.
did you patch the script to change this?  (if so, you'll also need to patch
bsdinstall the same way otherwise the install will fail at runtime.)

if you've modified pkgbase-stage.lua, a link to the version you're using
would be handy.