Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jun 2020 06:14:34 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362791 - head/release/tools
Message-ID:  <202006300614.05U6EYES056374@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cperciva
Date: Tue Jun 30 06:14:34 2020
New Revision: 362791
URL: https://svnweb.freebsd.org/changeset/base/362791

Log:
  Make EC2 AMIs use portsnap and freebsd-update mirrors hosted in AWS
  
  This adjusts freebsd-update.conf and portsnap.conf files in EC2 AMIs to
  point at the new AWS-hosted mirror network.
  
  Approved by:	re (delphij)
  MFC after:	1 month
  Differential Revision:	https://reviews.freebsd.org/D25498

Modified:
  head/release/tools/ec2.conf

Modified: head/release/tools/ec2.conf
==============================================================================
--- head/release/tools/ec2.conf	Mon Jun 29 22:12:23 2020	(r362790)
+++ head/release/tools/ec2.conf	Tue Jun 30 06:14:34 2020	(r362791)
@@ -108,6 +108,12 @@ vm_extra_pre_umount() {
 		's/^#ChallengeResponseAuthentication yes/ChallengeResponseAuthentication no/' \
 		${DESTDIR}/etc/ssh/sshd_config
 
+	# Use FreeBSD Update and Portsnap mirrors hosted in AWS
+	sed -i '' -e 's/update.FreeBSD.org/aws.update.FreeBSD.org/' \
+		${DESTDIR}/etc/freebsd-update.conf
+	sed -i '' -e 's/portsnap.FreeBSD.org/aws.portsnap.FreeBSD.org/' \
+		${DESTDIR}/etc/portsnap.conf
+
 	# Use the NTP service provided by Amazon
 	sed -i '' -e 's/^pool/#pool/' \
 		-e '1,/^#server/s/^#server.*/server 169.254.169.123 iburst/' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006300614.05U6EYES056374>