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>2008-04-17 06:51:22 +0200
commit478331c4e155baaa22d4714bc936b7d05631e42b (patch)
tree0fa56a1d775b64c68bbfed441499872f4463870f /helpers/lh_chroot_linux-image
parent1086ec47845f11fb1d495e04c952e7c63122ad6b (diff)
downloadvyos-live-build-478331c4e155baaa22d4714bc936b7d05631e42b.tar.gz
vyos-live-build-478331c4e155baaa22d4714bc936b7d05631e42b.zip
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.) Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
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 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