aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2025-11-18 01:02:47 +0000
committerColin Percival <cperciva@FreeBSD.org>2025-11-18 02:18:27 +0000
commit0dbb00733c4a177a9a22d61a627d377d0876ea16 (patch)
treedeab576fa62cebe78e0012d4e8955e86e61b8f96
parent86c63597f2dc7f89268d13a00c0dc7a74cca51d0 (diff)
GCE: Add /usr/src and /usr/ports to METALOG
We ship these in order to comply with GCE Marketplace rules about providing source code and licenses for all the software we ship as part of images. Reviewed by: markj MFC after: immediately (15.0-RC2) Differential Revision: https://reviews.freebsd.org/D53796
-rw-r--r--release/tools/gce.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/release/tools/gce.conf b/release/tools/gce.conf
index 78511dbc66c9..c1e129ba69d6 100644
--- a/release/tools/gce.conf
+++ b/release/tools/gce.conf
@@ -98,6 +98,10 @@ EOF
# the image.
if [ -e "${DESTDIR}/../ftp/src.txz" ]; then
tar fxJ ${DESTDIR}/../ftp/src.txz -C ${DESTDIR}
+ ( cd ${DESTDIR} && find ./usr/src ) |
+ while read P; do
+ metalog_add_data ${P}
+ done
fi
if [ -e "${DESTDIR}/../ftp/ports.txz" ]; then
tar fxJ ${DESTDIR}/../ftp/ports.txz -C ${DESTDIR}
@@ -108,6 +112,10 @@ EOF
DISABLE_VULNERABILITIES=YES \
I_DONT_CARE_IF_MY_BUILDS_TARGET_THE_WRONG_RELEASE=YES
done
+ ( cd ${DESTDIR} && find ./usr/ports ) |
+ while read P; do
+ metalog_add_data ${P}
+ done
fi
## XXX: Verify this is needed. I do not see this requirement