diff options
author | Colin Percival <cperciva@FreeBSD.org> | 2020-06-30 06:14:34 +0000 |
---|---|---|
committer | Colin Percival <cperciva@FreeBSD.org> | 2020-06-30 06:14:34 +0000 |
commit | fd5f7f341b0fbbafdffc6681de505a5ee33bb29a (patch) | |
tree | ed700812f73ea2484731fcad3236bf66811f2e1f /release/tools | |
parent | 81884a247ca3efea5fd285a373281f6fea090976 (diff) | |
download | src-fd5f7f341b0fbbafdffc6681de505a5ee33bb29a.tar.gz src-fd5f7f341b0fbbafdffc6681de505a5ee33bb29a.zip |
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
Notes
Notes:
svn path=/head/; revision=362791
Diffstat (limited to 'release/tools')
-rw-r--r-- | release/tools/ec2.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf index addae55ea7bb..45417e856d2d 100644 --- a/release/tools/ec2.conf +++ b/release/tools/ec2.conf @@ -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/' \ |