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
Daniel Baumann
5d589646a5
Renaming win32-loader executable as debian-cd does.
2011-03-09 19:09:41 +01:00
Daniel Baumann
f14e9354b9
Moving live-initramfs or casper parameter list to live subdirectory on the images.
2011-03-09 19:09:41 +01:00
Daniel Baumann
a010abf10e
Moving binary manifest to live subdirectory on the images.
2011-03-09 19:09:41 +01:00
Daniel Baumann
192c94747b
Take win32-loader from the target distribution by using the chroot.
2011-03-09 19:09:41 +01:00
Daniel Baumann
069aa8723c
Splitting out win32-loader handling into own helper script.
2011-03-09 19:09:41 +01:00
Daniel Baumann
26314ad6a0
Adding clean parameter to lh_config to minimize config directory by automatically removing unused and thus empty subdirectories.
2011-03-09 19:09:41 +01:00
Daniel Baumann
4d3525ab0f
Correcting order of genisoimage option assembling, the exludes do have to be processed last.
2011-03-09 19:09:41 +01:00
Daniel Baumann
285b6ed834
Adding autoconfig support to lh_build as well.
2011-03-09 19:09:41 +01:00
Daniel Baumann
695cdf1530
Fixing infinit loop when using autoconfig for lh_config and lh_clean.
2011-03-09 19:09:41 +01:00
Daniel Baumann
2e9433d58d
Removing shell specific extensions and call of scripts/config and scripts/clean, thanks to Tzafrir Cohen <tzafrir.cohen@xorcom.com>.
2011-03-09 19:09:41 +01:00
Daniel Baumann
0c9e2bf57c
Adding dummy live-helper command to make any confused user aware that live-helper is a set of commands starting with the lh_ prefix.
2011-03-09 19:09:40 +01:00
Daniel Baumann
730b248507
Replacing previous attempt of using config.cfg, now using scripts/config.sh and scripts/clean.sh instead.
2011-03-09 19:09:40 +01:00
Daniel Baumann
992a145afd
Automatically displaying manpage when calling a helper with -h or --help.
2011-03-09 19:09:40 +01:00
Daniel Baumann
dd74cb6b47
Correcting lh_configs config.cfg handling, so that it's at least working when not using config.cfg. Will have to be fixed properly later.
2011-03-09 19:09:40 +01:00
Daniel Baumann
989f26d87b
Updating year in copyright notices for 2009.
2011-03-09 19:09:40 +01:00
Daniel Baumann
9ce762a502
Using common function file to source shell includes.
2011-03-09 19:09:40 +01:00
Daniel Baumann
58d6b235f9
Fixing and unifying handling of hooks.
2011-03-09 19:09:40 +01:00
Daniel Baumann
67a0daf671
Removing enforced installation of mawk in the chroot in lh_binary_debian-installer, mawk is priority required and therefore always there anyway. Additionally, this would unnecessarily blow up images that have gawk (or any other awk implementation) installed.
2011-03-09 19:09:40 +01:00
Daniel Baumann
951c24dc08
Adding temporary workaround to 'failed to install grub' error when using live-installer.
2011-03-09 19:09:40 +01:00
Daniel Baumann
a0d12dbf00
Actually doing apt-ftparchive operations in chroot as it was originally intended to be, otherwise apt-utils would be need to be a depends of live-helper.
2011-03-09 19:09:40 +01:00
Cyril Brulebois
6193ef2285
Actually fix initrd-related breakage in chroot hacks.
...
To actually handle the case where there are no initrds, one has to tell
xargs not to run the chmod command if there are no parameters.
2011-03-09 19:09:40 +01:00
Cyril Brulebois
4652d65411
Make hacks not break if there are no initrds.
...
Even if it's likely that initrds will be present at this stage, it might
be that they went away because of local hooks, and hacks shouldn't break
just because of missing initrds.
2011-03-09 19:09:40 +01:00
Cyril Brulebois
f5cb9b046b
Fix --apt-pdiffs disabled being ignored.
2011-03-09 19:09:40 +01:00
Cyril Brulebois
b12e0fd6ce
Document LH_BOOTSTRAP_FLAVOUR as empty by default.
2011-03-09 19:09:40 +01:00
Daniel Baumann
5d9525a3b0
Adding missing --dump to help output of lh_config.
2011-03-09 19:09:40 +01:00
Daniel Baumann
cb2397a601
Updating mode help message in lh_config.
2011-03-09 19:09:40 +01:00
Daniel Baumann
84e4a199da
Setting default taskel program from aptitude to tasksel.
2011-03-09 19:09:40 +01:00
Daniel Baumann
451d36016c
Adding support for using cdebootstra-static as bootstrap program.
2011-03-09 19:09:40 +01:00
Daniel Baumann
e51e734b00
If config.cfg is executable, we execute it and accept its output as extra arguments. This makes dynamic configuration possible.
2011-03-09 19:09:40 +01:00
Antonio Terceiro
304e0fce7f
Fixing message for i18n compatibiliy
2011-03-09 19:09:40 +01:00
Daniel Baumann
67518ecdab
Parsing lh_config flags from config.cfg, if available.
2011-03-09 19:09:40 +01:00
Antonio Terceiro
8a477ac3a9
Translating the description of the helpers
2011-03-09 19:09:39 +01:00
Antonio Terceiro
d974407ee5
Don't ask for translators to translate a bunch of asterisks
2011-03-09 19:09:39 +01:00
Antonio Terceiro
2a3056e8a9
Don't break messages into parts; this make it impossible for translators
2011-03-09 19:09:39 +01:00
Daniel Baumann
4185bfed45
Moving removal of apt packages lists from minimal and stripped hook to lh_chroot_sources, thanks to Ben Armstrong <synrg@debian.org>.
2011-03-09 19:09:39 +01:00
Daniel Baumann
425d51e38b
Prefering local hosts over truncated one.
2011-03-09 19:09:39 +01:00
Daniel Baumann
a7334c6c16
Prefering local resolv.conf over truncated one.
2011-03-09 19:09:39 +01:00
Daniel Baumann
4f00cd3e82
Truncating resolv.conf created during bootstrap stage, otherwise we'll end up with a local resolv.conf in the final image. Thanks to Ben Armstrong <synrg@debian.org>.
2011-03-09 19:09:39 +01:00
Daniel Baumann
c83edb9134
Also handling custom apt.conf in config/chroot_apt/apt.conf to allow further apt configuration ( Closes : #511247 ).
2011-03-09 19:09:35 +01:00
Chris Lamb
b211776641
Re-order arguments to find(1) to silence warning about sub-optimal ordering.
2011-03-09 19:09:34 +01:00
Chris Lamb
d8e5221399
Don't assume that if dpkg is installed, we'll actually get a live-helper version number from it.
2011-03-09 19:09:33 +01:00
Chris Lamb
fc578d6ae6
Test for dpkg-query instead of dpkg if we are only going to run dpkg-query within that scope.
2011-03-09 19:09:32 +01:00
Chris Lamb
146cbe3671
Only print versions of live-helper in --dump output, not every package installed.
2011-03-09 19:09:30 +01:00
Chris Lamb
d9b7957ff4
Add 'dump' as a getopt longoption so as not to prevent rejection of --dump argument to lh_config.
2011-03-09 19:09:29 +01:00
Marco Amadori
a796685a27
NEW: "binary_debian-installer-includes" config directory.
...
This add another "-includes" power to live-helper, just leave your full
path files there and they will end on the installer initrd. This is
mostly useful for hacking the installer images with themes, firmware and
new installation helpers.
"This doesn't handle the case where you want to remove files or
programmatically modify things" yet.
2011-03-09 19:03:45 +01:00
Daniel Baumann
34192bcf31
Don't attempt to remove scripts directory in lh_clean if it doesn't exist.
2011-03-09 19:03:45 +01:00
Daniel Baumann
5e7f545474
Even though users are supposed to have any local-includes with the correct owner and permissions, we set them manually on /home/user as it's likely that anybody will forget it ( Closes : #506553 ).
2011-03-09 19:03:45 +01:00
Daniel Baumann
c4c64bc0f8
Removing scripts directory through lh_clean, if it's not empty.
2011-03-09 19:03:45 +01:00
An-Cheng Huang
5166362009
Copy menu binary from the correct directory
2011-03-09 19:03:45 +01:00
Daniel Baumann
55254a01fd
Applied patch from Maximilian Gass <mxey@cloudconnected.org> to fix typo in generation of release files in lh_chroot_sources.
2011-03-09 19:03:44 +01:00
An-Cheng Huang
2e61cf50af
ignore harmless warnings from parted.
2011-03-09 19:03:44 +01:00
Daniel Baumann
22a06c6566
Generalizing internal LH_CONFFILE variable.
2011-03-09 19:03:44 +01:00
Daniel Baumann
b55f1963c8
Correcting manpage section reference in a comment in lh.
2011-03-09 19:03:44 +01:00
Daniel Baumann
8ff4391fd7
Cleaning up code of 'lh' short helper.
2011-03-09 19:03:44 +01:00