summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_linux-image
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-04-17 04:13:49 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:32 +0100
commit36cc525945f8726662dbb35395a24064cee0098f (patch)
tree0fa56a1d775b64c68bbfed441499872f4463870f /helpers/lh_chroot_linux-image
parentae785955db43a135455b50b98807a26b9fb8805a (diff)
downloadlive-build-36cc525945f8726662dbb35395a24064cee0098f.zip
live-build-36cc525945f8726662dbb35395a24064cee0098f.tar.gz
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.)
Diffstat (limited to 'helpers/lh_chroot_linux-image')
-rwxr-xr-xhelpers/lh_chroot_linux-image12
1 files changed, 3 insertions, 9 deletions
diff --git a/helpers/lh_chroot_linux-image b/helpers/lh_chroot_linux-image
index 3d760f9..56f4da4 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