Changeset View
Changeset View
Standalone View
Standalone View
release/tools/gce.conf
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| EOF | EOF | ||||
| # To meet GCE marketplace requirements, extract the src.txz and | # To meet GCE marketplace requirements, extract the src.txz and | ||||
| # ports.txz distributions to the target virtual machine disk image | # ports.txz distributions to the target virtual machine disk image | ||||
| # and fetch the sources for the third-party software installed on | # and fetch the sources for the third-party software installed on | ||||
| # the image. | # the image. | ||||
| if [ -e "${DESTDIR}/../ftp/src.txz" ]; then | if [ -e "${DESTDIR}/../ftp/src.txz" ]; then | ||||
| tar fxJ ${DESTDIR}/../ftp/src.txz -C ${DESTDIR} | tar fxJ ${DESTDIR}/../ftp/src.txz -C ${DESTDIR} | ||||
| ( cd ${DESTDIR} && find ./usr/src ) | | |||||
| while read P; do | |||||
| metalog_add_data ${P} | |||||
| done | |||||
markj: Indentation here is wonky. | |||||
Done Inline ActionsBetter now? cperciva: Better now? | |||||
Not Done Inline ActionsLooks ok now, yes. markj: Looks ok now, yes. | |||||
| fi | fi | ||||
| if [ -e "${DESTDIR}/../ftp/ports.txz" ]; then | if [ -e "${DESTDIR}/../ftp/ports.txz" ]; then | ||||
| tar fxJ ${DESTDIR}/../ftp/ports.txz -C ${DESTDIR} | tar fxJ ${DESTDIR}/../ftp/ports.txz -C ${DESTDIR} | ||||
| _INSTALLED_PACKAGES=$(pkg -r ${DESTDIR} info -o -q -a | grep -v ^base/) | _INSTALLED_PACKAGES=$(pkg -r ${DESTDIR} info -o -q -a | grep -v ^base/) | ||||
| for PACKAGE in ${_INSTALLED_PACKAGES}; do | for PACKAGE in ${_INSTALLED_PACKAGES}; do | ||||
| make -C ${DESTDIR}/usr/ports/${PACKAGE} fetch \ | make -C ${DESTDIR}/usr/ports/${PACKAGE} fetch \ | ||||
| DISTDIR=${DESTDIR}/usr/ports/distfiles \ | DISTDIR=${DESTDIR}/usr/ports/distfiles \ | ||||
| DISABLE_VULNERABILITIES=YES \ | DISABLE_VULNERABILITIES=YES \ | ||||
| I_DONT_CARE_IF_MY_BUILDS_TARGET_THE_WRONG_RELEASE=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 | done | ||||
Not Done Inline ActionsSame here. markj: Same here. | |||||
| fi | 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. | ||||
| #sed -E -i '' 's/^([^#].*[[:space:]])on/\1off/' ${DESTDIR}/etc/ttys | #sed -E -i '' 's/^([^#].*[[:space:]])on/\1off/' ${DESTDIR}/etc/ttys | ||||
| return 0 | return 0 | ||||
| Show All 10 Lines | |||||
Indentation here is wonky.