Commit Graph

1027 Commits

Author SHA1 Message Date
jnqnfe a67e01638f help/usage: fix overly complex script description handling
Closes: #952887
2020-03-05 20:48:49 +00:00
Lyndon Brown 0fc28da947 help/usage: fix incorrect program command
Closes: #952884
2020-03-05 20:37:57 +00:00
jnqnfe d0eb72a5ef help/usage: avoid unnecessary use of echo helpers
Closes: #952877
2020-03-05 20:37:57 +00:00
jnqnfe 5a00487872 fix capitalisation of some output messages
Closes: #952875
2020-03-05 20:36:54 +00:00
jnqnfe 3897aac77a defaults: fix pointlessly split line error
inconsistent with all other output

Gbp-Dch: Ignore
Closes: #952874
2020-03-05 11:41:53 +00:00
Lyndon Brown 3840ac2005 memtest: better handle obsolete LB_MEMTEST value
available values currently are memtest86+|memtest86|none; "false" is
presumably handled for backwards compatibility

there is no need to handle this in individual scripts. the right place
to handle it is in Set_Defaults as now done

Gbp-Dch: Short
Closes: #952866
2020-03-05 11:39:57 +00:00
jnqnfe fcafaede19 simplify --debian-installer choices
`false` and `none` make no sense as choices for this option. Here we
replace `false` with `none`, and remove `true`.

Note that `true` was treated as an alias for netinst (see the changes to
source_disk and and binary_disk).

For backwards compatibility we still allow `true` and `false` by converting
them to `netinst` and `none` respectively, whilst printing a warning to
encourage users to move to `netinst`/`none`.

Gbp-Dch: Short
Closes: #952864
2020-03-05 11:36:55 +00:00
Lyndon Brown 2511fff259 don't unnecessarily convert exit codes to strings
Closes: #952861
2020-03-05 11:33:12 +00:00
Lyndon Brown 36a3ba7634 fix indentation
including:
 - spaces replaced with tabs for consistency
 - alignment of `;;` in some case statements changed for consistency

Gbp-Dch: Short
Closes: #952857
2020-03-05 11:29:01 +00:00
Raphaël Hertzog be5aaa0c51 Get rid of extraneous whitespace showing up in syslinux menu
The leading space ends up in the FLAVOUR substitution in live.cfg.
2020-01-22 15:00:06 +01:00
Raphaël Hertzog 44b9b0a650 Support --distribution-binary and --distribution-chroot
This makes it possible to build an image against a first distribution
(--distribution-chroot) and have the resulting image point to another
distribution (--distribution-binary). We can use this to build against a
snapshot and have the result use the original distribution that was
snapshotted.

Closes: #888507
2019-12-19 18:18:44 +01:00
Raphaël Hertzog bca7af4ecb installer_debian-installer: don't mess with /var/lib/dpkg/status
Use a similar trick as for chroot_live-packages.

Relates to #944983.
2019-12-19 16:53:30 +01:00
Raphaël Hertzog 15c46fa152 Set default distribution to buster
Closes: #934495
Thanks: Алексей Шилин
2019-12-19 16:43:51 +01:00
Raphaël Hertzog 0647e985fa chroot_live-packages: use dpkg-query to see if a package is installed
Closes: #944983
2019-12-19 16:21:58 +01:00
Roland Clobus 56784ca1c0 Reenabled the command line option for colored messages for all scripts. The functionality was added 2008-11-01, but was not really active. 2019-06-03 10:48:58 +00:00
Roland Clobus c035b3f106
Updated URL in the LB_ISO_PUBLISHER field. 2019-04-17 21:29:34 +02:00
Roland Clobus f460533ca1
Updated URL in the LB_ISO_PREPARER field. 2019-04-17 21:27:04 +02:00
Roland Clobus 91da0772fc
Updated URL for reporting bugs. 2019-04-17 21:05:30 +02:00
Adrian Gibanel Lopez 80aa5ab611 Fixed foreign architecture package support to linux kernel flavours
Before Stretch there was an special amd64 kernel in the i386 arch repo.
So if you wanted to install an amd64 kernel alongside an i386 system
you did not need an additional arch repo.

Debian added multiarch support. That way you can install library packages
from multiple architectures on the same machine.

So there is no longer a need for having an amd64 kernel in i386 arch repo.
You can add an amd64 arch repo to an i386 arch system and fetch the amd64
kernel from the am64 arch repo.

live-build can be setup to use several linux kernel flavours in a single
image.

So in the days previous to this patch you could issue:
lb config --linux-flavours "486 amd64"
to use both 486 and amd64 kernel flavours.

Adding additional arch support to linux flavours poses two problems:

* Packages need to have its arch suffix (e.g. amd64:amd64).
If the suffix is not there apt-get insists on search amd64 kernel
package on i386 arch repo and, of course, fails to find it.

* The rest of the code which handles labels (bootloader config files)
or installed filenames (kernel images themselves) do not use the arch suffix.

This patch adds foreign architecture package support to
linux kernel flavours having taken those problems into account.

Practical example usage: i386 system and extra amd64 kernel.

First add amd64 foreign architecture in your i386 system
thanks to:

dpkg --add-architecture amd64
apt-get update

.

Finally enable amd64 kernel from amd64 arch alongside the
i386 system's 686 kernel thanks to:

lb config --architectures i386 --linux-flavours "686 amd64:amd64"
2019-03-14 23:06:31 +01:00
Hideki Yamane 2fa258cca2 use deb.debian.org as default
replace deprecated httpredir.debian.org to deb.debian.org and use
it as default mirror since it is appropriate for users
2018-10-13 12:39:42 +09:00
Luca Boccassi 08dd0b90db Print an error and exit if a host package (dependency) is missing.
Check_package will just add a missing dependency to the LB_PACKAGES
todo list if it doesn't find it, when build-with-chroot is true, even if
the check was not for the chroot.
Instead error out if the check is not done for the chroot, e.g.
Check_package host /bin/foo foo
2018-04-05 16:24:36 +01:00
Luca Boccassi 46c9596926 Add options to build ONIE images
Open Network Install Environment is an open image format used by
networking vendor to ship a standardised image for networking white
box switches.

ONIE hardware takes this image at boot and a script to chain load
into the final environment via kexec. We can support Debian and
derivatives on such systems by packing an ISO which then gets
unpacked, kexec'ed and live-booted.

A base ONIE system can be tested in QEMU by building a VM following
these instrunctions:

https://github.com/opencomputeproject/onie/blob/master/machine/kvm_x86_64/INSTALL

Once built, boot onie-recovery-x86_64-kvm_x86_64-r0.iso in QEMU/libvirt
and on the console there will be the terminal prompt. Check the IP
assigned by libvirt and then scp the live image (ssh access is enabled
as root without password...). Then the .bin can be booted with:
 ONIE-RECOVERY:/ # onie-nos-install /tmp/live.hybrid.iso-ONIE.bin

The implementation is inspired by ONIE's own scripts that can be found
at:
https://github.com/opencomputeproject/onie/blob/master/contrib/debian-iso/cook-bits.sh

A new option, --onie (false by default) can be set to true to enable
building this new format in addition to an ISO.
An additional option, --onie-kernel-cmdline can be used to specify
additional options that the ONIE system should use when kexec'ing the
final image.
Note that only iso or hybrid-iso formats are supported.

For more information about the ONIE ecosystem see:
http://onie.org

Signed-off-by: Erik Ziegenbalg <eziegenb@Brocade.com>
Signed-off-by: Luca Boccassi <bluca@debian.org>
2018-03-22 16:14:01 +00:00
Luca Boccassi 035518ff69 UEFI: add support for Secure Boot on amd64 and arm64
Support for UEFI Secure Boot is modelled after how it currently works
in Ubuntu and on how it is going to work on Debian.
A minimal bootloader, shim, is used as the first-stage and it then
loads grub. Both have to be signed.
shim-signed is already available in Debian so the filenames are
already established, and the grub2 repository and packaging is common
between the 2 distros so we can already be reasonably sure of what it
is going to be.
So if both are available, copy /usr/lib/shim/shim[x64|aa64].efi.signed
as boot[x64|aa64].efi so that UEFI loads it first, and copy
/usr/lib/grub/[x86_64|arm64]-efi-signed/grub[x64|aa64].efi.signed as
grub[x64|aa64].efi.
This grub2 EFI monolithic image is currently hard-coded in grub2's
repository to look for a config file in efi/debian, so make a copy
of the previously added minimal grub.cfg that loads the real one in
that directory in both the fat32 and ISO 9660 partitions.

The new option --uefi-secure-boot can be set to auto (default,
enable or disable.
In auto, the lack of the signed EFI binaries is intentionally left as a
soft failure - live-build will simply fallback to using the locally
generated non-signed grub2 monolithic EFI binary as the only
bootloader. Given the difficulties surrounding the Secure Boot
signing infrastructure this approach gives the most flexibility and
makes sure things will "just work" once the packages are available,
without the need to change anything in the configuration.
This will also greatly help downstream distributions and users who
want to do self-signing.
The enable or disable options work as expected.

Closes: #821084
2018-03-09 20:57:54 +00:00
Raphaël Hertzog 2f54fcf3d7 Replace "kirkwood" and "orion5x" armel flavors with the new "marvell" one
As done by the linux source package since its version 4.4.
2017-09-18 18:00:20 +02:00
Matthijs Kooijman 5ca1ded228 Error out when needed packages are missing on the host
Previously, Check_package would only show an error when host packages
are missing on a non-apt system. On apt system, the packages would be
added to _LB_PACKAGES, which causes them to be installed in the chroot,
not in the host (or not at all if Install_package is not called). This
behaviour could break the build.

This applies to either packages that must be present in the host (as
checked with `Check_package host ...`), as well as packages that can be
either in the chroot or host (as checked with `Check_package chroot`)
when LB_BUILD_WITH_CHROOT=false.
2017-09-01 10:22:02 +02:00
Matthijs Kooijman 4c229d9449 Pass --partscan to losetup
Recent versions of Linux, parted or some other bit of software cause
partition devices, like /dev/loop0p1 to be created when running parted
mkpart. However, these devices are not cleaned up when running
losetup -d to remove /dev/loop0 later, so they linger around and confuse
mkfs (which refuses to make a filesystem, thinking there are partitions):

	mkfs.fat 4.1 (2017-01-24)
	mkfs.vfat: Partitions or virtual mappings on device '/dev/loop0', not making filesystem (use -I to override)

To prevent this behaviour, pass --partscan to losetup when adding a new
partition, to clean up any lingering partitions. It seems losetup does not
accept --partscan when deleting a loop device, to clean up at that point, but
since binary_hdd mounts the partition last, there should not be any lingering
partition devices after live-build is done.

The --partscan option is available since util-linux 2.21 (released in 2012), so
it should be fairly safe to pass it unconditionally.
2017-09-01 10:07:00 +02:00
Raphaël Hertzog c5a334deb8 Update PREPARER data for consistency 2017-08-29 15:06:35 +02:00
Raphaël Hertzog 3f909bf486 Drop all references to live-systems.org and update copyright file
Also fix the version string in the manual pages.

Closes: #859290
2017-08-29 14:12:33 +02:00
Raphaël Hertzog d98f95bbbe Drop the versatile kernel flavour on armel. It's no longer built since Linux 4.9. 2017-02-13 16:52:10 +01:00
Raphaël Hertzog 61b92c654e Drop check on configuration version
The date based versioning scheme no longer allows such a check. And we
don't intend to break backwards compatibility for now.
2016-12-02 23:05:05 +01:00
Raphaël Hertzog 7ad6c408e5 Default for LB_UNION_FILESYSTEM is now "overlay" just like in live-boot. 2016-12-02 15:10:19 +01:00
Raphaël Hertzog b91b7de87a Fix permission on functions/bootloaders.sh 2016-11-28 23:15:38 +01:00
Raphaël Hertzog 02d933fc17 Fix Check_installed function when checking against host
Thanks to jnqnfe for the report.

Closes: #774807
2016-11-28 22:50:46 +01:00
Raphaël Hertzog 4b28b409a6 Export SOURCE_DATE_EPOCH when running chroot commands
Thanks to Chris Lamb <lamby@debian.org> for the patch.

Closes: #832998
2016-11-28 20:58:19 +01:00
Raphaël Hertzog b8f55caa14 Fix behaviour of (undocumented) "#nif" conditional test
Thanks to Erik Cumps <erik.cumps@esaturnus.com> for the patch.

Closes: #801379
2016-11-28 20:58:19 +01:00
Adrian Gibanel Lopez f811656150 Make: syslinux,grub-efi the default bootloaders because
UEFI is getting widely adopted but BIOS support is still
needed.
2016-07-31 15:09:13 +02:00
Adrian Gibanel Lopez ee9a6de2cc defaults.sh LB_BOOTLOADER updated to be: LB_BOOTLOADERS in incompatible warning 2016-07-31 15:09:13 +02:00
Adrian Gibanel Lopez 9d1a983cc8 Added new multi bootloader helper functions
* Added: functions/bootloaders.sh . This file adds bootloader functions that are heavily used in efi scenarios where a bootloader can act as a first or an extra bootloader.

Since the introduction of the new switch:

--bootloaders

you can setup it like this:

--bootloaders=syslinux,grub-efi

.

This means that syslinux is the first bootloader and grub-efi is the extra bootloader.

* Added new bootloader functions: Check_Non_First_Bootloader and Check_Non_Extra_Bootloader.

These functions let each one of the bootloaders abort the build because
they cannot perform a role either as a first bootloader or as an extra bootloader.

* Added bootloader functions: Check_First_Bootloader_Role, Check_Extra_Bootloader_Role and Check_Any_Bootloader_Role

These functions let bootloaders to force their default role in a single line.

At the same time many binary bootloaders were rewritten to make use of the new bootloader role functions explained above.

These roles were enforced:

binary_grub-legacy : First bootloader
binary_grub-pc : Either first or extra bootloader
binary_syslinux : Either first or extra bootloader

If a bootloader is tried to be used in a role that it's not meant to be used then the build fails because that might lead to a non-bootable system.
2016-07-31 15:08:11 +02:00
Adrian Gibanel Lopez 01a9df8ce3 functions/default.sh : Define LB_PRIMARY_BOOTLOADER at the Set_defaults function which it's the right place where to do it 2016-07-31 14:59:33 +02:00
Kristian Klausen 25b15bce09 Include ext{3,4} journal size when calculating image size
Fix #801712
2016-04-16 22:18:22 +02:00
Raphaël Hertzog 7f4e2654e4 Drop ixp4xx from available armel flavors
It's gone from Debian unstable/testing since Linux 3.17.

Sponsored-By: Offensive Security
2016-01-05 18:10:00 +01:00
Ben Armstrong 1f8975cc60 Remove 586 flavour for i386 architecture. (Closes: #807972) 2015-12-15 14:01:29 +00:00
Adrian Gibanel Lopez d515ae5684 Multi bootloader support
Note: OLDIFS use makes IFS to be reset to "" instead to it being unset.
Either we need to detect if old IFS was unset to unset it
or we need a proper way of setting it as a local variable.
Even more IFS it's not currently used in
Check_package (which it's called from: binary_hdd).
we should have a clean way of resetting/unsetting IFS when calling Check_package.

The other approach it's to explicitly define IFS with its default value in the
places inside live-build code where we implicitly suppose that it's going to have
its default value.
2015-08-29 23:56:41 +02:00
Daniel Baumann 2dcb4dc06e Updating stat calls to also give the right result in container setups, thanks to Kristian Klausen <klausenbusk@hotmail.com> (Closes: #789300). 2015-08-10 21:45:00 +02:00
Daniel Baumann 421419c7fc Getting rid of hard-coded release numbers and using /etc/os-release instead (Closes: #790860).
Unfortunately VERSION_ID on testing/unstable is currently not included
in /etc/os-release, see #795124.
2015-08-10 21:31:21 +02:00
Daniel Baumann 9280926b11 Switching from http.debian.net to httpredir.debian.org as default binary mirror. 2015-05-10 19:10:28 +02:00
Daniel Baumann 279a149d8a Dropping automagics for ubuntu.
Future live-build versions will still allow to use casper,
but its configuration will be done differently by a custom
config tree, rather than embedded and maintenance intensive
code in live-build itself.
2015-05-03 16:03:10 +02:00
Daniel Baumann f93e83e351 Dropping automagics for casper.
Future live-build versions will still allow to use casper,
but its configuration will be done differently by hooks
in the config tree, rather than embedded and maintenance intensive
code in live-build itself.
2015-05-03 15:50:03 +02:00
Daniel Baumann 7e633e77f2 Moving grub and grub2 templates into shared bootloader config directory. 2015-04-29 07:52:56 +02:00
Daniel Baumann 4520daa5b9 Setting progress-linux default distribution to cairon. 2015-04-28 07:58:16 +02:00
Daniel Baumann ca9cfd8318 Setting debian default distribution to stretch. 2015-04-28 07:58:16 +02:00
Daniel Reichelt 055517567a Don't truncate files outside the build chroot.
The list of files passed to Truncate() might contain absolute symlinks
pointing to files outside the chroot, which previously destroyed files on
the build host.
2015-04-26 20:20:24 +02:00
Daniel Baumann 151e21291c Making functions/chroot_bind_path.sh executable within the source tree (Closes: #777096). 2015-02-07 06:46:45 +01:00
Fathi Boudra 9d95afb9f6 Adding linux flavours for arm64/armhf architectures.
Signed-off-by: Fathi Boudra <fabo@debian.org>
2015-02-04 10:16:02 +02:00
Daniel Baumann e51315ae1e Switching to default to linux-image-586 on i386. 2015-01-26 06:30:49 +01:00
Daniel Baumann 19b372223b Correcting packagelist parsing when packages are listed with notation of a specific version (Closes: #775832). 2015-01-25 12:23:13 +01:00
Daniel Baumann 1f0a9d9ee0 Enabling security and release updates for jessie. 2015-01-25 10:04:13 +01:00
Daniel Baumann 242aef5d83 Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
Daniel Baumann 93592a81b6 Dropping some sparc leftovers (Closes: #774196). 2015-01-04 18:58:35 +01:00
Daniel Baumann fdc9250bca Changing package dependency checks within chroot to work outside as well. 2015-01-04 18:19:47 +01:00
Daniel Baumann b814f4e07e Dropping cdebootstrap support (Closes: #773657).
debootstrap is the official tool to bootstrap debian,
cdebootstrap has had the one or other bug making it
broken for times during the release cycles.

The extra effort of supporting both debootstrap
and cdebootstrap is hardly worth it since the bootstrap
stage is cached anyway.
2014-12-23 22:54:41 +01:00
Daniel Baumann cb7e5f256c Cleaning up from python removal (LIVE_IMAGE_PARENT_ARCHIVE_AREAS). 2014-12-10 09:19:07 +01:00
Daniel Baumann 07253b661c Updating misc settings for progress-linux. 2014-12-10 09:01:06 +01:00
jnqnfe 31dbf95d86 Address "should check that we're building on debian through e.g. a 'derivative-is-based-on' variable or somesuch" fixme. 2014-12-10 08:44:05 +01:00
Jan Blunck 9d5639e9a0 Bind local repository into chroot directory.
If a local repository path is given as a mirror URL lets bind it into the
chroot. The local repository will be unmounted while processing "remove" or
latest by the exit function.
2014-12-10 08:43:02 +01:00
Raphaël Hertzog 04a09f27e4 Skip comments in package lists.
Comments in package lists used to work in live-build 3.x (although
possibly only as a side-effect of some other logic) and being able to
comment package is a useful feature (to explain why some packages are
included and to make it easy to uncomment some lines to add more useful
packages).
2014-12-10 08:42:31 +01:00
Daniel Baumann b5e99b5b14 Dropping support for wheezy. 2014-12-10 08:38:42 +01:00
Daniel Baumann 048c0827ae Somewhat fixing sysvinit and casper legacy support, slightly improved patch from Rui Miguel P. Bernardo <rui.bernardo.pt@gmail.com> (Closes: #772522, #772651).
This however will still not work properly building upstart based
images but they have been broken/unsupported anyway since a long
time.
2014-12-10 08:19:48 +01:00
jnqnfe 7ce5cc19f8 Fix broken calls to Get_conffiles() from Read_conffiles() and Print_conffiles() (Closes: #770645). 2014-12-10 07:46:29 +01:00
Daniel Baumann 2eecd1b814 Cleaning up from python removal (LIVE_IMAGE_ARCHIVE_AREAS). 2014-12-10 07:41:29 +01:00
Daniel Baumann 1f7f6dd88a Cleaning up from python removal (LIVE_IMAGE_ARCHITECTURE). 2014-12-10 07:39:58 +01:00
Raphaël Hertzog 571c89447b Update linux flavours for armhf/armel.
With linux 3.16 in Debian Jessie, armmp and armmp-lpae are the
only armhf flavours availale. On armel, we lost the support of
the iop32x flavour.
2014-12-10 06:19:55 +01:00
Daniel Baumann 7f1f542cea Updating default boot parameters for live-config 4.x. 2014-04-30 07:16:32 +02:00
Simon McVittie 5d6574552f Add support for making ext[234] or btrfs hdd images bootable with extlinux (Closes: #745816)
extlinux configuration for the bootable image is installed to
/boot/extlinux, matching the extlinux-install script in Debian.

From the configuration point of view it's still called "syslinux",
the same as the rest of the syslinux family (pxelinux, isolinux etc.)
2014-04-27 12:37:37 +02:00
Daniel Baumann 389dd5f278 Allow cache directories to be symlinks as well (Closes: #741934). 2014-04-27 12:28:29 +02:00
Daniel Baumann 03e6d8d5a6 Switching default debian release to jessie. 2014-04-27 07:23:45 +02:00
Kiel Christofferson 3c69e6b56c Auto-detect foreign architectures in packagelist.
* Add function to output unique list of foreign architectures from an
  expanded package list.
* If foreign architectures are detected, add unique architectures
  to dpkg and update apt.
* This requires users to explicitly list at least _one_ package of a
  foreign architecture in their package list (e.g. foo:arch) for any other
  foreign arch dependencies to be handled appropriately.
2014-03-02 06:22:13 +01:00
Daniel Baumann eb336bb782 Updating copyright notices for 2014. 2014-02-08 17:47:24 +01:00
Daniel Baumann 0aa8289a37 Switching from global lock file to config tree specific one. 2013-11-04 09:07:51 +01:00
Daniel Baumann 1bcc449483 Automatically symlink hooks upon creation of the configuration tree. 2013-11-03 21:18:10 +01:00
Daniel Baumann 955175ac4b Dropping incomplete and not really supported exposed root mode.
This might come back in future if there's demand for it
and the base is sufficiently cleaned up first.
2013-10-23 10:47:48 +02:00
Daniel Baumann 34baf50ab3 Replacing s390 with s390x in architecture specific defaults. 2013-10-15 12:20:42 +02:00
Daniel Baumann dcf1ff484a Updating initsystem default for progress-linux releases. 2013-09-06 20:05:07 +02:00
Daniel Baumann 1807e40dd3 Avoid failing on package lists fails that have no newline at the end. 2013-06-24 15:24:04 +02:00
Daniel Baumann 24cfdfc6a3 Adding hook to remove ssl-cert-snakeoil by default. 2013-06-19 08:01:03 +02:00
Daniel Baumann 3fdb02cd3d Dropping some EOL ubuntu release information. 2013-05-31 13:56:03 +02:00
Daniel Baumann bc35323876 Updating versioning scheme references to match new scheme since wheezy. 2013-05-31 13:53:30 +02:00
Daniel Baumann 01e91f9c21 Adding hook to disable 70-persistent-cd.rules udev rule to prevent udev remember the cd device name both the one of the build system and the one of the live system (Closes: #706926). 2013-05-06 20:07:09 +02:00
Daniel Baumann 45f1f9f0a0 Renaming remove-udev-persistent-rules.chroot hook to remove-udev-persistent-net-rules.chroot for future additional udev hooks. 2013-05-06 19:40:42 +02:00
Daniel Baumann aca016217d Enabling release updates (formerly known as volatile) for wheezy. 2013-05-06 14:50:08 +02:00
Daniel Baumann a99b0ab378 Updating bootstrap mirror for progress-linux. 2013-05-06 14:50:08 +02:00
Daniel Baumann 8f293ccd9c Dropping now unused intermediate config/image. 2013-05-06 14:50:07 +02:00
Michael Stummvoll 428da01aea Using LB_HDD_SIZE to determine the size of the image.
If LB_HDD_SIZE is "auto" the size will be determined automatically as before
else it will be the given size in MB.

Also setting the default for this to "auto"
2013-05-06 14:50:07 +02:00
Michael Stummvoll ff6a7fd628 Fixing missing quotes for tr commands to avoid unwanted expansions.
[A-Z] and [a-z] expands if there is a file or directory with one letter in the
directory.
2013-05-06 14:50:07 +02:00
Daniel Baumann a00211e9c6 Removing dedicated emdebian mode, this can entirely be handled with different defaults. 2013-05-06 14:50:07 +02:00
Daniel Baumann 60739bfbd8 Renaming config/control to config/image. 2013-05-06 14:50:07 +02:00
Daniel Baumann 68700f466c Dropping dedicated updates (formerly volatile) mirror handling, not needed anymore. 2013-05-06 14:50:07 +02:00
Daniel Baumann dd15ade8bb Dropping dedicated backports mirror handling, not needed anymore with the move of backports.d.o into ftp.d.o. 2013-05-06 14:50:07 +02:00
Daniel Baumann 5af1a82d71 Adding check for ntfs-3g on the host system, precluding the initial ntfs binary filesystem support (Closes: #697793). 2013-05-06 14:50:07 +02:00
Daniel Baumann 157ba67478 Setting memtest default to none. 2013-05-06 14:50:07 +02:00
Daniel Baumann c287072126 Debranding package for derivatives. 2013-05-06 14:50:07 +02:00
Daniel Baumann 59ce459f40 Removing all references to my old email address. 2013-05-06 14:50:06 +02:00
Raphaël Hertzog 212e5bedd3 Increasing oversizing factor of ext* filesystems from 5 to 6%.
At least on armel with ext4, 5% turned out to not be enough in some use
cases. With 6% the failure was gone.
2013-05-06 14:50:06 +02:00
Daniel Baumann cca7563257 Removing non-existent --apt-indices none references. 2013-05-06 14:50:06 +02:00
Daniel Baumann dbfe7b10d7 Removing incomplete support for fakeroot. 2013-05-06 14:50:06 +02:00
Daniel Baumann 04cec317cc Removing incomplete support for root-command. 2013-05-06 14:50:06 +02:00
Daniel Baumann 8ffca00a5e Adding release version for ubuntu raring. 2013-05-06 14:50:05 +02:00
Daniel Baumann 8db9f23ca4 Defaulting to latest ubuntu release by default in ubuntu mode. 2013-05-06 14:50:05 +02:00
Daniel Baumann 03cd6cded0 De-debianizing linux-flavour defaults on i386 and only including 486.
This is 'debranding' in the sense that live-build defaults are for people
building images with a config from scratch, live-build should not
have the options that we use for the official prebuilt debian-live
images as debian-defaults for all images and force that upon everyone
(as defaults). Rather, a 'lb config' should produce a as vanilla as
possible configuration tree.
2013-05-06 14:50:05 +02:00
Daniel Baumann 137c224579 Dropping powerpc bootloader support (yaboot), there is nobody actively maintaining this in live-build. 2013-05-06 14:50:05 +02:00
Daniel Baumann 3e23aaacde Dropping sparc bootloader support (silo), there is nobody actively maintaining this in live-build. 2013-05-06 14:50:05 +02:00
Daniel Baumann 442dfb4669 Aborting with error if hdd label has a whitespace (Closes: #648861). 2013-05-06 14:50:05 +02:00
Daniel Baumann 300b9534ca Updating wheezy release number. 2013-05-06 14:50:05 +02:00
Daniel Baumann 516cf8299f Dropping theme package support, themes are either in the config tree or the embedded one from live-build is used. 2013-05-06 14:50:05 +02:00
Daniel Baumann 772af17699 Adding hook to remove systemd machine-id. 2013-05-06 14:50:05 +02:00
Daniel Baumann a00d69e7d8 Switching default binary filesystem for hdd images to fat32 to be more robust on todays flash devices. 2013-05-06 14:50:05 +02:00
Daniel Baumann ecd971b76c Updating wheezy pre-release number for b4. 2013-05-06 14:50:04 +02:00
Daniel Baumann 8037a14116 Correcting variable default assignment for new configuration tree layout. 2013-05-06 14:50:04 +02:00
Richard Nelson fc7c8e019d Correcting typo on functions/default.sh, thanks to jhcha54008 <jhcha54008@free.fr> (Closes: #698397). 2013-05-06 14:50:04 +02:00
Daniel Baumann bcab60fdf7 Defaulting to obsolete md5 for checksums instead of sha256 on debian, as debians cdrom-check in d-i only supports md5. 2013-05-06 14:50:04 +02:00
Daniel Baumann 62d94a4454 Updating year in all copyright notices. 2013-05-06 14:50:03 +02:00
Daniel Baumann a9756a5e29 Setting debian-installer to false in all modes by default. 2013-05-06 14:50:03 +02:00
Daniel Baumann 2eba556443 Dropping support for now unused includes feature in package lists. 2013-05-06 14:50:03 +02:00
Daniel Baumann 1ca3077055 Switching order of kernel flavours in defaults, the last added one in the list becomes the default symlink target in the rootfs by apt. 2013-05-06 14:50:03 +02:00
Daniel Baumann 5123ca4547 Moving off binary image parent archive areas into new config tree format. 2013-05-06 14:50:03 +02:00
Daniel Baumann 8248ffd20f Updating comment for image name config handling. 2013-05-06 14:50:03 +02:00
Daniel Baumann 4c7518fd76 Moving off binary image archive areas into new config tree format. 2013-05-06 14:50:03 +02:00
Daniel Baumann 3385eb8cbe Setting default name to live-image for the time being. 2013-05-06 14:50:03 +02:00
Daniel Baumann 2a9486d108 Using image name from configuration to name binary output files. 2013-05-06 14:50:03 +02:00
Daniel Baumann 3cb7d3163a Correcting architecture defaults. 2013-05-06 14:50:03 +02:00
Daniel Baumann 8c0760a13a Separate between configured values and runtime values in new configuration handling. 2013-05-06 14:50:03 +02:00
Daniel Baumann 904824308a Also reading in existing values from new config tree format. 2013-05-06 14:50:03 +02:00
Daniel Baumann 6499442212 Moving off binary image architecture into new config tree format. 2013-05-06 14:50:03 +02:00
Daniel Baumann f5acab633c Moving off binary image type into new config tree format. 2013-05-06 14:50:03 +02:00
Daniel Baumann c73a5a0ee0 Moving configuration version off as the first option into new config tree format. 2013-05-06 14:50:03 +02:00
Daniel Baumann a595e9c1bc Disabling accidentally enabled removal of apt sources hook by default. 2013-05-06 14:50:03 +02:00
Daniel Baumann 5e07604353 Removing kubuntu mode, it's not different anymore to standard ubuntu mode. 2013-05-06 14:50:02 +02:00
Daniel Baumann 9a3de4beba Removing some dead default handling code for global includes which do not exist anymore. 2013-05-06 14:50:02 +02:00
Daniel Baumann f73debcdc5 Correcting config tree version check for the current version. 2013-05-06 14:50:02 +02:00
Daniel Baumann fee5cd9ce9 Correcting config tree version check for older versions. 2013-05-06 14:50:02 +02:00
Daniel Baumann 0eb6a7bdae Renumbering hooks. 2013-05-06 14:50:02 +02:00
Daniel Baumann 798e68096a Merging remove-linux-image-backups into remove-backup-files hook. 2013-05-06 14:50:02 +02:00
Daniel Baumann 4908d4d6c1 Adding default hook to use mesa glx renderer. 2013-05-06 14:50:02 +02:00
Daniel Baumann 7ce3113f44 Using consistent naming for default hooks. 2013-05-06 14:50:02 +02:00
Daniel Baumann af54c6b82c Adding default hook to use newest nvidia version. 2013-05-06 14:50:02 +02:00
Daniel Baumann d6a30e84eb Adding default hook to truncate log files. 2013-05-06 14:50:02 +02:00
Daniel Baumann fae7a1ce27 Moving removal of backup and temporary files to their own hook script. 2013-05-06 14:50:02 +02:00
Daniel Baumann cf1de1682b Moving kexec-tools default preseeding into its own hook script. 2013-05-06 14:50:02 +02:00
Daniel Baumann bd22f9c864 Updating removal of adjtime in a split out hook for wheezy. 2013-05-06 14:50:02 +02:00
Daniel Baumann 0ad3b01c96 Adding default hook to remove mdadm configuration.
mdadm creates a /etc/mdadm/mdadm.conf configuration file
on package installation which contains array information
from the build system.
2013-05-06 14:50:02 +02:00
Daniel Baumann b109ddb21d Updating wheezy release number. 2013-05-06 14:50:02 +02:00
Daniel Baumann ba0fe4cdc3 Updating wording about regenerating config trees. 2013-05-06 14:50:01 +02:00
Daniel Baumann 4bd9601c65 Updating version config tree version check (Closes: #695091). 2013-05-06 14:50:01 +02:00
Daniel Baumann c48033696e Adding dropped empty-line separator in defaults. 2013-05-06 14:50:01 +02:00
Daniel Baumann edeb1f7656 Updating powerpc kernel list on ubuntu. 2013-05-06 14:50:01 +02:00
Daniel Baumann d318084e0d Removing some leftovers from stripped and minimal package lists. 2013-05-06 14:50:01 +02:00
Daniel Baumann d1047e809a Adding debian version 4.0~a1-1. 2013-05-06 14:48:46 +02:00
Daniel Baumann 42e1c47a01 Correcting variable typo when setting distribution specific defaults of the backports mirror for the binary image. 2013-04-29 12:54:16 +02:00
Daniel Baumann bd23368c70 Enabling release updates (formerly known as volatile) for wheezy. 2013-04-25 16:54:41 +02:00
Daniel Baumann ac6d1c319d Updating debian-backports mirrors for wheezy. 2013-04-25 16:43:58 +02:00
Daniel Baumann ea0a65be4c Updating bootstrap mirror for progress-linux. 2013-04-19 10:33:04 +02:00
Daniel Baumann ab3d2eae25 Removing non-existent --apt-indices none references. 2013-04-09 05:40:12 +02:00
Daniel Baumann a99ec2cd62 Aborting with error if hdd label has a whitespace (Closes: #648861). 2013-04-09 05:22:12 +02:00
Daniel Baumann f765659688 Updating squeeze point-release number. 2013-02-14 15:24:28 +01:00
Daniel Baumann a4f981f305 Updating wheezy release number. 2013-02-14 15:24:15 +01:00
Daniel Baumann 36e9376517 Dropping theme package support, themes are either in the config tree or the embedded one from live-build is used. 2013-02-08 23:11:15 +01:00
Daniel Baumann 4da218e858 Adding hook to remove systemd machine-id. 2013-02-08 21:40:28 +01:00
Daniel Baumann a1a7b3aaa9 Switching default binary filesystem for hdd images to fat32 to be more robust on todays flash devices. 2013-01-24 19:17:52 +01:00
Daniel Baumann 35b88189b6 Updating wheezy pre-release number for b4. 2013-01-20 15:13:07 +01:00
Richard Nelson 5d01d457d5 Correcting typo on functions/default.sh, thanks to jhcha54008 <jhcha54008@free.fr> (Closes: #698397). 2013-01-18 05:42:00 +01:00
Daniel Baumann 12506ec1c6 Updating wheezy beta-release number. 2013-01-04 16:10:04 +01:00
Daniel Baumann bfbd7af101 Defaulting to obsolete md5 for checksums instead of sha256 on debian, as debians cdrom-check in d-i only supports md5. 2013-01-02 10:38:51 +01:00
Daniel Baumann a203b86fdd Updating year in all copyright notices. 2013-01-01 00:13:01 +01:00
Daniel Baumann 0fc826ab7e Setting debian-installer to false in all modes by default. 2012-12-31 23:59:12 +01:00
Daniel Baumann db43ae0851 Switching order of kernel flavours in defaults, the last added one in the list becomes the default symlink target in the rootfs by apt. 2012-12-30 14:40:23 +01:00
Daniel Baumann ab9cf9e4b3 Disabling accidentally enabled removal of apt sources hook by default. 2012-12-19 06:44:54 +01:00
Daniel Baumann 7e8240cd5e Removing kubuntu mode, it's not different anymore to standard ubuntu mode. 2012-12-17 13:51:44 +01:00
Daniel Baumann 0b87c8239b Removing some dead default handling code for global includes which do not exist anymore. 2012-12-17 13:43:16 +01:00
Daniel Baumann f9b415c580 Correcting config tree version check for the current version. 2012-12-17 13:41:26 +01:00
Daniel Baumann 8d69592122 Correcting config tree version check for older versions. 2012-12-17 13:36:27 +01:00
Daniel Baumann a46350d7b3 Renumbering hooks. 2012-12-17 00:22:28 +01:00
Daniel Baumann 9d9e343f95 Merging remove-linux-image-backups into remove-backup-files hook. 2012-12-17 00:15:38 +01:00
Daniel Baumann 50c2839b1b Adding default hook to use mesa glx renderer. 2012-12-17 00:10:39 +01:00
Daniel Baumann 995031ed72 Using consistent naming for default hooks. 2012-12-17 00:08:41 +01:00
Daniel Baumann f8ac7662a7 Adding default hook to use newest nvidia version. 2012-12-17 00:06:33 +01:00
Daniel Baumann 5b11bd1a06 Adding default hook to truncate log files. 2012-12-16 23:58:54 +01:00
Daniel Baumann 43434c2f6a Moving removal of backup and temporary files to their own hook script. 2012-12-16 23:56:55 +01:00
Daniel Baumann 18c8ece239 Moving kexec-tools default preseeding into its own hook script. 2012-12-16 23:48:24 +01:00
Daniel Baumann 414b89ed3f Updating removal of adjtime in a split out hook for wheezy. 2012-12-13 20:32:18 +01:00
Daniel Baumann 8fd30d15b3 Adding default hook to remove mdadm configuration.
mdadm creates a /etc/mdadm/mdadm.conf configuration file
on package installation which contains array information
from the build system.
2012-12-12 11:43:41 +01:00
Daniel Baumann 134c9f5cbe Updating wheezy release number. 2012-12-10 22:31:26 +01:00
Daniel Baumann 37c9a7e0f0 Correcting test for no config tree version number to match all other cases, not just lower-than-1. 2012-12-04 11:31:01 +01:00
Daniel Baumann 4be0cce940 Updating wording about regenerating config trees. 2012-12-04 11:26:02 +01:00
Daniel Baumann e832622a33 Adding dropped empty-line separator in defaults. 2012-12-01 01:56:37 +01:00
Daniel Baumann d79a5200e6 Updating powerpc kernel list on ubuntu. 2012-12-01 01:50:23 +01:00
Daniel Baumann 96287e4b8f Removing some leftovers from stripped and minimal package lists. 2012-12-01 01:44:29 +01:00
Daniel Baumann f7ba1350f8 Adding default hook to remove linux-image backup files. 2012-11-28 17:43:29 +01:00
Ben Armstrong 8286f7d73c Fixing typo in cache directory names, thanks to Thanatermesis <thanatermesis@gmail.com>. 2012-11-14 21:51:38 +01:00
Daniel Baumann 4f710bc3c4 Removing debconf-nowarnings option, doesn't provide any advantage to disable this option in the first place. 2012-10-31 09:26:25 +01:00
Daniel Baumann 63a275bedc Running chrooted commands with DEBCONF_NONINTERACTIVE_SEEN set to true to ensure debconf questions are not reasked uselessly on the final systems. 2012-10-31 07:43:37 +01:00
Daniel Baumann 68b1966b94 Defaulting to systemd as initsystem for wheezy based progress-linux releases and newer. 2012-10-28 11:43:51 +01:00
Daniel Baumann ef2b0289d4 Using xargs when copying or hardlinking deb files from and to the package cache to avoid hit the shell max command limits (Closes: #691616). 2012-10-27 23:59:18 +02:00
Daniel Baumann 2caef33ea2 Renaming progress mode to progress-linux to match the used naming scheme. 2012-10-25 13:36:18 +02:00
Daniel Baumann bd5f6bc104 Renaming config/binary_debian-installer to simply config/debian-installer. 2012-10-22 20:30:41 +02:00
Daniel Baumann 1fc33f6afb Renaming local/scripts to local/bin for executables overriding not just lb scripts, but any command during live-build runs. 2012-10-22 19:20:12 +02:00
Daniel Baumann dd43976fb7 Correcting variable handling for --bootappend-live-failsafe in defaults. 2012-10-08 20:16:40 +02:00
Daniel Baumann 5f7780597e Simplifying bootparameter assembling in defaults. 2012-10-08 20:01:30 +02:00
Daniel Baumann a7227d4ebc Stopping to support LB_INITRAMFS=auto, when switching the mode one has to update several parameters anyway, use of auto scripts are recommended. 2012-10-08 20:00:41 +02:00
Daniel Baumann 81029d0e72 Setting default compression to none.
Normally, when using compressed file systems (squashfs),
there is no point in further compressing the tarballs and images.
2012-10-04 20:13:28 +02:00
Daniel Baumann 84dcf4ed02 Making different boot options defaults depending on initramfs generator, not depending on mode. 2012-10-04 14:26:44 +02:00
Daniel Baumann 56e4085c60 Making failsafe boot parameters fully customizable like the normal ones. 2012-10-04 14:25:01 +02:00
Daniel Baumann 36d3b1a510 Removing ubuntu natty support, EOL. 2012-10-03 13:49:25 +02:00
Daniel Baumann fd445ce765 Booting by default with 'quiet' and 'splash' parameters. 2012-10-01 13:11:40 +02:00
Daniel Baumann b18de1adea Updating wheezy pre-release version. 2012-10-01 03:34:05 +02:00
Daniel Baumann 236d04d701 Updating squeeze point release version. 2012-10-01 03:33:46 +02:00
Colin Watson cab0d9e783 If --build-with-chroot is false, run ! lines in package-lists in the host system. 2012-09-30 09:38:17 +02:00
Colin Watson 01b64bf2b9 Using i386 -generic-pae kernel flavour on Ubuntu precise. 2012-09-30 09:28:55 +02:00
Adam Conrad 7ae630cc43 Switching Ubuntu from powerpc to powerpc-smp kernel. 2012-09-30 09:26:12 +02:00
Daniel Baumann a9bb5418c9 Using initramfs generator specific boot parameters in syslinux configuration files. 2012-09-30 09:20:15 +02:00
Daniel Baumann 7fad1b698d Including loadlin on d-i images on amd64 and i386. 2012-09-29 13:23:31 +02:00
Daniel Baumann 9228a0ca66 Renaming volatile options refering to volatile archive to updates to match current archive namings. 2012-09-26 14:43:12 +02:00
Daniel Baumann e12985ac97 Adding baureo-backports and charon-backports as valid distributions in progress mode. 2012-08-29 15:58:42 +02:00
Daniel Baumann 341bd2a096 Setting default progress distribution from artax to baureo. 2012-08-27 16:23:27 +02:00
Daniel Baumann ddd0ef9dc0 Moving aborting when no bootstrap tool is installed from defaults to the respective bootstrap script. 2012-08-27 16:05:46 +02:00
Daniel Baumann d0561821e4 Calling local live-build embedded in config directly rather than to adjust path. 2012-08-27 15:03:21 +02:00
Daniel Baumann 5f26aa5bd0 Correcting wrong bootstrap-qemu-exclude variable in defaults. 2012-08-27 14:39:14 +02:00
Daniel Baumann 9b5fc09d0f Removing bootstrap-keyring option. 2012-08-27 14:36:42 +02:00
Daniel Baumann fda74e4307 Removing bootstrap-include and bootstrap-exclude options. 2012-08-27 14:33:57 +02:00
Daniel Baumann df1cea54c5 Removing bootstrap-flavour option (Closes: #685675).
live-build does too much magic that causes too much effort in
maintaining for stuff that hardly everyone uses.

Rather than 'translating' back and forth and maintaining compatibility
between options of different debootstrap and cdebootstrap versions (and
possibly any other in the future), it's is better to 'off-load' this to
the user.

For non-live specific options passed to the bootstrap tools, we'll
be introducing --debootstrap-options and --cdebootstrap-options
where users can specify their additional options passed to the
respective bootstrap tool, rather than us maintaining them in a
'hardcoded' and selected list.
2012-08-27 14:26:11 +02:00
Daniel Baumann fd685847ad Moving from cdn.debian.net to http.debian.net as binary mirror. 2012-08-24 11:38:25 +02:00
Daniel Baumann 14f57935cd Correcting fallback for default binary volatile mirror on ubuntu, thanks to Luigi Capriotti <l.capriotti@xbmc.org>. 2012-08-14 11:38:05 +02:00
Daniel Baumann e53c79c8d0 Disabling volatile for wheezy for the time being.
Why oh why can people not just create empty indices for the
auxiliary repositories once they populate a new suite in the
main archive, this is so obvious and I say it after every
release.. Keeping these things constantly in sync with reality
is tedious, just stupid and sucks big time.
2012-07-30 18:19:29 +02:00
Daniel Baumann 508510e097 Updating GPL standard header in all files. 2012-07-30 18:19:27 +02:00
Daniel Baumann 81fb429453 Dropping global package-lists entirely, only local package lists within the config tree are support. 2012-07-29 00:29:23 +02:00
Daniel Baumann a691caa0f2 Adding support for executable statements as '! $command' in package lists. 2012-07-28 23:38:43 +02:00
Daniel Baumann bedb2fa9f9 Including gnupg on ubuntu by default through corresponding default for bootstrap includes. 2012-07-28 21:01:37 +02:00
Daniel Baumann a16be4ab5e Updating all distribution specific selectors in defaults to be as future proof as possible. 2012-07-27 23:29:19 +02:00
Daniel Baumann 825f24f97d Adding release information for jessie. 2012-07-27 22:45:27 +02:00
Daniel Baumann 8473b925fd Fixing up inclusion of functions while allowing local usage of live-build with different file layouts. 2012-07-19 21:11:59 +02:00
Daniel Baumann 9a5a53f185 Correcting spelling typo of ubuntus 12.10 codename. 2012-07-18 22:35:22 +02:00
Daniel Baumann 8bbc483198 Setting initial release number for wheezy. 2012-07-18 22:33:54 +02:00
Daniel Baumann 3c5dabc9fb Updating squeeze point-release number. 2012-07-18 22:33:23 +02:00
Daniel Baumann 2d94f79d0a Adding support for ntfs as binary filesystem when using syslinux. 2012-07-18 22:30:15 +02:00
Daniel Baumann c07a76f649 Decrufting version flag. 2012-07-18 21:55:08 +02:00
Daniel Baumann 27f7d92862 Using xz to compress images on anything except squeeze, keeping gzip as default for squeeze. 2012-07-18 20:07:08 +02:00
Daniel Baumann f4de284deb Adding xz as valid compression format. 2012-07-18 20:07:06 +02:00
Daniel Baumann 75ca21eaec Adding support for zsync control files generation, thanks to Hector Oron <hector.oron@gmail.com> for the idea and prototype. 2012-07-18 19:37:20 +02:00
Daniel Baumann 310be05bff Renaming net flavour to netboot for consistency. 2012-07-18 19:26:07 +02:00
Daniel Baumann 87374242c6 For consistency, respecting config/environment too for both chroot and binary environments (but the content of sepcific environments for either chroot or binary still has precedence over the generic one). 2012-06-06 21:32:08 +02:00
Daniel Baumann f74ac47691 Removing unmaintained l10n handling. 2012-06-06 19:59:15 +02:00