From 16fcd16bf568d5ad76376b810e38519922283853 Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Mon, 3 Aug 2020 01:00:20 +0000 Subject: [PATCH] MFC r362791: Make EC2 AMIs use portsnap and freebsd-update mirrors hosted in AWS --- release/tools/ec2.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf index b5964dcce12..88d29990218 100644 --- a/release/tools/ec2.conf +++ b/release/tools/ec2.conf @@ -111,6 +111,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/' \ -- 2.45.0