Page MenuHomeFreeBSD

pkgbase-stage.lua: Add pkg package to the offline repo
ClosedPublic

Authored by ivy on Sat, Sep 20, 2:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 2, 6:25 PM
Unknown Object (File)
Wed, Oct 1, 7:33 PM
Unknown Object (File)
Sun, Sep 28, 4:19 AM
Unknown Object (File)
Sat, Sep 20, 4:00 PM
Unknown Object (File)
Sat, Sep 20, 1:28 PM
Unknown Object (File)
Sat, Sep 20, 9:51 AM
Unknown Object (File)
Sat, Sep 20, 8:45 AM
Unknown Object (File)
Sat, Sep 20, 8:06 AM
Subscribers

Details

Summary

We need a pkg package on the media so we can install it for offline
installations; copy this packages from the staging repository to
the pkgbase offline repository on the media.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Sat, Sep 20, 2:33 AM
This revision is now accepted and ready to land.Tue, Sep 23, 1:17 PM

Thank you! I completely forgot about pkgbase-stage.lua when I was doing the package-pkg dance.

release/scripts/pkgbase-stage.lua
42

On second glance, do we want to omit this to support the case of building without /usr/ports ?

release/scripts/pkgbase-stage.lua
42

that means you'll end up with an installer that doesn't contain pkg(8), which seems reasonable for bootonly but probably wrong for disc1. i don't mind removing this assert for now and we can work that out later.

release/scripts/pkgbase-stage.lua
42

Yeah, for Official Release Building it should be safe to assert we have /usr/ports but I'm not absolutely sure about it for other users of make release. I mean, there's a reason you made it optional in D52639.

release/scripts/pkgbase-stage.lua
42

D52639 was more about jails, i.e. you need to be able to build src (only) and then use it to bsdinstall jail /myjail, in which case you won't have a pkg package.

for release media i think it's more reasonable to just require pkg, since without it the media is not fully functional and we're all agreed that we'll put it in src for 16.0.

i don't really have a strong opinion either way here, but i'd like to avoid the situation where we actually build media that doesn't work properly (as in D52635).

release/scripts/pkgbase-stage.lua
42

Ah right, I was forgetting that people use bsdinstall for jails. I only ever use it for installing from release media.

Yeah never mind then, what you have here is good.