Commit Graph

85 Commits

Author SHA1 Message Date
Chris Lamb c7bccbbf26 Add busybox to DI_PACKAGES as its required to install kernels. 2011-03-09 19:03:38 +01:00
Chris Lamb aa9c076df9 Choose correct d-i install method for "live" and usb-hdd/tar image types. 2011-03-09 19:03:38 +01:00
Chris Lamb 974e737b62 Don't duplicate .debs of packages in binary/pool that are installed via live-installer.
This saves about 80MiB of space when building LH_DEBIAN_INSTALLER="live".
2011-03-09 19:03:38 +01:00
Chris Lamb 4dc5c74e05 Create pool/main to prevent build failure when no local .debs are queued for installation. 2011-03-09 19:03:38 +01:00
Chris Lamb a1c4763a02 Don't include the bootstrap .debs on live-installer based disks (saves ~30MiB). 2011-03-09 19:03:38 +01:00
Chris Lamb d6053a8103 Rework WGET_OPTIONS and use "--no-verbose" by default (just prints the URL). 2011-03-09 19:03:38 +01:00
Chris Lamb 74ef06a44e Fix bug in LH_DEBIAN_INSTALLER_DISTRIBUTION = "daily" handling.
Was causing build failures as it was trying to download files from a
"daily" component of a mirror.
2011-03-09 19:03:38 +01:00
Daniel Baumann ba25e433b5 Merging debian-installer-daily option into debian-installer-distribution. 2011-03-09 19:03:38 +01:00
Tiago Bortoletto Vaz 2acf049825 Suporting debian-installer distribution choice, which makes possible to build a image using a system-independent debian-installer suite. The config option for this is --debian-installer-distribution CODENAME. 2011-03-09 19:03:38 +01:00
Antonio Terceiro 7f1a4e4fc5 Replacing file checking with ls by function calls
Instead of repeatedly doing "ls ... > /dev/null 2>&1", just use a
function that does exactly that.
2011-03-09 19:03:37 +01:00
Chris Lamb 6538fac66f Test whether to use hard-links when caching d-i downloads. 2011-03-09 19:03:37 +01:00
Chris Lamb 38a545b3d1 Don't install Recommends of d-i packages. 2011-03-09 19:03:37 +01:00
Chris Lamb bd4a6204bb Print nicer error message when bootstrap missing from LH_CACHE_STAGES. 2011-03-09 19:03:37 +01:00
Chris Lamb 2da3bcef16 Remove 'E:' prefix in call to Echo_error - it gets added later too. 2011-03-09 19:03:37 +01:00
Chris Lamb b9c6f0a083 Fix cache poisoning issue in lh_binary_debian-installer with 404 downloads
When wget 404's, an target file is created - this poisons the cache as the
file is apparently downloaded but in actuality is simply empty. We fix this
by unconditionally deleting the cache file if wget fails and emitting an
error.
2011-03-09 19:03:37 +01:00
Chris Lamb 1b37572080 Don't attempt to use live-installer on Etch; it would simply result in no bootstrap method. 2011-03-09 19:03:37 +01:00
Chris Lamb 2a2668aef9 Cache d-i kernel, initrd and mini.iso downloads (Closes: #492085) 2011-03-09 19:03:37 +01:00
Chris Lamb 877603ae02 Wrap most calls to wget in lh_binary_debian-installer. 2011-03-09 19:03:37 +01:00
Chris Lamb e4e77a0c91 Refactor d-i GTK image selection, ensuring the GTK installer is only chosen on the netboot variant when building on powerpc. 2011-03-09 19:03:36 +01:00
Chris Lamb e7b0c3b78a Only consider linux-image-2.6-prep powerpc kernel image on Etch. 2011-03-09 19:03:36 +01:00
Chris Lamb 19039961c8 Refactor remote d-i location handling and ensure correct locations for powerpc. 2011-03-09 19:03:36 +01:00
Chris Lamb 5f3168deb7 Revert aborting live d-i installation if minimal/stripped is selected and instead attempt to not break the chroot too much in this case 2011-03-09 19:03:35 +01:00
Chris Lamb 8474de1d65 Remove more imported whitespaces. 2011-03-09 19:03:35 +01:00
Daniel Baumann 444ef13a69 Removing imported whitespaces. 2011-03-09 19:03:35 +01:00
Chris Lamb 1edb371113 Prefix mount and unmount in lh_binary_debian-installer with LH_ROOT_COMMAND. 2011-03-09 19:03:35 +01:00
Chris Lamb 336687882c Add support for sparc to lh_binary_debian-installer. 2011-03-09 19:03:35 +01:00
Chris Lamb a26d1c55e1 Ensure apt-utils is installed in the helpers it is required.
This allows us to remove a hacky test from hooks/minimal to see whether
we need the package.
2011-03-09 19:03:35 +01:00
Chris Lamb 5cb3a1a800 Abort if "live" d-i installation is attempted with minimal or stripped LH_PACKAGES_LISTS
This is required because lh_binary_rootfs removes /boot if minimal or
stripped is the only packages list.
2011-03-09 19:03:35 +01:00
Chris Lamb 7b881914d4 Fix trivial typographic error ("flavor" => "flavour") 2011-03-09 19:03:35 +01:00
Chris Lamb 243ee8a6d3 Replace a few unweildy "if" statements with their "case" equivalents 2011-03-09 19:03:35 +01:00
Chris Lamb 85493ae3b2 Move Etch syslinux workaround closer to the original definitions 2011-03-09 19:03:35 +01:00
Chris Lamb 1bd10cea37 Use correct location of powerpc d-i images. 2011-03-09 19:03:35 +01:00
Chris Lamb 4d748e582c Set correct d-i image type on usb-hdd and tar image types 2011-03-09 19:03:35 +01:00
Chris Lamb 25ad66e62d Rename USE_NETBOOT_DI to DI_IMAGE_TYPE 2011-03-09 19:03:34 +01:00
Chris Lamb 7540b66682 Don't exclude live-installer when LH_DEBIAN_INSTALLER=live 2011-03-09 19:03:34 +01:00
Chris Lamb 90d2fedc09 Fix a few bogus guards in lh_binary_debian-installer 2011-03-09 19:03:34 +01:00
Daniel Baumann 002c79ef51 Some formating and style cleanups. 2011-03-09 19:03:32 +01:00
Chris Lamb 46e2a3271b lh_binary_debian-installer: Add dependency on 'wget'
The 'minimal' hook removes wget, which is used extensively by the Debian
Installer hook.
2011-03-09 19:03:32 +01:00
Daniel Baumann 26fc30d8eb Using new Read_conffile(); now. 2011-03-09 19:03:31 +01:00
Daniel Baumann c6b83b1fd3 Adding 'all' configuration file. 2011-03-09 19:03:31 +01:00
Chris Lamb 679aed6441 lh_binary_debian-installer: Preseed by repacking initrd in some situations
This patch repacks the initrd when using the d-i netboot images in order
to incorporate a preseed.cfg if it exists. Before this patch, preseeding
of d-i netboot images was not possible.

Repacking the initrd has the additional advantage of being able to preseed
the first few questions of the installation process.
2011-03-09 19:03:26 +01:00
Chris Lamb 6057ecbd19 lh_binary_debian-installer: Merge pool/netboot determining logic
The code which determined whether to use the netboot d-i images was the
inverse of the code which determined whether to create a local package
pool: this patch merges the two.

This patch additionally ensures that setting "businesscard" whilst building
an ISO image will install the d-i netboot images; this was causing d-i
failures when it couldn't find its (non-existent) package pool.
2011-03-09 19:03:24 +01:00
Chris Lamb 07c3a04027 lh_binary_debian-installer: Remove "local"-oriented bashisms 2011-03-09 19:03:23 +01:00
Chris Lamb 02a9e29e09 lh_binary_debian-installer: Don't use --no-clobber for downloading files
Using --no-clobber at the same time as -O<file> results in <file> being
created with no contents, which was resulting in (broken) zero-byte d-i
kernels and initrds.

The patch is simple -- simply remove --no-clobber: wget -O<file> <url> will always download <url> to <file>, regardless of how
many times it is run.
2011-03-09 19:03:20 +01:00
Chris Lamb 25ac96ed14 lh_binary_debian-installer: Only create package pools when necessary
There is no need to create a package pool when creating a netboot Debian
Live image or when the LH_DEBIAN_INSTALLER is set to "businesscard".
2011-03-09 19:03:19 +01:00
Chris Lamb dd77597ac8 lh_binary_debian-installer: Re-enable d-i on netboot images
This patch also modifies the configuration logic to ensure that setting
LH_DEBIAN_INSTALLER="enabled" whilst creating a netboot image will install
the netboot variety of d-i.
2011-03-09 19:01:54 +01:00
Daniel Baumann c5a91189a0 Updating copyright years to 2008. 2011-03-09 19:01:41 +01:00
Daniel Baumann 2b086405f9 Using wildcards to support more than one preseeding file. 2011-03-09 18:36:17 +01:00
Daniel Baumann d78a97a521 Honor local preseeding file for debian-installer. 2011-03-09 18:36:17 +01:00
Daniel Baumann b0c38d67e2 Renaming LH_MIRROR_BOOTSTRAP* to LH_MIRROR_CHROOT and introducing dedicated LH_MIRROR_BOOTSTRAP for debootstrap/cdebootstrap only. 2011-03-09 18:36:07 +01:00