Date: Mon, 22 Sep 2025 22:39:57 +0000 From: Shawn Webb <shawn.webb@hardenedbsd.org> To: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: Re: Plan for "distribution set" deprecation Message-ID: <dareapwnga243iduv4ovc6pgwwprob45hfb4mv2m65463ysycr@zuxk34sti747> In-Reply-To: <aNHMexzI05E0AqNE@amaryllis.le-fay.org> References: <fd63e8df-3209-4b83-9dc5-5df4ec690bbf@freebsd.org> <xtkzcgocu5uwhqqghp27k4wjqu3cl24y4n4jcwms43bj6udm5e@wmnwfbucjpod> <aNHD3RXadj1EMUlf@amaryllis.le-fay.org> <3ily2wedv7oue6qjjv2b47c37umnlqw363whvpohu6rrpz3hsg@a6g6mgjuy334> <aNHMexzI05E0AqNE@amaryllis.le-fay.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Mon, Sep 22, 2025 at 11:23:55PM +0100, Lexi Winter wrote:
> 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.)
That was why I included the modified code as part of the email I had
sent. All references to FreeBSD-branded stuff (including renaming the
kernel from GENERIC/generic to HARDENEDBSD/hardenedbsd) have been
changed accordingly.
I just now uploaded the diff to the hardened/current/master branch:
https://hardenedbsd.org/~shawn/2025-09-22_pkgbase-r01.patch.txt
Note that some of the bsdinstall bits might indeed still need to be
modified. But that's the next problem to tackle.
>
> if you've modified pkgbase-stage.lua, a link to the version you're using
> would be handy.
That link above should include the full diff. Please let me know if
you feel I've missed something. Note that to apply that diff, you'll
need an up-to-date HardenedBSD src tree (branch:
hardened/current/master).
Thanks,
--
Shawn Webb
Cofounder / Security Engineer
HardenedBSD
Signal Username: shawn_webb.74
Tor-ified Signal: +1 303-901-1600 / shawn_webb_opsec.50
https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmjR0DYACgkQ/y5nonf4
4fohbg/9Edct1z419FU/boKX1g1RCyUGdgNEDWu9/6jrQ77Dig5d3z9Er3EJ36bB
zBug4hk7+Cnq3I6nBQQjuXDfMSbmSjD90quelPP1rPuGRAm9PB67d2buikEED1Y6
ZoLDHfHL8FrW8H9H+K+NYG+lPptmvt0zEyZU2VV5ESqj7AxADXlc3q6TBUuAUX52
qkgXcMActkHHlmxAgUmp9O/tnolmxLlX36kuEri3gjDvEAUB1LgxYdm4y0cUowZo
LUYEd76b/BxrwnOwkBaEXSAmanP+xnyNqder1sBovorUh0xkYs6B7VJFQitxXuEU
rUPlvzqXT6bu8si7umLQuC3k8AK6X79a5S5UEboynZdjbXwjO3t+z5zXub0kcwTH
bvYzgH7LsG26YlqUzh4bBX1UHOtd0ZxaDC/D5/ZsnOODIsW3hTz4pU6mfO6pyMgK
2ZYW2x547fDcN5X0sx9Ue0R1MfJXpSueRU04RWoz/LxlNLGybqY2KQpvM+sW1uL5
NCfMHZGKxAS/bLi9Oh1o6J485xrw8ylya3RqTbEkSkczHeXllbjbWCFJGc6oHGVR
LJdM4EQiLjIKrQSB6lg19pzuny3EN20bAXcurc196I/Enb6xnXzqDl9IuJfHLycE
fxLMgn+h3HQfukMxLkk7PFvLZG9wA4Y40D0+3cNw+CXkbOW2k/8=
=e2OC
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dareapwnga243iduv4ovc6pgwwprob45hfb4mv2m65463ysycr>
