From 1aef616afd589b91d299f8e0b5e7c24061538550 Mon Sep 17 00:00:00 2001 From: David Krauser Date: Thu, 26 Mar 2020 15:44:05 -0400 Subject: [PATCH] Include -security and -updates packages in bootable buildd images The base image is built with packages from the release pocket; however, we want the latest from updates and security. Those pockets are already enabled, we just need to perform an upgrade to pull in the latest packages. --- live-build/buildd/hooks/52-linux-virtual-image.binary | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/live-build/buildd/hooks/52-linux-virtual-image.binary b/live-build/buildd/hooks/52-linux-virtual-image.binary index a0c64d75..10f859d5 100755 --- a/live-build/buildd/hooks/52-linux-virtual-image.binary +++ b/live-build/buildd/hooks/52-linux-virtual-image.binary @@ -36,9 +36,16 @@ cleanup_linux_virtual() { } trap cleanup_linux_virtual EXIT -# Install dependencies +# The base image is built with packages from the release pocket; +# however, we want the latest from updates and security. Those +# pockets are already enabled, we just need to perform an upgrade +# to pull in the latest packages. env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \ update --assume-yes +env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \ + dist-upgrade --assume-yes + +# Install dependencies env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \ install -y lsb-release locales initramfs-tools busybox-initramfs \ udev dbus netplan.io cloud-init openssh-server sudo snapd