mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
MFC r333262, r333264:
r333262: Ensure the ports and src trees are available on GCE images, satisfying a requirement to allow FreeBSD to be considered a top-tier supported OS in Google Compute Engine. r333264: Fix a typo. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
a7f39ea857
commit
b5069a7bea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=333327
@ -85,6 +85,29 @@ debug.trace_on_panic=1
|
|||||||
debug.debugger_on_panic=0
|
debug.debugger_on_panic=0
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# To meet GCE marketplace requirements, extract the src.txz and
|
||||||
|
# ports.txz distributions to the target virtual machine disk image
|
||||||
|
# and fetch the sources for the third-party software installed on
|
||||||
|
# the image.
|
||||||
|
if [ ! -c "${DESTDIR}/dev/null" ]; then
|
||||||
|
mkdir -p ${DESTDIR}/dev
|
||||||
|
mount -t devfs devfs ${DESTDIR}/dev
|
||||||
|
fi
|
||||||
|
if [ -e "${DESTDIR}/../ftp/src.txz" ]; then
|
||||||
|
tar fxJ ${DESTDIR}/../ftp/src.txz -C ${DESTDIR}
|
||||||
|
fi
|
||||||
|
if [ -e "${DESTDIR}/../ftp/ports.txz" ]; then
|
||||||
|
tar fxJ ${DESTDIR}/../ftp/ports.txz -C ${DESTDIR}
|
||||||
|
_INSTALLED_PACKAGES=$(chroot ${DESTDIR} pkg info -o -q -a)
|
||||||
|
for PACKAGE in ${_INSTALLED_PACKAGES}; do
|
||||||
|
chroot ${DESTDIR} \
|
||||||
|
make -C /usr/ports/${PACKAGE} fetch
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
if [ -c "${DESTDIR}/dev/null" ]; then
|
||||||
|
umount_loop ${DESTDIR}/dev
|
||||||
|
fi
|
||||||
|
|
||||||
## XXX: Verify this is needed. I do not see this requirement
|
## XXX: Verify this is needed. I do not see this requirement
|
||||||
## in the docs, and it impairs the ability to boot-test a copy
|
## in the docs, and it impairs the ability to boot-test a copy
|
||||||
## of the image prior to packaging for upload to GCE.
|
## of the image prior to packaging for upload to GCE.
|
||||||
|
Loading…
Reference in New Issue
Block a user