Commit Graph

534 Commits

Author SHA1 Message Date
Chris Lamb 731a5c3d6f Correct location of /etc/default/live-helper in lh_config(1) manpage.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-07-08 23:53:44 +01:00
Chris Lamb d3f15a317f Perform in LH_BOOTAPPEND_INSTALL conditional expansion manually to avoid expansion bug/feature on repetitive calls to lh_config (Closes: #488672)
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-07-05 00:54:00 +01:00
Chris Lamb 3205bb9409 Use a temporary apt key when installing local packages (Closes: #488257)
This patch also allows preferring locally provided packages by preferencing
repositories with the label 'local-packages' in chroot_apt/preferences.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-07-05 00:40:20 +01:00
Chris Lamb 3b540b4c4f Fix caching of APT indices (Closes: #478744)
I've tested this the cross-product of LH_APT={apt,aptitude} and
LH_APT_SECURE={enabled,disabled} with no problems.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-07-04 22:29:43 +01:00
Chris Lamb 3feafc9a70 Refactor d-i GTK image selection, ensuring the GTK installer is only chosen on the netboot variant when building on powerpc.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-07-04 22:28:20 +01:00
Chris Lamb 6c11528829 Only consider linux-image-2.6-prep powerpc kernel image on Etch.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-07-04 22:26:35 +01:00
Chris Lamb 70925408b6 Refactor remote d-i location handling and ensure correct locations for powerpc.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-07-04 22:25:47 +01:00
Chris Lamb 744c2f6bab Print a friendlier message if debootstrap or cdebootstrap cannot be found.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-22 01:20:09 +01:00
Chris Lamb 627de6d41e Re-order a case statement for consistency.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-20 11:37:02 +01:00
Chris Lamb d0f57376eb Fix incorrect test for sparc architecture in binary include handling.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-20 11:36:15 +01:00
Chris Lamb bcd8472821 Add support for generation of sparc netboot images.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-20 01:38:21 +01:00
Chris Lamb 6d9de44806 Add support for sparc "tar" binary image type.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-20 01:37:47 +01:00
Chris Lamb 21d51d04f9 Add support for sparc install includes.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-20 01:35:18 +01:00
Chris Lamb ec998961a8 Refactor destination setting in lh_binary_silo to check arguments at beginning of the script.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-20 01:35:07 +01:00
Chris Lamb 5bee701f29 Abort build if building from the root directory (/) as this causes misc build failures.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-20 01:33:49 +01:00
Chris Lamb 8fed454c06 Emit a warning when running lh_build without a config/ directory.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-20 01:33:15 +01:00
Chris Lamb 733e453306 Migrate a In_list candidate to grep -E.
Perhaps we could .-include the In_list function?

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-20 01:32:03 +01:00
Chris Lamb c05c115684 Migrate a few uses of grep to In_list.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-20 01:31:21 +01:00
Chris Lamb 912c054a7e Add In_list function to extract various bits of code that did (or should have done) the same job.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-20 00:51:12 +01:00
Chris Lamb da4672b5d5 Remove a useless space
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-19 22:02:37 +01:00
Chris Lamb daec955a09 Consolidate grep text searching predicates to use "grep -qs"
If this is deemed not portable enough in the future, it should be easy
enough to find/replace.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-19 19:49:16 +01:00
Chris Lamb 30bafdae57 Revert aborting live d-i installation if minimal/stripped is selected and instead attempt to not break the chroot too much in this case
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-19 19:03:10 +01:00
Chris Lamb 3ddecb18c8 Replace another unweildy "if P1 || P2" statement with its "case" equivalent.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-19 18:58:09 +01:00
Chris Lamb 6143328e16 Remove more imported whitespaces.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-19 18:56:11 +01:00
Chris Lamb 191746a476 Adjust "lh_config --help" and lh_config(1) so that the -m option corresponds with --mirror-bootstrap isntead of --mirror-binary-security.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-19 18:41:26 +01:00
Daniel Baumann b7f5a3af97 Removing imported whitespaces. 2008-06-17 07:08:24 +02:00
Chris Lamb 64d2e53e07 Only deference symlinks on usb-hdd filesystems that do not support symlinks.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 16:51:49 +01:00
Chris Lamb 0c46e9185b Add support for ext2 and ext3 to lh_source_usb-hdd.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 16:48:47 +01:00
Chris Lamb be0f6ae8a4 Add support for usb-hdd on sparc (requires parted 1.8 from experimental).
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 16:27:35 +01:00
Chris Lamb 343497ad98 Refactor mkfs handling.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 16:25:34 +01:00
Chris Lamb d522b02fc1 Refactor partition table type handling.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 16:20:55 +01:00
Chris Lamb 802c604984 Refactor partition type handling.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 16:17:42 +01:00
Chris Lamb 5093b27576 Prefix mount and unmount in lh_binary_debian-installer with LH_ROOT_COMMAND.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 16:07:05 +01:00
Chris Lamb 2b77ec6b5d Add support for sparc to lh_binary_debian-installer.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 04:47:23 +01:00
Chris Lamb 766cd2670c Add support for the sparc architecture.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 04:46:51 +01:00
Chris Lamb 49a4ffc061 Add lh_binary_silo and associated templates to support the SILO bootloader.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 04:46:25 +01:00
Chris Lamb 0cfbc69eb0 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.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 02:55:33 +01:00
Chris Lamb 28db987a8e 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.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 02:45:50 +01:00
Chris Lamb 4c01d50ea6 Fix truncated Echo_breakage messages.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 01:58:07 +01:00
Chris Lamb 1520c59356 Fix d-i locations in yaboot entries.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 01:57:50 +01:00
Chris Lamb cd7689e4ce Fix trivial typographic error ("flavor" => "flavour")
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-15 00:36:20 +01:00
Chris Lamb 5d70e02dd1 Only deference symlinks on FAT{16,32} partitions on usb-hdd.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-14 18:36:22 +01:00
Chris Lamb 72a670c5d2 Replace install.amd/install -> install.386/install symlink with a real copy.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-14 18:28:30 +01:00
Chris Lamb 0800980534 Revert always deferencing symlinks when installing some binary includes.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-14 18:27:38 +01:00
Chris Lamb 0371778301 Add Echo_breakage for messages preceeding often-breaking stages and use before {c,}debootstrap calls
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-14 18:25:05 +01:00
Chris Lamb 250529183f Replace a few unweildy "if" statements with their "case" equivalents
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-14 17:35:11 +01:00
Chris Lamb 0d1122d0ab Move Etch syslinux workaround closer to the original definitions
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-14 17:30:32 +01:00
Chris Lamb efa3d98166 Use correct location of powerpc d-i images.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-14 17:27:42 +01:00
Chris Lamb 6ada2b7bd4 Set correct d-i image type on usb-hdd and tar image types
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-14 17:22:57 +01:00
Chris Lamb 9690d108b2 Remove pointless "echo" statements pre- and post- cdebootstrap
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-06-14 17:19:29 +01:00