Page MenuHomeFreeBSD

release: Prepare GCE cloudware images for building as non-root
ClosedPublic

Authored by markj on Sep 9 2025, 2:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 4:03 AM
Unknown Object (File)
Sat, Oct 11, 12:04 AM
Unknown Object (File)
Fri, Oct 10, 4:56 AM
Unknown Object (File)
Fri, Oct 10, 3:49 AM
Unknown Object (File)
Fri, Oct 10, 3:49 AM
Unknown Object (File)
Thu, Oct 9, 10:41 PM
Unknown Object (File)
Thu, Oct 9, 10:41 PM
Unknown Object (File)
Thu, Oct 9, 10:40 PM

Details

Summary
  • Avoid mounting devfs just to list packages and fetch distfiles.
  • Add metalog entries.

Diff Detail

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

Event Timeline

markj requested review of this revision.Sep 9 2025, 2:54 PM
cperciva added inline comments.
release/tools/gce.conf
99

s/ports/src/

105–107

Probably want to set DISTDIR=${DESTDIR}/usr/ports/distfiles here just in case there's environmental pollution which would send the distfiles into the wrong place.

release/tools/gce.conf
98

Actually thinking about this a bit more -- the src.txz and ports.txz tarballs will go away at some point with pkgbase. Can we copy the trees directly rather than going through those? (Obviously we have a src tree at this point; I'm not immediately sure if we're guaranteed to have a ports tree mounted when this code runs but that's probably easily achievable.)

release/tools/gce.conf
98

I think it's reasonable to do that, but separately from this change. But, is the change here just fxJ to -xfJ?

release/tools/gce.conf
98

Yeah I have no problem with that change happening later. Just thought about it while looking at these bits.

emaste requested changes to this revision.Sep 15 2025, 2:03 PM

Recording "request changes" for @cperciva's comment

This revision now requires changes to proceed.Sep 15 2025, 2:03 PM

Remove an inadvertent change to a tar invocation.

markj marked 3 inline comments as done.

Set DISTDIR when fetching ports distfiles.

This revision is now accepted and ready to land.Sep 15 2025, 9:00 PM