summaryrefslogtreecommitdiff
path: root/contrib/cirrus/packer/ubuntu_setup.sh
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2019-09-24 13:22:13 -0400
committerChris Evich <cevich@redhat.com>2019-09-26 12:36:33 -0400
commit8368a894ba23f4c1eb5bba398612c3b3dc45387e (patch)
treefbc3fc4f6702a5eac8d2fdecacbf7efcd54a28e9 /contrib/cirrus/packer/ubuntu_setup.sh
parentb9e21af44fb085c899d1c94401f8b5ef0471199a (diff)
downloadpodman-8368a894ba23f4c1eb5bba398612c3b3dc45387e.tar.gz
podman-8368a894ba23f4c1eb5bba398612c3b3dc45387e.tar.bz2
podman-8368a894ba23f4c1eb5bba398612c3b3dc45387e.zip
Cirrus: Disable boottime Ubuntu package update
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/packer/ubuntu_setup.sh')
-rw-r--r--contrib/cirrus/packer/ubuntu_setup.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/cirrus/packer/ubuntu_setup.sh b/contrib/cirrus/packer/ubuntu_setup.sh
index 4ae8ea6e9..c94e74a08 100644
--- a/contrib/cirrus/packer/ubuntu_setup.sh
+++ b/contrib/cirrus/packer/ubuntu_setup.sh
@@ -18,8 +18,16 @@ trap "sudo rm -rf $GOPATH" EXIT
# Ensure there are no disruptive periodic services enabled by default in image
systemd_banish
+# Stop disruption upon boot ASAP after booting
+echo "Disabling all packaging activity on boot"
+# Don't let sed process sed's temporary files
+_FILEPATHS=$(sudo ls -1 /etc/apt/apt.conf.d)
+for filename in $_FILEPATHS; do \
+ echo "Checking/Patching $filename"
+ sudo sed -i -r -e "s/$PERIODIC_APT_RE/"'\10"\;/' "/etc/apt/apt.conf.d/$filename"; done
+
echo "Updating/configuring package repositories."
-$LILTO $SUDOAPTGET update
+$BIGTO $SUDOAPTGET update
echo "Upgrading all packages"
$BIGTO $SUDOAPTGET upgrade