jamierajewski/illume-v2

How to handle updates?

Closed this issue · 5 comments

Every so often, instances should be rebuilt to include the latest changes to packages (non-vital ones like user packages). Ensure that on a rebuild, it runs an update at the end?

One could naively add sudo apt-get update && sudo apt-get upgrade -y in each of the high-level packer profiles, although this will update everything so care is needed to on a per-profile basis to ensure updates only occur for non-vital packages.

Upgrading everything doesn't work due to containers-common being broken:

Errors were encountered while processing:
 /tmp/apt-dpkg-install-eFjNBJ/33-containers-common_100%3a1-7_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Figure out why to allow it to update as this will probably be important for container support into the future

  • Create an exclusion list (if feasible) to control certain things manually like Nvidia packages
  • Get security updates once a day (configure apt for this)

After some discussion:

  • Only exclude Nvidia/CUDA packages for now
  • For security updates, install unattended-upgrades which will install security updates daily
  • For everything else, update weekly/monthly manually (update the pinned versions of tools and rebuild the images to update)