From 36cc525945f8726662dbb35395a24064cee0098f Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 17 Apr 2008 04:13:49 +0100 Subject: Install most chroot packages in one ${LH_APT} call (Closes: #475739) This patch installs (almost) all chroot packages by queueing the package names into a single file and then installing that. It depends on my previous patch to install local packages by using an APT mirror. This speeds up image build causes even greater speedups once more packages adopt triggers. (Packages installed by debconf preseeding are not touched, nor are packages installed by tasks.) --- helpers/lh_chroot_linux-image | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'helpers/lh_chroot_linux-image') diff --git a/helpers/lh_chroot_linux-image b/helpers/lh_chroot_linux-image index 3d760f90c..56f4da45f 100755 --- a/helpers/lh_chroot_linux-image +++ b/helpers/lh_chroot_linux-image @@ -33,9 +33,6 @@ Require_stagefile .stage/bootstrap case "${1}" in install) - # Restoring cache - Restore_cache cache/packages_linux-image - Echo_message "Configuring file /etc/kernel-img.conf" # Checking stage file @@ -72,16 +69,13 @@ EOF do for PACKAGE in ${LH_LINUX_PACKAGES} do - PACKAGES="${PACKAGES} ${PACKAGE}-${FLAVOUR}" + echo ${PACKAGE}-${FLAVOUR} >> chroot/root/chroot_packages done done fi - # Installing linux-image, modules and ${LH_INITRAMFS} - Apt install ${PACKAGES} ${LH_INITRAMFS} - - # Saving cache - Save_cache cache/packages_linux-image + # Queue installation of linux-image and ${LH_INITRAMFS} + echo ${LH_INITRAMFS} >> chroot/root/chroot_packages # Creating stage file Create_stagefile .stage/chroot_linux-image -- cgit v1.2.3