Disable automatic system updates on Ubuntu 00/50700/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 20 Jan 2017 05:34:01 +0000 (21:34 -0800)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 20 Jan 2017 05:35:03 +0000 (21:35 -0800)
The cloud-init package has a hard dependency on the automatic update
mechanism in Ubuntu 14.04. As removing this causes systems to not be
accessible when booted, instead we're just going disable all of the
options for the automatic update system

Change-Id: Ic6a8af2dfdaa7238e6273919b93da32a9d3f6692
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
packer/provision/baseline.sh

index 7eca1cabd5cd15ef14bf7f73ef9368c2a7df93ae..976cf4cf6c1dc820f62c213f56b455a3d834f4ea 100644 (file)
@@ -149,6 +149,11 @@ EOF
     # install haveged to avoid low entropy rejecting ssh connections
     apt-get install haveged
     update-rc.d haveged defaults
+
+    # disable unattended upgrades & daily updates
+    echo '---> Disabling automatic daily upgrades'
+    sed -ine 's/"1"/"0"/g' /etc/apt/apt.conf.d/10periodic
+    echo 'APT::Periodic::Unattended-Upgrade "0";' >> /etc/apt/apt.conf.d/10periodic
 }
 
 all_systems() {