Commit Graph

456 Commits

Author SHA1 Message Date
Chris Lamb
ebe501da1e Remove buggy ext2resize
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-28 17:05:47 +01:00
Chris Lamb
c85a259713 Remove oldstable-only hwtools from rescue list
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-28 17:05:47 +01:00
Chris Lamb
1daf2cdff4 Remove removed/non-Debian packages pasd, irpas and nsed from rescue list
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-28 17:05:47 +01:00
Chris Lamb
fffbc3908d Correct typo of "ntfs3g" -> "ntfs-3g" in rescue list
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-28 17:05:47 +01:00
Chris Lamb
b2e889cd8e Only install reaim on Etch in rescue list
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-28 17:05:47 +01:00
Chris Lamb
898d868dcd Correct typo of "geopip-bin" => "geoip-bin"
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-28 17:05:47 +01:00
Chris Lamb
b8cb2d13c0 Only install sysutils on Etch in rescue list
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-28 17:05:47 +01:00
Chris Lamb
5cfc5681df Only install read-edid on i386 and powerpc in rescue list
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-28 17:05:47 +01:00
Daniel Baumann
6e84963c6c Releasing live-helper 1.0~a46-1. 2008-04-28 17:42:18 +02:00
Daniel Baumann
18224fba5e Adding netboot tarballs and plain squashfs images to images build script. 2008-04-28 17:36:06 +02:00
Tiago Bortoletto Vaz
64b7d8cb86 Support list of items for conditionals in package lists
This patch allows giving a list of items for the conditionals in package
lists. For example, it's possible to specify some packages for more than one
architecture in the same conditional block:

 package01
 #if ARCHITECTURE i386 amd64
 package02
 package03
 #endif
 package04

where package01 and package04 are available for all architectures, but
package02 and package03 are available only for i386 and amd64 architectures.
2008-04-27 19:16:39 -03:00
Chris Lamb
14ffd3f15f Only install pstack on i386 (Closes: #477815)
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-26 23:43:19 +01:00
Chris Lamb
d77ee36137 Support simple conditionals in package lists
This patch adds support for simple conditionals in package lists. For
example, to limit a package to i386 only:

 foo
 #if ARCHITECTURE i386
 package-only-in-i386
 #endif
 bar

Any variable that beings in LH_ can be expanded:

 #if MODE ubuntu
 package-only-in-ubuntu
 #endif

Nesting of conditionals is not supported. If the variable to be expanded
does not exist, the conditional is false.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-26 23:43:01 +01:00
Chris Lamb
bb68e30166 Use APT::Install-Recommends to disable installation of recommends for Etch
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-26 22:20:06 +01:00
Daniel Baumann
8d241680ca Adding powerpc64 to default kernel flavours (in addition to the normal 32 bit one). 2008-04-25 14:14:16 +02:00
Daniel Baumann
d0533ecf81 Adjusting obtaining of the date string in snapshots.sh to new git log date format. 2008-04-25 09:00:10 +02:00
Tiago Bortoletto Vaz
bd807ecc54 Fixed minor typographical error in rescue flavor file. 2008-04-24 07:01:36 -03:00
Tiago Bortoletto Vaz
307e6d2e0a Improving rescue flavor: added a set of missing tools, mainly for file system
recover - most based on System Rescue Cd Project; Also, sorted some unsorted
tools in the rescue file.
2008-04-24 06:58:15 -03:00
Daniel Baumann
65a3964a1a Updating Richards email address. 2008-04-23 18:50:02 +02:00
Daniel Baumann
705cb6cec1 Producing rsyncable tarballs where possible. 2008-04-22 23:32:30 +02:00
Daniel Baumann
e98676f6b3 Also taking mirrors from environment in image.sh. 2008-04-22 18:23:34 +02:00
Daniel Baumann
179a9155da Taking config variables for images.sh from environment. 2008-04-22 18:19:19 +02:00
Daniel Baumann
a6b745939a Handling sourceless builds in images.sh. 2008-04-22 17:57:28 +02:00
Daniel Baumann
eb30df0655 Removing old cron example scripts for image building, they are obsoleted by images.sh. 2008-04-22 17:51:20 +02:00
Daniel Baumann
56cb5e4527 Updating live-magic git location. 2008-04-21 23:57:47 +02:00
Daniel Baumann
6fe97be597 Getting architecture dynamically in images cron script. 2008-04-21 23:22:46 +02:00
Daniel Baumann
f44e2ef79f Correcting permissions in snapshot script. 2008-04-21 21:27:10 +02:00
Daniel Baumann
d236758c6b Releasing live-helper 1.0~a45-1. 2008-04-21 11:18:57 +02:00
Daniel Baumann
a9af0b69b2 Updating snapshots url. 2008-04-21 10:39:23 +02:00
Daniel Baumann
bd9fb96189 Adding live-magic to snapshots. 2008-04-21 10:38:33 +02:00
Daniel Baumann
0c694993b7 Adding debian-unofficial-archive-keyring to snapshots. 2008-04-21 10:38:07 +02:00
Daniel Baumann
3c5260ea4d Updating live-snapshots example sources. 2008-04-19 21:21:52 +02:00
Daniel Baumann
a2675ece91 Removing non anymore existing live-backports example sources. 2008-04-19 21:20:16 +02:00
Daniel Baumann
218d9a6dc6 Renaming image build script. 2008-04-19 20:46:36 +02:00
Daniel Baumann
5bc25fd2eb Adjusting Save_cache(); to skip already cached .deb files and only copying new packages to it. 2008-04-19 17:39:44 +02:00
Chris Lamb
ef8df9bcad Allow fallback to chroot_package-lists inside binary lists
Without this, a modified version of the (say) "gnome" list inside
chroot_package-lists would be completely ignored when installing binary
packagelists.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-19 17:32:25 +02:00
Chris Lamb
ac3563b3ca Remove temporary binary package list files
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-19 17:32:10 +02:00
Chris Lamb
f8c8aaa99a Tidy calls to new Expand_packagelist
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-19 17:32:02 +02:00
Chris Lamb
d49857d8ff Rewrite Expand_packagelist to not be recursive
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-19 16:29:28 +01:00
Daniel Baumann
262ebded39 Updating snapshot build script. 2008-04-18 08:49:38 +02:00
Daniel Baumann
0cf9ae0b0e When building snapshot images, also storing source.list away. 2008-04-17 13:05:29 +02:00
Daniel Baumann
d9f7a3a9f1 Building snapshot images with --apt-recommends disabled. 2008-04-17 12:58:32 +02:00
Daniel Baumann
062a5dfd15 Adding example script to build a row of images. 2008-04-17 12:13:49 +02:00
Daniel Baumann
734762fcf1 Some formating and style cleanups. 2008-04-17 10:42:34 +02:00
Daniel Baumann
dd470ea575 Using one single packages cache directory for all chroot packages. 2008-04-17 10:39:47 +02:00
Daniel Baumann
bd76f9940b Using hardlinks to copy local packages into chroot. 2008-04-17 06:51:40 +02:00
Daniel Baumann
bb6b5e1249 Moving lh_chroot_packages call in lh_chroot to old place. 2008-04-17 06:51:31 +02:00
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
19c72588c8 hooks/minimal: Use "find -print0 | xargs -0" idiom over "find | xargs"
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-16 13:50:24 +01:00