From f47f08ef4ea90202c005a786dab1b78b57922218 Mon Sep 17 00:00:00 2001 From: Sean Goller Date: Tue, 8 Jan 2019 10:48:51 -0800 Subject: [PATCH] Fixes for grub and TCP syn cookies. * Make sure 'apt upgrade' can handle grub changes without asking for help. * Turn off TCP syn cookies because performance. Authored-by: Sean Goller --- infrastructure/scripts/aws/image/build_image.sh | 0 infrastructure/scripts/aws/image/packer.json | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 infrastructure/scripts/aws/image/build_image.sh diff --git a/infrastructure/scripts/aws/image/build_image.sh b/infrastructure/scripts/aws/image/build_image.sh old mode 100644 new mode 100755 diff --git a/infrastructure/scripts/aws/image/packer.json b/infrastructure/scripts/aws/image/packer.json index 948d57e24..1621ca4b6 100644 --- a/infrastructure/scripts/aws/image/packer.json +++ b/infrastructure/scripts/aws/image/packer.json @@ -43,11 +43,12 @@ "type": "shell", "inline": [ "sudo apt update", - "sudo apt upgrade -y", + "sudo UCF_FORCE_CONFFOLD= UCF_FORCE_CONFFNEW=YES apt upgrade -y", "sudo apt install -y openjdk-8-jdk unzip dstat", "sudo update-java-alternatives -s java-1.8.0-openjdk-amd64", "sudo mv /tmp/defaults.cfg /etc/cloud/cloud.cfg.d/defaults.cfg", - "sudo sh -c \"echo 'StrictHostKeyChecking no' >> /etc/ssh/ssh_config\"" + "sudo sh -c \"echo 'StrictHostKeyChecking no' >> /etc/ssh/ssh_config\"", + "sudo sh -c \"echo 'net.ipv4.tcp_syncookies = 0' >> /etc/sysctl.conf\"" ] } ]