Commit Graph

637 Commits

Author SHA1 Message Date
Daniel Baumann 3d76871254 Removing remaining leftovers from etch-only options --genisoimage and --union-filesystem removals (Closes: #568261). 2011-03-09 19:17:04 +01:00
Daniel Baumann 19e9cf8331 Also using sources.list snipplets for local packages just as for the other repositories (Closes: #569619). 2011-03-09 19:17:04 +01:00
Daniel Baumann 3b80c5c5d9 Dropping lh_ prefix from internal helpers, this is not user visible. 2011-03-09 19:17:04 +01:00
Tzafrir Cohen 59e9a93ad0 For lh_local, checking first for helpers in LH_BASE.
lh_local sets PATH and LH_BASE. However the live-helper wrapper script
looks for helper script in the system path (/usr/share/live-helper/helpers)
before looking for them in the PATH.

This patch thus instructs lh to first adds test under LH_BASE, if set.
2011-03-09 19:17:03 +01:00
Daniel Baumann aa2c9f94da Adding support for gfxboot. 2011-03-09 19:17:03 +01:00
Daniel Baumann 50d889c714 Changing binary indices behaviour as suggested by Ben Armstrong <synrg@debian.org>, means we're now including binary sources by default (unless they are the same as chroot ones), and binary indices now only controls if apt lists need to be included in the resulting binary image. 2011-03-09 19:17:03 +01:00
Daniel Baumann f9a8f5cf74 Also making use of package cache during chroot_local-hooks (Closes: #566838). 2011-03-09 19:17:03 +01:00
Daniel Baumann 87efddf5ff Displaying a message between setting up squashfs-tools and starting mksquashfs so that users know what is going on, thanks to Michal Suchanek <michal.suchanek@ruk.cuni.cz> (Closes: #566250). 2011-03-09 19:17:03 +01:00
Daniel Baumann 0f33ac6ac4 Adding special handling for kde-desktop hook in lh_chroot_hocks. 2011-03-09 19:17:03 +01:00
Ben Armstrong ad43063cf5 Update lh_source_debian to deal with multiple dsc files for the same source. 2011-03-09 19:17:03 +01:00
Daniel Baumann c7354cfe47 Automatically setting-up backports repository when specifying lenny-backports as target distribution. 2011-03-09 19:17:03 +01:00
Daniel Baumann 4a3d0ebf17 Renaming directory that holds automatic scripts (e.g. scripts/config or scripst/clean) to auto for consistency reasons. 2011-03-09 19:17:03 +01:00
Daniel Baumann 45406a5c98 Making unmount routines a bit more robust. 2011-03-09 19:17:03 +01:00
Daniel Baumann 6d215be0e7 Correcting handling of precached chroot when using plain chroot filesystem. 2011-03-09 19:17:03 +01:00
Daniel Baumann c0f2a41c8e Ensure that precached-chroots are prepared as well. 2011-03-09 19:17:03 +01:00
Daniel Baumann 6b947eabf4 Changing local packageslists behaviour for consistency reasons, now looking for .list suffix and enabling them automatically (Closes: #545403). 2011-03-09 19:17:03 +01:00
Daniel Baumann c1742e3718 Handling d-i required packages regarding kernel flavours differently on ubuntu. 2011-03-09 19:17:03 +01:00
Daniel Baumann 09c2e7943c Adding experimental support for isohybrid (Closes: #558688). 2011-03-09 19:17:03 +01:00
Daniel Baumann 701b5affd4 For consistency, using true|false instead of enabled|disabled in configuration options. 2011-03-09 19:17:03 +01:00
Daniel Baumann 352d962ee8 Removing lpia support, this architecture is dead. 2011-03-09 19:17:03 +01:00
Daniel Baumann 25c38a043e Don't try to install parameters.txt for casper in ubuntu mode (Closes: #560109). 2011-03-09 19:17:02 +01:00
Daniel Baumann 7199152dae Adding a 'sleep 1' before removing the loopdevice when creating usb-hdd images. 2011-03-09 19:17:02 +01:00
Daniel Baumann ac52cf9e0f Updating icedove-l10n packagename handling for post-lenny, thanks to intrigeri <intrigeri@boum.org>. 2011-03-09 19:17:02 +01:00
Daniel Baumann 783088bf04 Replacing sed 4.2 command to assemble debootstraps components option with a less advanced one, in order to work on legacy distributions. 2011-03-09 19:17:02 +01:00
Daniel Baumann 6b1d9f2ab8 Adding suffix .list to sources.list.d snipplets. 2011-03-09 19:17:02 +01:00
Daniel Baumann 89ae063991 Using /etc/apt/sources.list.d mechanism for local sources.list snipplets. 2011-03-09 19:17:02 +01:00
Daniel Baumann 5841e79b1f Dropping etch support. 2011-03-09 19:17:02 +01:00
Daniel Baumann 5e4952e8a7 Adding debian version 2.0~a1-1. 2011-03-09 19:16:26 +01:00
Daniel Baumann d8e7520325 Replacing sed 4.2 command to assemble debootstraps components option with a less advanced one, in order to work on legacy distributions. 2011-03-09 19:09:49 +01:00
Daniel Baumann a072f12979 Only adding hardcoded fallback syslinux label when not using neither vesamenu nor gfxboot. 2011-03-09 19:09:49 +01:00
Daniel Baumann cea57867f5 Adding another workaround for etchs syslinux generation to manually treat live.cfg. 2011-03-09 19:09:49 +01:00
Daniel Baumann 91b9dab637 Adding syslinux hardcoded default label entries. 2011-03-09 19:09:49 +01:00
Daniel Baumann 18afcd29eb Respecting that etch has no prompt.cfg in netboot images. 2011-03-09 19:09:49 +01:00
Daniel Baumann 02296bf652 Giving conditional message in lh_config when creating or updating the config tree. 2011-03-09 19:09:48 +01:00
Cody A.W. Somerville f8b187c7a9 Omit numbering for first kernel and initrd installed into binary. 2011-03-09 19:09:48 +01:00
Daniel Baumann 22c6dc6149 Adding patch from Dusty Hendrickson <dhendrickson@cleversafe.com> to allow lh_bootstrap_debootstrap to bootstrap from different section than main and evaluate LH_CATEGORIES for that purpose. 2011-03-09 19:09:48 +01:00
Daniel Baumann 82277aec3b Tidy helper calls before and after switching chroot filesystem in lh_binary_rootfs to not leave certain helpers activated at the end of the build, thanks to Luigi Capriotti <l.capriotti@xbmc.org>. 2011-03-09 19:09:48 +01:00
Daniel Baumann 9b38ed621e Simplyfing chroot copying in lh_binary_chroot. 2011-03-09 19:09:48 +01:00
Daniel Baumann c9943f079f Escaping variables in binary.sh of lh_binary_iso, thanks to Luigi Capriotti <l.capriotti@xbmc.org>. 2011-03-09 19:09:48 +01:00
Daniel Baumann bf74055024 Adjusting pathes for boot-screens in netboot images. 2011-03-09 19:09:48 +01:00
Daniel Baumann 634193980a Correctly replacing pathes in exithelp.cfg for returning back to syslinux menu. 2011-03-09 19:09:48 +01:00
Daniel Baumann 57a8ef8442 Correcting pathes in include statements when building netboot images (Closes: #546910). 2011-03-09 19:09:48 +01:00
Daniel Baumann bcb1e6f7d5 Fixing regression imported by fixing #533846 incorrectly. 2011-03-09 19:09:48 +01:00
Karl Goetz 23fc01e1b8 Correcting comment about replacing /dev/urandom with /dev/random. 2011-03-09 19:09:48 +01:00
Daniel Baumann 2e2de4361d Merging initial and experimental grub2 support from Luigi Capriotti <l.capriotti@xbmc.org>.
Outstanding issues: doesn't work chrooted yet, lh_binary_iso binary.sh modifications probably should be done at lh_binary_grub2.
2011-03-09 19:09:48 +01:00
Rui Miguel Bernardo 7523992b6a Correcting apt pinning support. 2011-03-09 19:09:48 +01:00
Daniel Baumann e74e645dd0 Also actually creating the functions directory in lh_config. 2011-03-09 19:09:47 +01:00
Daniel Baumann a87d976add Allow to overload global functions with local functions stored in the config tree at scripts/functions.
live-helper 1.0.6 will be the last release of live-helper 1.x, which will
produce lenny 5.0.3 release images. However, when 5.0.4 is due, we'll need
to produce new images with slightly modified functions/release.sh files.
In order to acchieve that, we'll allow to have such a file overload the
functions shipped in live-helper.

This way, we can acchieve that:

  * live-helper itself doesn't need to be updated through stable updates
    anymore.
  * we still can do the required changes for a new point release.
  * we even ship the changes in the source tarballs automatically.
2011-03-09 19:09:47 +01:00
Daniel Baumann 26f5aaf0bf Avoid showing 'dashed commands are deprecated' warning more than one within lh_clean. 2011-03-09 19:09:47 +01:00
Daniel Baumann 7036e269ce Giving message to users that lh_config is actually doing something. 2011-03-09 19:09:47 +01:00
Daniel Baumann 82cbc81b3d Deprecating all dashed forms of commands. 2011-03-09 19:09:47 +01:00
Daniel Baumann 74f7986e69 Respecting (possibly) customized LH_SYSLINUX_CFG when autodecting syslinux menu module (Closes: #533846). 2011-03-09 19:09:47 +01:00
Daniel Baumann e5f7eea5db Allow to enforce syslinux menu module through LH_SYSLINUX_MENU. 2011-03-09 19:09:47 +01:00
Daniel Baumann fa9ebfb6d1 Using pre-cached bootstrap stage, if available, in order to build chroot image which dramatically speads up building of large images. 2011-03-09 19:09:47 +01:00
Daniel Baumann 9e766a06ef Respecting /etc/hostname in case it's part of chroot_local-includes, thanks to Luigi Capriotti <l.capriotti@xbmc.org> for the idea. 2011-03-09 19:09:47 +01:00
Daniel Baumann e0209bb337 Automatically optaining version number for config tree format. 2011-03-09 19:09:47 +01:00
Cody A.W. Somerville 4df03e2012 Only add available install frontend boot entries. 2011-03-09 19:09:47 +01:00
Cody A.W. Somerville c082430348 Unify bootloader helpers. 2011-03-09 19:09:46 +01:00
Daniel Baumann ec83843d6e Allowing to overwrite default gzip options through config switch or option. 2011-03-09 19:09:46 +01:00
Daniel Baumann 74a7af6571 Adding a message about which hook made a build fail, if any. 2011-03-09 19:09:46 +01:00
Cody A.W. Somerville 27be06512a Add option to disable use of GTK debian-installer.
Adding the ability to disable use of the GTK graphical
debian-installer is handy either to reduce the size of the
images or if the necessary files aren't available.
2011-03-09 19:09:46 +01:00
Cody A.W. Somerville a55187778e Fix build failure when retrying build at deconfiguring file /bin/hostname.
If you attempt a build and it fails for whatever reasons (say, a
configuration issue) and then you retry your build without calling
lh_clean, you can sometimes run into an issue with the
'deconfiguring file /bin/hostname' step. It'll try to move
chroot/bin/hostname.orig to chroot/bin/hostname but
chroot/bin/hostname.orig won't exist as chroot/bin/hostname hasn't
been moved aside like it expects (ie. the original file is still
chroot/bin/hostname). This is frustrating since if the error was
ignored, the build would be able to complete successfully and as
expected. So, let lh_chroot_hostname check if
'chroot/bin/hostname.orig' exists before attempting to
move it to 'chroot/bin/hostname'.
2011-03-09 19:09:46 +01:00
Daniel Baumann 21964d0163 Replacing policy-rc.d text that is used by sbuild too. 2011-03-09 19:09:46 +01:00
Daniel Baumann b5a891df14 Including archive trace into .disk meta information. 2011-03-09 19:09:46 +01:00
Chris Lamb f315a91f39 Remove potentially-expanding architecture list by making current x86 vars the fallback. 2011-03-09 19:09:45 +01:00
Chris Lamb 29c423b89a Support LH_BOOTSTRAP_FLAVOUR="standard" when using debootstrap
cdebootstrap will accept --variant=standard, but debootstrap does
not; this patch means that we don't try and pass it to
debootstrap - this can happen if switching between the two
utilities.
2011-03-09 19:09:45 +01:00
Daniel Baumann e554c785c9 Removing config stage file on purge, if the user is using an auto script to generate the config. 2011-03-09 19:09:45 +01:00
Daniel Baumann b305694034 Cosmetical simplification of debian-installer DESTDIR assignement, thanks to Cody A.W. Somerville <cody.somerville@canonical.com>. 2011-03-09 19:09:45 +01:00
Daniel Baumann 7a433849f5 Exclude di-utils-exit-installer from udeb_exclude, we want it on the images on purpose. 2011-03-09 19:09:45 +01:00
Daniel Baumann 53848cda42 Outputting usage if lh is called without argument. 2011-03-09 19:09:45 +01:00
Daniel Baumann c17aa70a7f Preserve quoting in lh when passing through to sub commands (Closes: #521824). 2011-03-09 19:09:45 +01:00
Daniel Baumann 95b1731883 Emitting a warning if resolvconf is detected on the to be generated live system. Beware of resolvconf, it's broken beyond repair. 2011-03-09 19:09:45 +01:00
Cody A.W. Somerville 16ba7aa98e Fixing build failure in lh_binary_syslinux that occurs if exithelp.cfg does not exist. 2011-03-09 19:09:44 +01:00
Daniel Baumann d182778609 Always rebuilding initrd in chroot_hacks to avoid inclusion of previously removed udev rules (such as persistent devices). 2011-03-09 19:09:44 +01:00
Tzafrir Cohen 97ec6952f8 Returning to menu in syslinux. 2011-03-09 19:09:44 +01:00
Daniel Baumann 7226d24dd8 Exporting LH_CONFIG_VERSION for the configuration tree format. 2011-03-09 19:09:44 +01:00
Daniel Baumann 173fa3bbbf Not removing man/index.db in lh_chroot_hacks to keep man -k aka apropos working, thanks to Juliusz Chroboczek <Juliusz.Chroboczek@pps.jussieu.fr> (Closes: #527311). 2011-03-09 19:09:44 +01:00
Chris Lamb 27b487e9d4 Update location of ia64 d-i dailies. Thanks to Luk Claes. 2011-03-09 19:09:44 +01:00
Daniel Baumann 52f91d1e57 Correcting clean option of lh_config to tidy configuration tree. 2011-03-09 19:09:44 +01:00
Daniel Baumann 60d87f4f91 Correcting chroot call for update-initramfs in lh_chroot_hacks. 2011-03-09 19:09:44 +01:00
Daniel Baumann deaa1214dc Adding update-initramfs call back in lh_chroot_hacks, but only for netboot. 2011-03-09 19:09:44 +01:00
Daniel Baumann 695d3eedee Simplyfing architecture handling for d-i daily URLs. 2011-03-09 19:09:44 +01:00
Daniel Baumann 142228914f Updating location of powerpc d-i daily images. 2011-03-09 19:09:44 +01:00
Daniel Baumann 5790ad171b Manually ensuring correct permissions of filesystem.squashfs in order to prevent unbootable systems in some nutcases. 2011-03-09 19:09:44 +01:00
Cody A.W. Somerville 4afc571314 Adding lpia support. 2011-03-09 19:09:44 +01:00
Cody A.W. Somerville a486d3e1ad Adding Ubuntu mode. 2011-03-09 19:09:44 +01:00
Daniel Baumann 40988d5de3 Removing some code in chroot_apt helper that left over the preferences files in the final image. 2011-03-09 19:09:44 +01:00
Cody A.W. Somerville 39876e86b9 Do not fail build when greps to generate udeb exclusion list return no results or grepped files do not exist. 2011-03-09 19:09:44 +01:00
Daniel Baumann cf28ec62c6 Updating first bunch of architectures to new location of d-i daily images. 2011-03-09 19:09:43 +01:00
Cody A.W. Somerville b05975ba1e Checking for installer README.html to prevent build failure. 2011-03-09 19:09:43 +01:00
Daniel Baumann 1457161934 Improving check for syslinux templates by checking actual content, not just the directory. 2011-03-09 19:09:43 +01:00
Daniel Baumann fb314b164f Only trying to handle syslinux help screens if they are actually available. 2011-03-09 19:09:43 +01:00
Daniel Baumann 8a3dd8cfe0 Only trying to copy syslinux english templates if they are actually available. 2011-03-09 19:09:43 +01:00
Daniel Baumann 336a46f226 Correcting win32-loader copy call to work with non-chrooted builds too. 2011-03-09 19:09:43 +01:00
Daniel Baumann f73041f2f0 Adding initial support for virtual-hdd binary image type. 2011-03-09 19:09:42 +01:00
Daniel Baumann e691015fc0 Correcting path within netboot tarballs. 2011-03-09 19:09:42 +01:00
Daniel Baumann a31541517b Updating syslinux menu configuration. 2011-03-09 19:09:42 +01:00
Daniel Baumann 9a8304d03b Adding new setting for binary indices: If set to none, no indices are included at all. 2011-03-09 19:09:42 +01:00
Daniel Baumann fedc5c1519 Updating .disk/info generation when building iso images. 2011-03-09 19:09:42 +01:00
Daniel Baumann ca9f7bf33e Creating win32-loader.ini in win32-loader helper script. 2011-03-09 19:09:42 +01:00