Commit Graph

438 Commits

Author SHA1 Message Date
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
Tiago Bortoletto Vaz 76edb7835d lh_chroot_local-preseed: fix minor typo 2008-04-16 11:04:24 +02:00
Daniel Baumann eb7982d74e Releasing live-helper 1.0~a44-1. 2008-04-16 10:20:54 +02:00
Chris Lamb fe152b4d0c lh_binary_debian-installer: Add dependency on 'wget'
The 'minimal' hook removes wget, which is used extensively by the Debian
Installer hook.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-16 06:19:10 +01:00
Chris Lamb b16cedc254 Don't install "Recommends:" when installing local tools
This patch disables the installation of "Recommends:" packages whilst
obtaining build utilities such as 'syslinux'.

It has three benefits:

 * Doesn't waste time installing useless packages whilst building.

 * Keeps the "binary chroot" clean - packages leak into the the live system
   on a rebuild.

 * Makes the behaviour of Install_Package more predictable and independent
   of the chroot's APT configuration.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-16 03:42:28 +01:00
Chris Lamb 9e272993cc Fix a number of issues with Syslinux templates (Closes: #476204)
This fixes:

 * The ugly "toboot" and "to\nboot" problems
 * Mistitled F4 page
 * Ugly line-breaking of Debian Live URL

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-16 03:34:21 +01:00
Chris Lamb 24200e1a2c Use "find -path" for matching "path/to/file" files (Closes: #476206)
This means that /isolinux/isolinux.bin and /boot/grub/stage2_eltorito are
not included in md5sum files anymore as intended. It also prevents a
strange and verbose warning from appearing in build logs.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-16 00:54:08 +01:00
Chris Lamb 8f39f474b7 Fix quoting when installing local packages (Closes: #470683)
This was causing problems when building a package and there were binary
packages in the directory above 'config/'. See [0] and [1] for more info.

 [0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463406
 [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476294

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-15 18:34:34 +01:00
Chris Lamb 84612231f6 Fix typo in policy-rc.d
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-15 18:34:34 +01:00
Daniel Baumann ece0f9b574 Sorting image file lists. 2008-04-15 17:38:03 +02:00
Daniel Baumann 3f703f4802 Consistenly using short options rather than long options in function files. 2008-04-15 17:17:48 +02:00
Daniel Baumann fd818bdd1d Improving .deb caching by using hardlinks (if possible). 2008-04-15 17:16:28 +02:00
Daniel Baumann 214ad680d3 Creating binary and source file lists in build directory. 2008-04-15 13:59:53 +02:00
Daniel Baumann 72a7e46e00 Also copying binary package list to build directory. 2008-04-15 13:54:32 +02:00
Daniel Baumann 9d4ea53717 Also adding a packages.txt when building etch images, although there is a casper/filesystem.manifest already. 2008-04-11 18:18:04 +02: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
Chris Lamb 37666ee1bb helpers/lh_config, functions/defaults.sh: Correct "boostrap" -> "bootstrap"
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-10 22:31:17 +01:00
Daniel Baumann b7d55d146b Updating oot example hooks to loop through all install kernel flavours. 2008-04-10 12:43:50 +02:00
Daniel Baumann f4c10e4614 Releasing live-helper 1.0~a43-1. 2008-04-09 20:55:14 +02:00