Page MenuHomeFreeBSD

Clean pkg cache after installing wifi-firmware-kmod-release in release media 14.2
ClosedPublic

Authored by bofh on Dec 6 2024, 5:03 PM.
Tags
Referenced Files
Unknown Object (File)
Thu, Mar 6, 11:25 AM
Unknown Object (File)
Fri, Feb 28, 4:13 PM
Unknown Object (File)
Fri, Feb 28, 12:55 PM
Unknown Object (File)
Wed, Feb 26, 8:23 AM
Unknown Object (File)
Tue, Feb 18, 8:09 PM
Unknown Object (File)
Dec 21 2024, 3:22 PM
Unknown Object (File)
Dec 20 2024, 12:38 PM
Unknown Object (File)
Dec 10 2024, 1:41 AM

Details

Summary

Recently, we have added the wifi-firmware-kmod-release pkgs in the release installation media, but unfortunately, the pkgs are not cleaned up after the installation, keeping the pkgs in the cache. The pkgs should be removed with pkg clean.

Also look at the bug report:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283112

MFC after: 3 days/immediate (before next snapshot)

Diff Detail

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

Event Timeline

bofh requested review of this revision.Dec 6 2024, 5:03 PM
emaste added a reviewer: bz.
This revision is now accepted and ready to land.Dec 6 2024, 5:14 PM

That's a good catch, and not sure if we also want to remove the repo data in the cache and unregister the pkg itself like what we do in VM. Having those might cause an issue when pkg is boostraped but repo data is seriously out-of-date. We encountered this in the past in the cloud images.

That's a good catch, and not sure if we also want to remove the repo data in the cache and unregister the pkg itself like what we do in VM. Having those might cause an issue when pkg is boostraped but repo data is seriously out-of-date. We encountered this in the past in the cloud images.

Forgot to attach the reference: https://github.com/freebsd/freebsd-src/blob/main/release/tools/ec2.conf#L27-L30

want to remove the repo data in the cache and unregister the pkg itself like what we do in VM

Perhaps, but I think this issue is fundamentally different than the VM case and I would suggest we both make this (D47942) change and MFC it as soon as we can, and consider following up with further changes.

want to remove the repo data in the cache and unregister the pkg itself like what we do in VM

Perhaps, but I think this issue is fundamentally different than the VM case and I would suggest we both make this (D47942) change and MFC it as soon as we can, and consider following up with further changes.

Yes I don't mean to stop merging this (I didn't set to "request changes"). Just wanted to provide more related information...

I am still contemplating if we should simply put the cache-dir outside the

I assume what pkg-clean calls PKG_CONFIG_CACHEDIR pkg-install calls PKG_CACHEDIR and given we don't chroot (unless pkg -r does that implicitly) we could just put the CACHEDIR somewhere else into obj.

But yes, get this in first and refine later is probably a good approach; I never got an answer from @brd who, as @cperciva said, had figured this all out for pkg-base already?

@bofh are you going to commit this?

In D47942#1094365, @bz wrote:

@bofh are you going to commit this?

To be frank, although I wear a re@ hat, we have strict directives from @cperciva not to commit to /release without his approval. As he is in AWS REINVENT for now; I am not sure how this works. :(

In D47942#1094365, @bz wrote:

@bofh are you going to commit this?

To be frank, although I wear a re@ hat, we have strict directives from @cperciva not to commit to /release without his approval. As he is in AWS REINVENT for now; I am not sure how this works. :(

Okay. I assume it's that automated snapshots etc. do not break. He should be back any day now I hope, let's see. I am just trying to wrap up lose ends before traveling as well ;-)

It would be very good to get this committed (to main) before this week's snapshots

This revision was automatically updated to reflect the committed changes.