Commit Graph

20 Commits

Author SHA1 Message Date
Chris Lamb 478331c4e1 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>
2008-04-17 06:51:22 +02:00
Chris Lamb 1086ec4784 Install local packages using a local APT repo instead of using "dpkg -i"
This patch modifies chroot_sources to build a small APT repo of the
local-packages and use that for local package installation instead of
"dpkg -i". This has a few advantages:

 * Removes the true ugliness that is "dpkg -i *.deb && apt-get install -f".
   This not only is slow and brittle, it causes scary "dpkg dependency
   error" messages to appear in build logs.

 * We can (ie. not implemented here) move to installing all the packages
   from:

    - lh_chroot_packages (ie. ${LH_PACKAGES})
    - lh_chroot_local-packages (ie. config/chroot_local-packages/*.deb)
    - lh_chroot_local-packageslists
    - lh_chroot_packages-lists
    - lh_chroot_linux-image

   .. in one shot. This would primarily improve speed as we would not keep
   invoking ${LH_APT}, and package installations can share triggers and
   suchlike -- installing a custom live-initramfs via local packages
   currently costs an additional "update-initramfs -u" call.

   It would also fix a number of obscure dependency cases, such as the one
   documented in #475739, and--if the user is using aptitude--may even
   result in better resolution choices.

 * Removes some messy and somewhat brittle code in lh_chroot_linux-image
   that edgecases a local live-initramfs.

The disadvantages are:

 * If local packages are being used and we are building in a chroot, we
   must refresh the sources list and rebuild the repo before building the
   binary images. (However, before this patch, we had to do this anyway if
   the binary mirrors were different from the chroot ones.)

 * We must add a little hack to the minimal hook to detect whether we are
   using local packages and not remove apt-utils (which creates the
   repository in lh_chroot_sources) if that is the case -- we cannot simply
   use "Install_package" inside lh_chroot_sources as we are not guaranteed
   to have working APT data because the minimal hook deliberately removes
   them!

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-16 13:50:24 +01:00
Chris Lamb 49d27a086d lh_chroot_linux-image: Catch missing case in local live-initramfs handling
This patch catches the case when LH_APT is "apt", its default value. This
was causing build failures when using a local live-initramfs .deb.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-10 22:36:22 +01:00
Daniel Baumann 07a3c54d46 Using new Read_conffile(); now. 2008-04-07 12:10:21 +02:00
Daniel Baumann e79e733e49 Adding 'all' configuration file. 2008-04-07 11:58:50 +02:00
Chris Lamb 9e6c04702f lh_chroot_linux-image: Install dependencies differently when using aptitude
We must use "aptitude install <pkgname>" to install dependencies of a
dpkg-installed <pkgname>, or aptitude's resolver will remove it. apt-get
does not have this "feature".

This was causing a problem when using a custom versions of live-initramfs
as they would be removed, causing a boot failure.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-03-22 02:44:18 +00:00
Daniel Baumann ab336ba97e Updating copyright years to 2008. 2008-03-06 16:43:00 +01:00
Daniel Baumann ccb76dc4a4 It's actually enough to just truncate kernel-img.conf and also less invasive than including a default configuration. 2008-02-29 17:29:00 +01:00
Daniel Baumann 6244123de2 Including default kernel-img.conf in live-systems. 2008-02-29 16:40:02 +01:00
Daniel Baumann fa3c63f5dc Adding apt/aptitude options.
By using APT_OPTIONS and APTITUDE_OPTIONS in config/common,
one can manipulate the default options wich is made to each
and every apt and aptitude call.
2008-02-21 20:03:57 +01:00
Daniel Baumann a0e8e45a4f Working arround aptitude behaviour of removing packages rather than to installing missing depends when using initramfs generator from local-packages. 2008-01-18 09:51:07 +01:00
Daniel Baumann 84d7dc0ccd Correcting wrong installation attempt of initramfs generator from local-packages. 2008-01-18 09:23:32 +01:00
Daniel Baumann 5b957702d4 Installing initramfs generator from local-packages, if available. 2008-01-17 20:54:10 +01:00
Daniel Baumann 403452b08b Adding live-helper 1.0~a23-1. 2007-09-23 10:05:18 +02:00
Daniel Baumann fdd30ecebf Adding live-helper 1.0~a22-1. 2007-09-23 10:05:17 +02:00
Daniel Baumann 615360e7ad Adding live-helper 1.0~a18-1. 2007-09-23 10:05:14 +02:00
Daniel Baumann b88a20b5dd Adding live-helper 1.0~a16-1. 2007-09-23 10:05:12 +02:00
Daniel Baumann ce2db1b609 Adding live-helper 1.0~a15-1. 2007-09-23 10:05:12 +02:00
Daniel Baumann 0ffe6970c4 Adding live-helper 1.0~a13-1. 2007-09-23 10:05:11 +02:00
Daniel Baumann f0712b2f79 Adding live-helper 1.0~a10-1. 2007-09-23 10:05:09 +02:00