Compare commits

..

2397 Commits

Author SHA1 Message Date
Roland Clobus 3fb606fa75
Apply 'wrap-and-sort' on the debian directory
Contains only whitespace changes
2025-01-10 11:55:11 +01:00
Roland Clobus d5bd2259be
debootstrap: Optionally use 'eatmydata'
If 'eatmydata' is found, use it.
On a CI system calling 'sync' influences the other processes that are
running on the shared host. 'debootstrap' calls 'sync' in its second
stage. For live-build, the synchronisation is not required.
2025-01-10 11:51:25 +01:00
Roland Clobus ddf289332c
test: pre-existing packages 2025-01-08 10:53:14 +01:00
Roland Clobus 64fa84a96b
test: Support reproducible images 2025-01-08 10:52:52 +01:00
Roland Clobus 9d0ed5e5cb
snapshot builds: Add check-valid-until=no in sources.list
When building against the snapshot server, adjust the sources.list entry
such that 'apt-get update' (in the live environment) will not complain
about the expired release file
2025-01-08 10:36:34 +01:00
Roland Clobus 937e5379f2
rebuild.sh: Re-enable snapshot.debian.org 2025-01-07 10:42:56 +01:00
Roland Clobus 3114e202fd
Support for qemu: Use spice-vdagent (Closes: 869569) 2025-01-07 09:59:00 +01:00
Roland Clobus 4b13a602bb
rebuild.sh: Add theme for Trixie
The theme for Trixie is Ceratopsian
https://wiki.debian.org/DebianArt/Themes/Ceratopsian
2025-01-07 09:53:48 +01:00
Roland Clobus 687c6d04e8
Packaging: Add devscripts as build dependency
'make test' calls 'checkbashisms'
2025-01-07 09:52:21 +01:00
Roland Clobus 3542536942
Fix FTBFS for 'make test'
See https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/live-build.html
2025-01-07 09:43:57 +01:00
Roland Clobus a99e8c3d97
Reproducible: fixes unstable output in dictionaries-common
See #1090981: dictionaries-common: Randomness in emacsen-ispell-dicts.el
(now due to enchant)

This applies the same patch as proposed in the bug report and makes the
output of 'update-dictcommon-aspell' reproducible again.
2024-12-22 15:45:40 +01:00
Roland Clobus 246556b123
Firmwarelist: use POSIX commandline option for awk
Use `-v` instead of `--assign`, which is only supported by gawk
2024-12-16 13:53:21 +01:00
Roland Clobus 137b8e2eed Generate /firmware/Contents-firmware
This file is also present in the netinst image and is used by hw-detect
for efficient lookup of firmware files
2024-12-14 14:32:16 +00:00
Aaron Rainbolt 2bc716193d
Fix memtest support when using dracut-live 2024-12-10 19:34:33 -06:00
Roland Clobus 61d2eb3f30
Installer: fix for arm64 for builds before trixie
The package 'grub-efi-arm64-unsigned' was introduced in trixie
(Closes: #108850)
2024-11-30 21:31:36 +01:00
Roland Clobus 4a8b01df80 Fixes error message for local .deb files in config/packages.chroot.
The error message:
N: Download is performed unsandboxed as root as file '/root/packages/./InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

The _apt user cannot access files in /root/packages, instead /packages
will be used.
2024-11-24 22:41:35 +00:00
Roland Clobus 3e7f5dd851
test: Cached apt indices for local pool is implemented 2024-11-24 17:44:35 +01:00
Roland Clobus 6f6376dd3b
installer: Cached apt indices for local pool
Add the apt indices for the additional source of packages on the live
medium. It allows for installing packages from that source without
running 'apt-get update' first
2024-11-24 17:44:24 +01:00
Roland Clobus f4b19cd8bf
installer: Use UTC timestamps in the Release file
Fixes the "Invalid 'Date' entry in Release File
/var/lib/apt/lists/partial/_run_live_medium_dists_bookworm_Release"
message when running 'apt-get update'
2024-11-24 16:15:08 +01:00
Roland Clobus 5004fe3a15 Reproducible: Regenerate Java cacerts differently
The previous version with faketime can hang Java on some machines. This
solution adds a tiny startup delay when required, but effectively keeps
the image reproducible (because the offending file is not present in the
image, but will be generated on startup)
2024-11-23 16:00:11 +00:00
Roland Clobus f35d546933
test: New test for external deb sources
There are many ways to provide additional .deb packages in the live
images. This regression test helps to ensure that these stay functional.
2024-11-23 15:59:12 +01:00
Roland Clobus cd7b870995
Reproducible: ca-certificates-java
This makes the postinst file from ca-certificates-java
(/etc/ssl/certs/java/cacerts) reproducible.
It contains embedded timestamps for 'now'.
Debian-Junior includes ca-certificates-java and is now reproducible.
2024-11-12 12:26:06 +01:00
Roland Clobus 6374459ad3
Workaround for #1084791 removed.
Source package `rtl8723bt-firmware` was removed from trixie 2024-11-12.
The workaround is no longer required.
2024-11-12 09:34:02 +01:00
Roland Clobus e6efd799fc
Workaround for #1084791 part 3
Package realtek-firmware 20240909-2 migrated to testing/trixie. The
removal of firmware-realtek-rtl8723cs-bt in #1085075 has not taken place
yet, so the workaround needs to be applied to trixie too.
2024-11-06 19:51:10 +01:00
Roland Clobus 0bf71641ef
man: Use $LIVE_BUILD if set
The '--help' option will show the updated manpage if LIVE_BUILD is set
2024-11-06 11:32:23 +01:00
Roland Clobus e4168673d1
autopkgtest: Use 'stable' and 'testing'
Use the stable names instead of the codenames to reduce maintenance of
the autopkgtests.
2024-11-06 11:30:53 +01:00
Roland Clobus 30d39f812e
lb config: --distribution defaults to testing 2024-11-06 11:30:41 +01:00
Roland Clobus 0959dda89f
dracut: Support diverted configuration files of Calamares
When a configuration file for Calamares is diverted by e.g.
`config-package-dev`, it becomes a symlink. The in-place modifications
must be applied on the symlinked file, not on a newly created copy.
After removal of the package, no remainders are left.

See https://salsa.debian.org/live-team/live-build/-/merge_requests/353#note_540394
2024-11-01 17:39:22 +01:00
Roland Clobus 111a6c2c65
Installer: use the http proxy 2024-10-31 17:59:15 +01:00
Aaron Rainbolt 7349ab156f
Handle loopback booting with dracut-live properly
dracut uses the `iso-scan/filename` kernel parameter for loopback
booting with tools like Super Grub Disk, whereas live-boot uses the
`findiso` parameter for this purpose. Conditionally set which one is
used depending on the selected initramfs.
2024-10-31 00:23:01 -05:00
Roland Clobus 399393565c
Workaround for #1084791 part 2
The previous commit did not work properly.
Now output is generated that shows whether the workaround has been
applied or needs to be removed again.
2024-10-28 11:36:06 +01:00
Roland Clobus bb7e9e6368 Workaround for #1084791
There is a file conflict in the non-free-firmware realtek packages,
which prevent the sid live images from being built.

This workaround will be removed a soon as the bug is resolved.
2024-10-26 10:21:55 +00:00
Roland Clobus 48e4864fde
Pipeline: turn off the arm64 pipeline for non-DDs
The default arm64 (and riscv64) runners on Salsa are only available for
DDs. Instead of enabling the runners for the main namespace, they are
only turned off for non-DDs.

See the documentation at
https://salsa.debian.org/salsa-ci-team/pipeline#enable-building-on-arm-and-risc-v
2024-10-26 10:42:57 +02:00
Roland Clobus 5b7e7f5432
Typo: fixed layout for some commandline options 2024-10-25 11:39:41 +02:00
Roland Clobus 567e03034b
Add support for dracut
Mini case:
`lb config --distribution sid --debian-installer none --cache-packages false --archive-areas "main" --initramfs dracut-live`

Support includes debian-installer and Calamares

Closes: #1031903
2024-10-25 11:39:28 +02:00
Nick Brown 9ae2c0105c Add support for proposed-update archives
Can be selected in much the same vain as backports, updates and security
archive sources. Defaults to false like backports.

Closes: #1069045
2024-10-11 14:30:16 +00:00
Emanuele Rocca 719441e744 Add git to Suggests
The git command is needed in a few places, including when using
'--debian-installer-distribution git' and '--config GIT_URL'.
2024-10-11 14:28:40 +00:00
Emanuele Rocca c02973d21a Test ISO building on Salsa
Add two test stage CI jobs that build minimal ISOs on amd64 and arm64 runners
called 'ISO amd64' and 'ISO arm64' respectively.
2024-09-04 16:58:40 +02:00
Emanuele Rocca ccf1f49bb9 lb source: fetch source packages once
Iterate over source package names and call `apt-get source $srcpkg`, instead of
looping over binary package names and calling `apt-get source $binpkg`.

Taking libreoffice as an example, this means calling `apt-get source
libreoffice` once instead of hundreds of times.

Specify --only-source in `apt-get source` to make explicit the fact that the
argument is a source package name. This is necessary to make ambiguous cases
work, such as `libftdi1` which is both a source package name and a binary
package provided by a different source, `libftdi`.

The checksums in source/{live,debian}/sha256sum.txt are identical with and
without this patch.
2024-09-02 16:49:14 +02:00
Roland Clobus 7f28a6dea5
rebuild.sh: Support Debian-Junior 2024-09-02 09:26:11 +02:00
Emanuele Rocca a8cceda195 Add arm64 packages for post-installation 2024-08-30 18:05:11 +00:00
Emanuele Rocca 08d7ddba8b Always add live-installer to udeb_include
We need to ensure that anna always auto-loads live-installer when running d-i
to install a live system, regardless of the presence of a udeb_include to copy.
2024-08-29 18:13:10 +02:00
Roland Clobus 7a094b296d
Fix for #1057853: Missing Calamares icon for KDE on bookworm 2024-08-28 22:43:53 +02:00
Roland Clobus 86078425e2
Installer: fix for bookworm and bullseye
The package 'grub-efi-amd64-unsigned' was introduce in trixie
2024-08-28 22:43:06 +02:00
Roland Clobus c7bc5f311c
Installer: Calamares also needs the unsigned GRUB packages for offline installation 2024-08-23 12:23:50 +02:00
Roland Clobus 2ceebabfa4
Change default for zsync to false
* zsync was orphaned 2021-09-19 #994648
* zsync FTBFS with GCC-14 #1075710
* zsync was only available for iso and iso-hybrid
* zsync output is ignored by the live-setup package which generates the
  official live images
2024-08-14 10:35:04 +02:00
Luca Boccassi ebbb6e0c2c Update changelog for 1:20240810 release 2024-08-10 00:08:48 +01:00
Helmut Grohne 0eb97d9c36 duplicate aliased diversions for DEP17
/bin/hostname and /sbin/start-stop-daemon are being moved from / to /usr
in trixie. Hence, these diversions become ineffective. Temporarily add
both diversions to handle both variants.

Closes: #1064408
2024-08-10 00:07:25 +01:00
Luca Boccassi 24bfe093f8 Create local /etc/os-release with metadata about the live image
Add IMAGE_ID=live and BUILD_ID set to a human-readable SOURCE_DATE_EPOCH.
If building sid, also fix the broken VERSION_CODENAME so that it matches
reality.
2024-08-09 23:48:37 +01:00
Roland Clobus 89556fb77e
arm64: Only add .disk/udeb_include when the source file exists 2024-08-02 10:31:55 +02:00
Roland Clobus a05946d32c
Fix git installer build for arm64 2024-08-02 10:31:42 +02:00
Roland Clobus 22c48e92be
Fixed: select the package name for firmware packages
When the firmware package contains file names with spaces (e.g.
firmware-brcm80211, 20240610-1), pick the correct column for the package
section
2024-07-17 20:31:48 +02:00
Roland Clobus f2e750e6f7
installer: offline installation with calamares
After MR https://salsa.debian.org/live-team/calamares-settings-debian/-/merge_requests/5
was fixed for Calamares, the live installer now needs grub-efi as well
when running the installer in offline mode.
2024-06-24 08:23:40 +02:00
Roland Clobus 06d178aac0
Restore support for bullseye and bookworm
Bullseye and bookworm don't have the t64 packages, so the script checks
the availability of the suitable packages
2024-06-20 22:36:30 +02:00
Luca Boccassi b1247f717c d/control: bump Standards-Version to 4.7.0, no changes 2024-05-25 12:23:13 +01:00
Roland Clobus cf963c36b1
binary_includes: Activate when the directory exists (Closes: #1069349) 2024-05-03 08:16:27 +02:00
Roland Clobus 4f7f59f9e5 installer: Also add the t64 versions of the libraries
Fixes the installer for the standard image on BIOS boot
2024-05-01 05:47:31 +00:00
Roland Clobus a5bd0ed8ce Architecture checking is not required any more
The qemu-static binary on the host runs the foreign binaries
2024-04-29 16:27:41 +00:00
Roland Clobus f290d31960 hooks: Remove /etc/.pwd.lock and /run/mount/utab
When the zero-byte file /etc/.pwd.lock is present in the ISO image,
diffoscope will abort
(https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/367)

This file will be generated when needed, so it can be removed from the
image.

Cleanup /run/mount/utab (and its directory)
2024-04-29 16:27:41 +00:00
Roland Clobus 724f449e0d binary_bootloader_splash: New script
Allows for scenarios without syslinux (e.g. arm64)
Breaking change: custom splash.svg images must be placed in
config/bootloaders
2024-04-29 16:27:41 +00:00
Roland Clobus 2f1acabc41 Cross-build: arm64 support
Work together with Emanuele Rocca during MiniDebCamp Hamburg 2024
* rebuild: New command line option: --architecture
* installer: Enable the GTK installer
* bootloader: Set a default bootloader
* no qemu-binary in chroot
2024-04-29 16:27:41 +00:00
Roland Clobus 4a35ad2954 Rebuild: Always show the active settings 2024-04-29 16:27:41 +00:00
Roland Clobus 39b343fe0c
Remove 'nolapic' from the safe boot options.
This is a work around for #1068515
2024-04-28 22:28:26 +02:00
Roland Clobus 605868e21d
Allow for shim-only secure UEFI boot
When grub-efi-amd64-signed and grub-common have mismatched
dependencies (e.g. due to binNMUs), allow a shim-only secure boot.
The user has to enroll the hash of the EFI/boot/grub*.efi file and then
secure booting can continue.
Shim-only is supported only for '--uefi-secure-boot=auto'
2024-03-24 11:04:02 +01:00
Marcel Partap 518534d352 container hooks: make nspawn work inside nspawn
https://bugs.archlinux.org/task/55082 :
> This is probably caused by the fact that `systemd-nspawn` now registers
> a scope when `--register=no` is specified, unless `--keep-unit` is also
> specified [1].
[1] https://github.com/systemd/systemd/pull/6166
2024-02-23 22:36:50 +01:00
Roland Clobus 0845468303 Reproducible install-info
This fixes the last non-reproducible file for KDE (bookworm):
* install-info has an unstable sort when a new section is started
  Newer versions (not yet released) have been fixed
* The backup file (dir.old) does not need to be in the live image
2024-02-23 16:54:07 +00:00
Roland Clobus 0c3b3905b5 Fixed udeb handling 2024-02-23 16:53:17 +00:00
Roland Clobus 516e8ded70
Reproducible: Fix for vlc (used by the Bookworm KDE image) 2024-02-07 22:40:51 +01:00
Patrick Schleizer 59f8a67094 reproducible builds: use cp -a when copying binary/boot/grub/i386-pc 2024-01-21 18:02:18 +00:00
Patrick Schleizer 759adc68eb also check if grub-pc-bin dependency is available 2024-01-21 18:02:18 +00:00
Patrick Schleizer a54872f2c2 fix: check correct dependency package grub-common instead of grub-pc 2024-01-21 18:02:18 +00:00
Roland Clobus 77db32f0fb
Installer: fix for previous commit
A tab symbol in the vmlinuz-detection patch was missing
2024-01-01 11:43:53 +01:00
Roland Clobus 3d38418ebc
Installer: Support trixie
Trixie uses a kernel < 6.6.8 which still generates an unversioned
vmlinuz file
Additionally the installer for trixie requires libfuse2 instead of 3-3
2023-12-31 12:42:41 +01:00
Roland Clobus ba8ec44a3b
The installer now requires grub-common and dependencies 2023-12-28 17:22:33 +01:00
Roland Clobus 2d0e537bdb
installer: The kernel version does not need to have a Debian-version 2023-12-27 15:47:55 +01:00
Roland Clobus 3dbcbab578
Workaround for #1058994
fakeroot is not required for building the debian-installer
2023-12-27 15:46:14 +01:00
Unit 193 e9dd83edf8 firmwarelists.sh: Account for usrmerged firmware packages. 2023-12-22 00:04:31 +00:00
Roland Clobus 35defd5bb2
rebuild: Don't use a symlink for the splash screen
This is a first step for supporting File System Transposition
2023-12-03 13:06:38 +01:00
Roland Clobus 95a05b045d
Apply policykit fix when needed.
For bookworm, live-config does not contain the fix for #1037295
With the patched policykit file, many password prompts will not show up
any more, e.g. with Calamares
2023-12-02 14:59:19 +01:00
Emanuele Rocca 75d43b3394 chroot_sysfs: umount efivarfs if mounted
Trying to umount /sys currently fails if efivarfs is mounted under it. Umount
it first.

Bug: #1053457
2023-11-28 14:47:59 +01:00
Roland Clobus 4832b6215d
Reproducible: fixes the last two issues for Debian 12.3
* source_tar: The order of the files in the tarball are now predictable.
This has been verified with 'disorderfs'
* rebuild.sh: The timestamp of the directory of theme.txt must also be
adjusted.
2023-10-29 08:30:11 +01:00
Roland Clobus d70a84f2e9 Remove unneeded cached files from appstream
These files cause an untracable difference for the reproducible Bookworm
images, but because they are not needed, they can be removed.
2023-09-27 16:06:23 +00:00
Arnaud Rebillout 6dbb8d2598 efi-image: Fix <platform>/grub.cfg, variables must NOT be expanded
The test 'if [ x$grub_platform == xefi -a x$lockdown != xy ]' is meant
to be done by GRUB at runtime, so this line should appear verbatim in
the grub.cfg file.

However the variables are expanded at build-time by the script, because
the dollar symbol is not escaped.

Here's the result on a 12.1.0 live image:

    $ cat <<debian-live-12.1.0>>/boot/grub/x86_64-efi/grub.cfg
    if [ x == xefi -a x != xy ] ; then
    insmod part_acorn
    insmod part_amiga
    insmod part_apple
    insmod part_bsd
    insmod part_dfly
    insmod part_dvh
    insmod part_gpt
    insmod part_msdos
    insmod part_plan
    insmod part_sun
    insmod part_sunpc
    fi
    source /boot/grub/grub.cfg

Note that this mistake would have been caught if only the nounset option
had been used (ie. 'set -u').

Fixes commit: 7b36f5b0ad
2023-09-18 08:39:38 +07:00
Arnaud Rebillout a3f7a33f95 efi-image: Fix missing part_* modules in boot<platform>.efi
Setting the value of PARTITIONLIST in a sub-shell is scoped to the
sub-shell, it will not change the value of the variable in the parent
shell.

In other words:

    #!/bin/sh
    FOOBAR=
    (FOOBAR=foo)
    echo FOOBAR=$FOOBAR

gives the output:

    FOOBAR=

As a consequence, PARTITIONLIST being empty, there are no part_*
modules embedded in the boot<platform>.efi binary. This is clearly a
regression, introduced in 7b36f5b0ad.

Somehow, Debian doesn't seem to be impacted. Kali Linux is impacted, but
only under very special conditions, leading to this bug report:
<https://bugs.kali.org/view.php?id=8441>

This commit fixes it, by setting the PARTITIONLIST variable first, and
then using it where needs be. As a consequence it greatly simplifies the
next part of the code, as we can just use a heredoc to create the grub
config.
2023-09-18 08:38:52 +07:00
Roland Clobus 6f0f8952f9
rebuild.sh: Consistent timestamp of theme.txt
As noted in https://lists.debian.org/debian-live/2023/08/msg00008.html,
the timestamp of theme.txt for bookworm images is not reproducible.
Additionally the splash image is now matching the resolution of the boot
menu, which makes it more crisp.
2023-08-20 13:16:40 +02:00
Roland Clobus 15e620207f
binary_disk: Don't create .disk/archive_trace any more
As proposed in
https://lists.debian.org/debian-live/2023/08/msg00008.html
The information that is required for rebuilding the image is already
found in .disk/generator, .disk/info and .disk/mkisofs
2023-08-20 11:36:37 +02:00
Roland Clobus d54ba390dd
binary_rootfs: Fixed test for /etc/mtab (Closes: #1032408) 2023-08-20 10:57:43 +02:00
Roland Clobus d25826212a
binary_syslinux: Ensure the availability of the font of splash.svg
If the font is not installed in the binary chroot, a substitute font
will silently be used instead
2023-08-20 10:53:45 +02:00
Roland Clobus d6e7b80ea0 Apply predictable timestamps in the source image 2023-08-06 20:46:30 +00:00
Roland Clobus ff950cbeee
Fix and correctly suppress lintian warnings
Fix: debian-news-entry-has-unknown-version UNRELEASED
Suppress: mismatched-override absolute-symbolic-link-target-in-source
2023-08-06 21:31:15 +02:00
Roland Clobus f38a906715
Use LC_ALL=C for sort
This ensures that irrespective of the environment of the host, the
sorting order will be consistent and reproducible
2023-08-04 17:20:43 +02:00
jfliu e663ec5b0e binary_iso: fix iso-hybrid images with EFI bootloader 2023-07-19 14:46:06 +00:00
Marcel Partap 95fc0dfdaf Remove ancient hook 9030-remove-apt-sources-lists that was never run
because it doesn't end on ".hook.chroot", so it wouldn't be linked from
the `lb config` stage. Probably to the better, as it does not seem very
useful to indiscriminately raze all apt sources lists.
2023-07-18 13:12:29 +02:00
Marcel Partap 4146699d37 Create binary_chroot stagefiles when skipping, too 2023-07-18 12:23:57 +02:00
Roland Clobus 0d58c4287c
rebuild: update --disk-info 2023-07-15 19:28:22 +02:00
David Hewitt 5bff71fea2 Follow symlinks while copying shim files
The shim EFI file on Ubuntu can be a symlink, as it may be in the alternatives system, so
previously, when calculating the size of the FAT32 partition, we would measure the size of the
symlink instead of the actual file and get "Disk full" errors when trying to copy the files into
the new FAT32 partition.

If we dereference the file on copy, we get the actual file and can calculate the size accurately.

```
lrwxrwxrwx. 1 root root   36 Jul 12 20:04 bootx64.efi -> /etc/alternatives/shimx64.efi.signed
```
2023-07-15 12:59:39 +00:00
Roland Clobus d14306a799
Set additional meta information
* The ISO volume is constructed similar to Debian 11
* The file .disk/info can be overridden
* The file .disk/info does not contain 'Official' per default
* Overrides that are required for live-setup are now explicit in
  rebuild.sh
* New .disk/generator contains tracable information to the rebuild.sh
  script
* The ISO volume is unique for each desktop environment
2023-07-15 14:01:23 +02:00
Roland Clobus 8eaf20daf1
Filter the firmware list (Closes: 1035382)
The firmware packages that do not match the requested architecture(s)
are filtered out.
2023-07-09 11:59:00 +02:00
Roland Clobus 4086f078d9
Installer: ignore the configured kernel version
When building the Debian installer from git, ignore any configured
kernel version, and use the kernel version that is present in the chroot
environment.

This fixes a build error on Trixie/testing, which occurred after a new
kernel became available when the freeze was lifted.
2023-07-08 08:01:19 +02:00
Roland Clobus 29e26d11f8 If there is more than one kernel for the installer, use the newest 2023-06-21 10:13:51 +00:00
Roland Clobus ba34bfbfd0
non-free firmware detection: in chroot, not on host
Follow-up for 18ad612b72.
The availability of 'firmware-linux' must be checked inside the chroot
instead of on the host.
This fixes building Bullseye without 'non-free' available (as discovered
by autopkgtest)
2023-06-21 09:04:08 +02:00
Thore Sommer dd916ac5be ISO generation: add support for hybrid ISOs with grub-pc 2023-06-06 18:31:51 +03:00
Roland Clobus b064f27dcb
Revert previous commit to test/rebuild.sh
Bug #1023472 got fixed by tasksel 3.73
2023-06-04 12:25:50 +02:00
Roland Clobus e38192fa70
Workaround for #1023472
This avoids having more desktop managers, only xfwm4 will be installed
in the live image.
2023-05-13 10:15:37 +02:00
Jonathan Carter d5b3a21031 Add cryptsetup-initramfs to package pool 2023-05-02 14:33:08 +02:00
Roland Clobus 7b36f5b0ad
UEFI-secure: Don't attempt to load unsigned modules
The part_*.mod modules are not inside the signed .efi-file, so they must
not be 'insmod'ed in secure boot mode.
2023-04-30 12:59:36 +02:00
Roland Clobus 2944c4652a
UEFI-secure: Use the signed font
In secure boot mode, only the unifont.pf2 is inside the signed
.efi-file. To make secure and non-secure boot identical, use only the
unifont.
2023-04-30 12:53:32 +02:00
Roland Clobus 809346bc1e
Update splash image
The font size was reduced to fully capture the long live-build version.
Exported without Inkscape information.
Manually adjusted the coordinates to use integers instead of fractional
coordinates (for sharper conversion to png).
2023-04-30 10:02:19 +02:00
Roland Clobus 7690fb206f
Share the splash screen from isolinux in grub
This adds the version information on the grub splash screen and offers
the image at 800x600 instead of 640x480, which looks less unsharp.
2023-04-30 09:15:44 +02:00
Roland Clobus 87dd4404e7
Rebuild: use the same splash screen as d-i in the boot menus 2023-03-25 14:42:55 +01:00
Roland Clobus 3044245e65
Fix detection of fonts in initrd
When (intel|amd64)-microcode is present, the structure of the ramdisk is
more complex. `lsinitramfs` can see all files.
2023-03-19 08:40:46 +01:00
Roland Clobus 8473e8a792
Renumber reproducible hooks 2023-03-19 08:27:19 +01:00
Roland Clobus 69252aef8f
Bulleye needs contrib too for the non-free packages 2023-03-14 20:28:32 +01:00
Roland Clobus 18ad612b72
Detect firmware-linux, without references for Debian versions 2023-03-14 20:28:00 +01:00
Roland Clobus 50c7e1a8b7
Add support for non-free-firmware 2023-03-12 00:16:04 +01:00
Roland Clobus efa9ed8b59
Update for Lintian warnings 2023-03-05 09:59:49 +01:00
Roland Clobus 045de9bf64
Renumber hooks and update where needed
See https://lists.debian.org/debian-live/2022/04/msg00014.html
2023-03-04 17:08:44 +01:00
Roland Clobus 27f50aef9a
Use either ${LIVE_BUILD}/share/hooks or /usr/share/live/build/hooks, not both 2023-03-04 17:08:33 +01:00
Patrice Duroux 2bd841f835 replace 2&>1 by 2>&1 2023-03-01 17:19:44 +00:00
Raphaël Hertzog 7b5fce3fa6
Fix binary_memtest for x32 -> ia32 renaming made in memtest86+ >= 6.10-3
memtest86+ switched to /boot/memtest86+ia32.{bin,efi} for 32bits to be
coherent with the usual EFI naming.
2023-02-22 08:43:20 +01:00
Luca Boccassi c8fe85038f Update changelog for 1:20230131 release 2023-01-31 16:28:45 +00:00
Roland Clobus 8c50c9c0ed installer: Mark the local repository as trusted
apt-secure will now accept the local repository and Calamares can be run
without network connections.
2023-01-31 15:27:59 +00:00
Roland Clobus 61ae406dd7 installer: add grub packages for d-i and Calamares
d-i and Calamares select the needed grub packages based on how the
computer is started (BIOS vs UEFI). Because the packages for each
variant conflict, they must be provided as .deb files.
2023-01-31 15:27:59 +00:00
Roland Clobus 947f6aafe8 installer: No error if the udeb-exclusion list is empty 2023-01-31 15:27:59 +00:00
Roland Clobus 2acfbee5fd installer: Remove the udeb files
Without the quotes, the * inside the exclusion lists will be treated as
a will card, instead of the literal star.
2023-01-31 15:27:59 +00:00
Roland Clobus 196ee7b096 installer: Skip rebuilding the debian installer if it is found in the cache 2023-01-31 15:27:59 +00:00
Roland Clobus 7e7544c446 If the same file exists in multiple locations, take the version from the
first.

The LIVE_BUILD location will only be added if LIVE_BUILD is set.
2023-01-31 15:27:59 +00:00
Roland Clobus 8dd3579278
Rebuild: Pass only a few environment variables to sub shells 2023-01-28 21:52:52 +01:00
Roland Clobus 417bb5a81f
Rebuild: allow execution by sudo-users and root 2023-01-28 18:08:13 +01:00
snip 58f7a9e379 Use same naming scheme for archive keys in chroot and binary stages
Commit 8403487d introduced in the chroot stage a naming scheme for local
archive keys which distinguishes between ASCII-armored keys and binary
ones, and then adds the appropriate extension (either `.asc` or `.gpg`,
respectively) when copying them to `/etc/apt/trusted.gpg.d`.

However, this change was not applied to the binary stage: ASCII-armored
and binary keys are still both copied with the `.asc` extension, which
introduces a discrepancy between the two stages. This, in turn,
may prevent using the same `.list` file for both stages, as entries
such as

    deb [signed-by=/etc/apt/trusted.gpg.d/my-repository.key.asc] ...

will fail in the chroot stage if `config/archives/my-repository.key`
is in binary format (as it will be copied with the `.gpg` extension),
while entries such as

    deb [signed-by=/etc/apt/trusted.gpg.d/my-repository.key.gpg] ...

will fail in the binary stage (as the key will this time be copied
with the `.asc` extension).
2023-01-05 09:52:48 +01:00
Ryan Finnie 5e01a0c09f
Memtest GRUB fixes
Previous commits to support Memtest86+ 6.00+ split the files into
"memtest" (backwards compatible / new BIOS name) and "memtest.efi"
(new EFI name).  However, the 6.00 non-EFI binaries are now
32/64-bit, and will not work with GRUB's linux16 boot when using GRUB
for BIOS boot.

- Legacy Memtest86+ pre-6.00 will continue to be "memtest", linux16
  (continue to support builds on current Debian stable bullseye)
- Change 6.00+ filename to "memtest.bin"
- GRUB memtest.cfg contains logic for legacy / new bios / new EFI
- Change EFI boot from "chainloader" to "linux", which allows for
  passing command line options to Memtest86+
- syslinux @MEMTEST@ will conditionally be memtest.bin or memtest
- @MEMTEST_BIN@ will conditionally be memtest.bin or memtest, but is
  completely legacy at this point (all internal code paths now check
  for @MEMTEST_DIR@/memtest or @MEMTEST_DIR@/memtest.bin)

Getting complicated, but this logic can be simplified again once we
no longer need to support current Debian stable.
2023-01-02 09:40:17 -08:00
Roland Clobus dcbbfed463 installer: fail early
If e.g. the required packages for the git build cannot be installed,
abort early instead of attempting to build the installer.
2022-11-14 10:38:18 +00:00
Roland Clobus 7cdb395dd9 rebuild: New option to specify the origin of the d-i binaries 2022-11-14 10:38:18 +00:00
Ryan Finnie 1d6f6dd178
memtest: Support arch-specific and EFI memtest86+ 6.00
- BIOS: Final filename doesn't change (memtest), but now uses a
  64-bit version on amd64.
- EFI: Now included as memtest.efi; 32-bit on i386, 64-bit on amd64.
  As it's GRUB-only, we can test for the existence of memtest.efi
  (6.00+ only) in GRUB itself.
- Add @MEMTEST_DIR@ to facilitate directory-based testing in GRUB.

This expands upon the previous MVP commit
15e78a3eec .
2022-10-31 21:55:14 -07:00
Ryan Finnie 15e78a3eec Fix build with memtest86+ 6.00
memtest86+ 6.00-1 (in testing as of this date) adds and changes its
available binaries:

  - /boot/memtest86+x32.bin
  - /boot/memtest86+x32.efi
  - /boot/memtest86+x64.bin
  - /boot/memtest86+x64.efi

Future live-build functionality would ideally incorporate these new
binaries (x64 for amd64 builds, efi for grub-efi), but in the meantime,
this is an MVP update which supports either old memtest86.bin or new
memtest86+x32.bin.
2022-10-31 15:19:27 +00:00
Luca Boccassi a8884af9b9 salsa-ci: drop aptly pages publishing, errors out
"jobs:pages config key may not be used with 'rules': except"
2022-10-31 15:11:49 +00:00
Ryan Finnie ec73f2bab1
chroot_hostname: Fix reference to chroot inside chroot
Fixes: d2722e8f (Fix permissions and ownership of chroot_hosts and chroot_hostname copied files)
2022-08-23 10:41:25 -07:00
Roland Clobus 10b968e891 Add more variables for the splash.svg image (Closes: 1015782)
The request asked for 5 additional variables to be resolved for the SVG
images:
Added: LB_ISO_APPLICATION, LB_ISO_PUBLISHER and LB_LINUX_PACKAGES
Not added: LB_ISO_PREPARER: xorriso recommends not changing this
variable
Not added: LB_ISO_VOLUME: is can contain '@ISOVOLUME_TS@' which resolves
to a timestamp and would need additional handling
2022-08-10 08:10:07 +00:00
Roland Clobus 6908dfd6df
Drop win32-loader for the images with an installer.
See https://lists.debian.org/debian-boot/2022/08/msg00035.html
2022-08-10 08:00:08 +02:00
Roland Clobus fe9b32e7cd
Build from deb.debian.org
For reproducibly building live-images, it turns out that the initial
build does not necessarily have to use a snapshot server.
Within a time slot of 6 hours (the interval between synchronisations of
the Debian archive) the reproducibility of a live image can be checked
by running the rebuild.sh script twice. The resulting ISO files should
be identical.
2022-07-24 21:26:08 +02:00
Nick Brown 4a0350bdaf Allow APT_AUTH.CONF(5) config files to be used with archives during bootstrap.
Currently it's only supported in the chroot/binary phases. Omitting
bootstrap was an oversight.

Note that config/archives/*.conf are assumed to be apt.conf files,
so the apt_auth files are required to end with .auth and will be renamed
to .conf when copied into the chroot.
2022-06-28 21:05:12 +01:00
Olivier BLIN d2722e8f19 Fix permissions and ownership of chroot_hosts and chroot_hostname copied files
Ensure that /etc/hosts and /etc/hostname have safe permissions and the right
ownership when copied from include directory.

Gbp-Dch: Ignore
2022-06-10 12:08:58 +02:00
Roland Clobus 5b7d86686c
Reproducible hooks: fix version check for libxmlb2 2022-06-06 11:26:02 +02:00
Roland Clobus 17cb77ab82
Removes 'nomodeset' from fail-safe boot.
After more tests on openQA, it was shown that 'nomodeset' not only for
UEFI makes the image non-bootable (see
8c65231ad1), but for BIOS as well.
2022-06-01 09:12:01 +02:00
Roland Clobus 8c65231ad1
Rebuild: Use the new settings '--debian-installer-distribution git'. 2022-05-17 08:48:44 +02:00
Roland Clobus fa8ebd2469
Introduce '--debian-installer-distribution git'.
With this 'distribution', the installer is built from its git
repository, matching the date in SOURCE_DATE_EPOCH.
Additionally the kernel version is matched to the kernel version in the
chroot (to ensure that the installer can be run).
Rationale: The 'daily' installers are not archived, and therefore cannot
be used for a reproducible build.
2022-05-17 08:48:44 +02:00
Roland Clobus 26845abebc
Create a clean chroot for the installer.
The installer stage has a clean chroot for its own usage. The chroot
from the chroot stage is available in chroot/chroot (implemented similar
to the binary stage).
2022-05-17 08:48:35 +02:00
Roland Clobus ac0cde14e6
Synchronise all --parent-distribution options.
This makes the default value of --parent-debian-installer-distribution
the same as --debian-installer-distribution, like the other
--parent-distribution-* options.
2022-05-16 11:32:36 +02:00
Luca Boccassi e04368914b Update changelog for 1:20220505 release 2022-05-05 11:14:12 +01:00
Olivier BLIN 36e019c38d Add support for the new includes.chroot system to /etc/hosts file
The new includes.chroot system implemented in !214 adds the option
to include files in the chroot before and after package installation.

chroot_hostname and chroot_resolv have been updated but not chroot_hosts.

Gbp-Dch: Short
2022-04-22 08:58:06 +00:00
Roland Clobus f1a98e4da6
Reproducible hooks: texlive-base and texlive-binaries 2022-04-21 11:16:15 +02:00
Roland Clobus 5b44eb3bf5
Remove a left-over file when using a package in config/packages.chroot. 2022-04-20 10:26:24 +02:00
Roland Clobus ba5c0c37d1
Use a shorter suffix for modified development versions.
The default --iso-preparer value will fit into 128 bytes for a git
checkout with local modifications (the longest version variant).
2022-04-20 10:25:05 +02:00
Roland Clobus 2a7bb73bf7
Check the actual length of the ISO fields. 2022-04-20 10:24:51 +02:00
Roland Clobus a9d367d406
Rebuild a reproducible ISO image.
The steps were initially published at https://wiki.debian.org/ReproducibleInstalls/LiveImages
2022-04-20 10:19:30 +02:00
Roland Clobus c2263f1748
UEFI doesn't like nomodeset in safe mode 2022-03-25 15:15:29 +01:00
Roland Clobus 66d47f32f9
Reproducible hooks: appstream and libxmlb2
appstream >= 0.15.2 uses a new cache directory
libxmlb2 >= 0.3.7 contains a fix for the reproducible issue
2022-02-24 14:56:15 +01:00
Rob Shearman 3b0d8263d2 config: respect --bootloaders option again on amd64/i386
Persist LB_BOOTLOADERS in lb_binary_* configuration, since
Init_config_data called from lb_binary_* calls Prepare_config which
then overrides LB_BOOTLOADER_BIOS and LB_BOOTLOADER_EFI if
LB_ARCHITECTURE is amd64 or i386, and these can only be restored to
their proper values by the presence of LB_BOOTLOADERS.

This therefore ensures that the value of the "--bootloaders" parameter
to lb_config is respected by the lb_binary_* steps.
2022-02-18 13:00:01 +00:00
Nick Brown f04dc6dc49 Add auth.conf.d support to archives
Allow APT_AUTH.CONF(5) config files to be used with archives.

Note that config/archives/*.conf are assumed to be apt.conf files,
so the apt_auth files are required to end with .auth and will be renamed
to .conf when copied into the chroot.

Closes: #991065
2022-02-18 10:47:45 +00:00
Nick Brown 70994cd304 Echo executing source/binary hooks
The chroot hooks already do this.
2022-02-11 10:51:39 +00:00
Roland Clobus 9ee1a1671f
Show git hash as version number, when a local git repo is used. 2022-02-10 21:46:27 +01:00
Philip Hands d9fcae7dd8
get the aptly/pages stage to work 2022-02-07 15:02:26 +01:00
Roland Clobus 0fe681c10c
Reproducible hooks: fontconfig got fixed in 2.13.1-4.4.
Do not activate the hook if fontconfig is sufficiently new.
2022-01-31 11:40:57 +01:00
Michał Prochera e420c83e4c Unconditional Remove_packages calls in binary_rootfs (Closes: #994982)
That prevents potential errors during future Remove_packages calls without APT indices available. In such cases, APT tries to remove packages with unrecognized names, which results in an error and fails the script execution. An example of this would be installing apt-utils in chroot_archives with --apt-indices option set to false.
2022-01-26 17:55:42 +00:00
Sophie Brun b9b32ad41f
Harmonize menu entries (uefi / bios) and add a variable for the templates 2022-01-26 11:13:30 +01:00
Roland Clobus 43ef78bb34
Reproducible hooks: Regenerate initrd.img in chroot_hacks only when chroot_hooks did not regenerate it already.
Hook 1003 is replaced by 8000, which is more generic and does not need
to modify original files.
2022-01-26 08:14:26 +01:00
Roland Clobus 5a08cc71a0
Add hook for libxmlb2 (used by appstream)
Caused by appstreamcli refresh-cache in package appstream (the
apt-conf/50appstream file)
Fixed upstream in libxmlb in 0652ec042c
2022-01-24 12:28:12 +01:00
Roland Clobus a599f50e48
Add hooks for building reproducible images 2022-01-24 12:28:08 +01:00
Roland Clobus 0183c73aba
Set the timestamp inside hdd images.
Similar to iso images, the timestamp of a file/folder inside the binary
image cannot be newer than SOURCE_DATE_EPOCH.
Also set the timestamp of the hdd image.
2022-01-22 18:16:58 +01:00
Roland Clobus 62f3d7bf55
Set the timestamp of the generated iso image. 2022-01-22 18:16:54 +01:00
Roland Clobus 2e5e565367
When update-initramfs is called, clean up the backup files.
This removes the unnecessary vmlinuz.old and initrd.img.old files in the
root folder of the generated image.
2022-01-22 17:58:09 +01:00
Roland Clobus fd1505414b
Clean up the cache directory, if no files are present.
The folder 'cache/contents.chroot' in the build directory can be removed
if no firmware is installed.
2022-01-22 17:56:39 +01:00
Roland Clobus cb912308c7
Bugfix: The values for '--cache-stages' were not matching the implementation. 2022-01-22 17:56:29 +01:00
Roland Clobus 06ee64b16a
Reactivate '--chroot-filesystem plain'.
This previously undocumented value for '--chroot-filesystem' creates the
uncompressed folder 'live/filesystem.dir'.
This will speed up the generation of live images a lot, because the
squashfs compression is skipped.

Example command line:
  lb config -b hdd --chroot-filesystem plain --binary-filesystem ext4
2022-01-22 17:53:38 +01:00
Roland Clobus 2bfdb3cb44
Bugfix: The arguments to the 'tr' command must be quoted. 2022-01-08 13:39:48 +01:00
Roland Clobus eed8d293b1
Bugfix: Do not copy the content of e.g. /dev/shm when creating hdd
images

Discovered when building with '--binary-image hdd' on /dev/shm
2022-01-08 10:33:55 +01:00
Roland Clobus 8f763ee8b1
Bugfix: Add missing package when systemd is active
The package might be missing when building with a minimal configuration,
as recommended in the Live Manual, the example 'Base image' scenario:
'lb config --apt-recommends false --debootstrap-options "--variant=minbase"'
2022-01-08 10:27:50 +01:00
Roland Clobus 63399dab6e
Use the release date from the changelog as the date for the last modification of each manpage 2022-01-07 10:13:52 +01:00
Roland Clobus d7316bcec9
Remove generated translation files
These files are regenerated by 'make rebuild'
2022-01-07 10:13:52 +01:00
Roland Clobus dbb5e6143d
Add file with translatable text (lb_installer.1.pot) 2022-01-07 10:13:24 +01:00
Roland Clobus a7ce0710d4
Mark the phony targets in the Makefile 2022-01-07 10:12:28 +01:00
Roland Clobus bf0349c38e
Fix Lintian warning about malformed NEWS file 2022-01-07 10:12:26 +01:00
Roland Clobus 7185058425
Adding symlink for udeb data for bookworm 2021-12-03 19:57:33 +01:00
Ryan Finnie 7944adc6a5
Fix missing variable quoting in proxy handling
Fixes:
[2021-11-14 11:08:03] lb config noauto --apt-http-proxy http://proxy.example.com:8000
scripts/build/config: 868: local: Acquire::http::Proxy-Auto-Detect: bad variable name
2021-11-14 11:12:25 -08:00
Ryan Finnie 5da4ff53be
Add initial riscv64 support
Notes:
- No bootloader is configured; images must be booted via direct kernel
  - Tested via qemu + opensbi fw_jump.elf + kernel/initrd
- As riscv64 is currently in ports, the following options are required:
    --distribution unstable
    --mirror-bootstrap http://ftp.ports.debian.org/debian-ports/
    --security false
    --debootstrap-options --keyring=/usr/share/keyrings/debian-ports-archive-keyring.gpg
- Normally ports require stacking two dists, unstable and unreleased.
  debootstrap does not support doing this, but as of this writing, there
  is nothing in riscv64 unreleased which is required to bootstrap.
  However, this would not have been possible a year ago.
2021-11-14 09:22:41 -08:00
Roland Clobus bcc4ab97c6
Code coverage test (for the proxy) 2021-09-23 13:53:53 +02:00
Roland Clobus d6a5a1f3cf
Simpler handling of http proxies
There are two main scenarios:
1) The host with live-build is configured to use a proxy
   This proxy will automatically be used by live-build
2) The user of live-build explicitly specifies a proxy
2A) With the environment variable 'http_proxy' (preferred)
2B) With the command line option --apt-http-proxy

Any inconsistency in the setting of a proxy results in an error message of 'lb config'
All internal tools (apt/apt-get/aptitude, wget and debootstrap) use the environment variables 'http_proxy' and 'no_proxy', which are passed along to the chroot where needed.

Test scenario:
- A virtual machine with all out-going traffic blocked, except for the proxy.
2021-09-23 13:53:49 +02:00
Luca Boccassi da16d81ed3 Merge commit 'e93e2b4b9dde3059935daa61cabeab663fc0838b'
Latest PR was automerged before latest changelog commits were
pushed, moving tree back in sync
2021-09-15 12:25:01 +01:00
Roland Clobus 7264a752bb
The support for FTP proxies has ended 2021-09-08 13:40:53 +02:00
Luca Boccassi e93e2b4b9d Update changelog for 1:20210902 release 2021-09-02 13:56:07 +01:00
Luca Boccassi 6fec0e45c4 Bump Standards-Version to 4.6.0, no changes 2021-09-02 13:54:28 +01:00
Luca Boccassi 012377e261 Bump debhelper-compat to 13, no changes 2021-09-02 13:54:16 +01:00
Nick Brown df79eeafaf Export variables for hooks
MR !173 removed the export of several variables moving/renaming them.
Continue to export both the new name and older compatibility name.

Closes: #992572
2021-08-24 20:14:03 +01:00
David Hewitt bd2a0e971b
binary_grub-efi: Allow removal of protected packages 2021-08-04 16:02:06 +01:00
Thore Sommer 1cd901cfa2 Enable dm-verity support also for ext filesystems
Those need a block size of 4k to work.
2021-07-19 11:52:09 +02:00
Thore Sommer e02e2df4b9 docs: documentation for dm-verity feature 2021-07-11 10:33:56 +02:00
Thore Sommer 0f53b8ed20 Adding dm-verity support for rootfs
This adds support for dm-vertiy on the root filesystem.
Currently only squashfs is supported.

Three new flags are introduced.
 * --dm-verity: Enable basic dm-verity support
 * --dm-verity-fec NB_ROOTS: Enable forward error correction. Optional
 * --dm-verity-sign SCRIPT: Specify signing script for the root hash. Optional
2021-07-11 10:33:48 +02:00
Luca Boccassi 873b2d4d73 Update changelog for 1:20210407 release 2021-04-07 18:53:28 +01:00
Luca Boccassi 5e15d0b0b0 Update changelog for 1:20210405 release 2021-04-05 13:04:26 +01:00
Luca Boccassi e51ea0ae92 Autopkgtest: remove architecture restriction
Let's see if everything works now.
2021-04-02 19:02:55 +01:00
Luca Boccassi 43afff005a Autopkgtest: build a stable image 2021-04-02 19:02:55 +01:00
Luca Boccassi 93ab49f927 Firmware download: skip architecture if not found
Contents-all.gz does not seem to exist on Buster, so don't fail if
wget doesn't find the file.

Closes: #986278
2021-04-02 16:57:33 +01:00
Luca Boccassi 57f2cc1cd6 Update changelog for 1:20210330 release 2021-03-30 16:18:31 +01:00
Luca Boccassi 305a145282 security: do not append /updates from bullseye onward
No longer required.

Closes: #986148
2021-03-30 15:30:32 +01:00
Luca Boccassi 80711a7542 Fix typo in changelog
E: live-build: possible-missing-colon-in-closes

Gbp-Dch: ignore
2021-03-29 18:37:29 +01:00
Luca Boccassi d17a64ad74 Update changelog for 1:20210329 release 2021-03-29 10:52:31 +01:00
Luca Boccassi 4735da6f52 Add NEWS entry to notify about filesystemd.size removal 2021-03-29 10:52:31 +01:00
Roland Clobus 3cc60e4f64 Removed filesystem.size for squashfs images.
See for more details https://lists.debian.org/debian-live/2021/03/msg00008.html
2021-03-29 09:08:35 +00:00
Roland Clobus 745b2be876
Fixed handling of checksums in combination with the d-i installer.
1) lb config rejected multiple checksum types
2) When using the installer, cdrom-checker requires a md5 checksum file,
   use 'Check the integrity of the installation media' in the installer
3) The comments in the first lines of the checksum files caused
   cdrom-checker to fail the integrity of the image
2021-03-21 12:32:54 +01:00
Roland Clobus 9524705c34
Support security for bullseye. See https://wiki.debian.org/NewInBullseye. Closes #964914 2021-03-11 12:55:44 +01:00
Unit 193 21eff20ea3 firmwarelists.sh: Search Contents-all for firmware too. 2021-02-22 20:25:55 -05:00
Ryan Finnie 8a8e11e5d1 No mksquashfs progress bar if stdin is not a terminal
Explicitly documented updated conditional, as "-t" is not a
commonly seen shell test.
2021-02-18 08:48:27 +00:00
Ryan Finnie a0400b2499
Use --apt-http-proxy/--apt-ftp-proxy for debootstrap 2021-02-17 22:02:47 -08:00
Luca Boccassi 965d75053d Update changelog for 1:20210216 release 2021-02-16 21:25:49 +00:00
Roland Clobus 2c7c90487a
mkfs.msdos needs at most 32 bits for the -i argument.
Use the hexadecimal version of SOURCE_DATE_EPOCH, limited to the lower 32 bits
2021-02-16 21:22:12 +01:00
Luca Boccassi d7b2d55c8f autopkgtest: restrict to amd64 and i386 for now
After Bullseye we can re-enable other architectures, but for now
disable them so that we can get bug fixes in Bullseye.
2021-02-16 18:47:21 +00:00
Luca Boccassi b968e2c0f7 Fix build on architecture without syslinux
Don't run xorriso with -isohybrid-mbr if LB_BOOTLOADER_BIOS is
not set to syslinux

Closes: #982746
2021-02-14 21:38:19 +00:00
Roland Clobus b13c4b1583
Adding symlink for udeb data for bullseye 2021-02-10 22:14:36 +01:00
Roland Clobus a37cbcb574
lilo is not available any more in Bullseye (and newer), see #973850 2021-02-10 21:47:22 +01:00
Roland Clobus c9cf409e83
The local LIVE_BUILD wins over the system live-build for the list of udeb exclusions 2021-02-10 21:47:22 +01:00
Roland Clobus 01dc99e528
The local LIVE_BUILD wins over the system live-build for the list of udeb inclusions. Only copy when the distribution is known 2021-02-10 21:47:20 +01:00
Ryan Finnie d6b7a54831
Restore_package_cache: Handle existing but empty packages directory 2021-02-04 12:37:46 -08:00
Ryan Finnie 5c838744d6
binary_syslinux: Do not modify grub theme.txt if grub/splash.png exists
If grub/splash.png exists, assume the configuration editor intends
to have a grub-specific splash.png, and do not modify theme.txt.
But if syslinux has the only known splash.png, use it for both
syslinux and grub.

(This allows for a hybrid image where the grub side can have e.g. a
16:9 1920x1080 splash.png which gets grub is capable of automatically
scaling, while the syslinux side has a 640x480 splash.png which
effectively must be this fixed size.)
2021-01-30 21:58:09 -08:00
Roland Clobus dc1a03d053
Reproducible fix for glibc 2021-01-23 21:26:09 +01:00
Raphaël Hertzog 259fd73558
Add symlinks to support kali releases 2021-01-22 22:30:54 +01:00
Raphaël Hertzog 903579e741
Bump Standards-Version to 4.5.1
Gbp-Dch: Ignore
2021-01-22 17:59:41 +01:00
Raphaël Hertzog 94b5541e14
Update changelog 2021-01-22 17:58:14 +01:00
Raphaël Hertzog ce033fed19
Get rid of deprecated needs-recommends feature
Instead embed the recommended packages in the Depends field following
the advice from autopkgtest maintainers (and the nagging from lintian).
2021-01-22 17:55:59 +01:00
Raphaël Hertzog 0f799a634e
Update lintian override
Gbp-Dch: Ignore
2021-01-22 17:07:54 +01:00
Raphaël Hertzog 36f5cd96fa
Update changelog for 1:20210122 release 2021-01-22 16:25:16 +01:00
Raphaël Hertzog 4111df43bd
Fix a small info message 2021-01-21 08:28:38 +01:00
Steev Klimaszewski 113d159b0b Add arm64 udeb include files
Signed-off-by: Steev Klimaszewski <steev@kali.org>
2021-01-20 10:28:33 -06:00
Roland Clobus d145b0c9ec Bugfix: do not create /dev/lock and /dev/lock-frontend 2021-01-17 14:06:11 +00:00
Marcel Partap fdcdab72dc binary_rootfs stage: slightly lower mksquashfs nice levels (19 -> 17)
.. so its priority is low, but above BOINC grid computing (19).
2021-01-16 17:14:17 +01:00
Marcel Partap 0252065950 binary_rootfs stage: disable mksquashfs progress bar only in quiet mode 2021-01-16 17:09:52 +01:00
Marcel Partap 63c1a5997d binary_rootfs stage: give custom MKSQUASHFS_OPTIONS precedence
courtesy of
sed -i -r '/MKSQUASHFS_OPTIONS/ s/"(\$\{.*\}) ([^"]+)"/"\2 \1"/' scripts/build/binary_rootfs
2021-01-15 22:32:14 +01:00
Roland Clobus 91e1e65c87 Apply SOURCE_DATE_EPOCH to newly generated files and create a log 2021-01-15 09:22:29 +00:00
Roland Clobus 5636820be5 Set timestamp in embedded files of the installer 2021-01-15 09:22:29 +00:00
Roland Clobus 15fab34ea2 Set timestamp embedded in EFI files 2021-01-15 09:22:29 +00:00
Roland Clobus 2b0559fd11 Use SOURCE_DATE_EPOCH for the partition-id of /boot/grub/efi.img 2021-01-15 09:22:29 +00:00
Roland Clobus 760684b1e2 Use SOURCE_DATE_EPOCH for the partition-id of /efi.img 2021-01-15 09:22:29 +00:00
Roland Clobus 9712c46cff Use SOURCE_DATE_EPOCH for 'now' in .disk/info 2021-01-15 09:22:29 +00:00
Roland Clobus 0202f17cad Use SOURCE_DATE_EPOCH for 'now' in the boot splash image 2021-01-15 09:22:29 +00:00
Roland Clobus 9d24051669 SOURCE_DATE_EPOCH is always set 2021-01-15 09:22:29 +00:00
Roland Clobus 95cd662f4e Ensure that SOURCE_DATE_EPOCH is always set in all sub scripts.
When SOURCE_DATE_EPOCH was already set before 'lb config', also enable
UTC timestamps.
2021-01-15 09:22:29 +00:00
Jan Kot 4d7c8c35e3 exit.sh: fix selinux mountpoint 2021-01-14 01:44:30 +01:00
Jan Kot 96fe9e7ca9 packages.sh: check for /etc/debian_version existance rather than dpkg-query aviability 2021-01-13 12:39:07 +00:00
Jan Kot 954d9c7c31 bootstrap_debootstrap: change debootstrap path to /usr/sbin/debootstrap
As we're checking if debootstrap is present on the host machine, we should look for it in /usr/sbin and not ./bin
2021-01-13 12:39:07 +00:00
Roland Clobus 576b4a70ae Add new manpage to the list of translatable files 2021-01-13 10:48:51 +00:00
Raphaël Hertzog 7ff772f298
Update changelog 2021-01-12 15:15:38 +01:00
Raphaël Hertzog e050d4c994 Update renamed lintian tag names in lintian overrides.
Changes-By: lintian-brush
Fixes: lintian: renamed-tag
See-also: https://lintian.debian.org/tags/renamed-tag.html
2021-01-12 14:53:48 +01:00
Raphaël Hertzog f13273368a
Don't fail if one of the package lists expands to an empty list
When a package lists contains only packages protected by a test
that doesn't match for the current run, then Expand_package_list
outputs nothing and the following "grep -v" fails because it
has not filtered anything. Avoid this by protecting the "grep -v"
call with "|| true".
2021-01-12 14:48:27 +01:00
Roland Clobus 831da55c01
Preserve timestamps 2021-01-11 14:34:11 +01:00
Unit 193 f943fa9209 Add 'unstable' as a valid distribution and link to sid. 2021-01-08 04:32:01 -05:00
Ryan Finnie b8279ed4a1
Bugfix: Fix grub.cfg pc/ENABLE_MEMTEST check
Grub [ uses "-a", not "&&".
2021-01-01 22:54:47 -08:00
Roland Clobus 037e93fe37 Preserve timestamps 2021-01-01 16:51:02 +00:00
Roland Clobus 3f7dd00fcb Delay resolving the timestamp for the ISO volume to the moment the ISO-image is created 2020-12-13 20:33:24 +00:00
Roland Clobus fac389a51b
A second invocation of 'lb config' will result in an identical settings file 2020-12-13 19:23:20 +01:00
Roland Clobus edb12253eb
Bugfix: use minutes instead of month in the time of the modification date field 2020-12-13 11:11:55 +01:00
Roland Clobus 4eae44d13d
Bugfix: use minutes instead of month in the time of the modification date field 2020-12-07 08:36:42 +01:00
Matthijs Kooijman e772dfd6d2 binary_iso: Execute mkdir binary/.disk before writing to it
Before commit 9f3e5fe8d (Fix the way the .disk/mkisofs file is created)
all these commands (`mkdir`, write to `binary/.disk/mkisofs` and
`xorriso`) were in the same `binary.sh` script. Since that commit, the
write was extracted, to prevent issues with quoting, but the related
mkdir was left in `binary.sh`. This means that the write is now executed
first, and the `mkdir` only afterwards, making the `mkdir` quite pointless.

In practice, this did not break becaue binary_disk also does the same
`mkdir` and runs before `binary_iso`, but if one runs commands manually
and skips `binary_iso`, then this does break.

Even though this is not really a supported usecase, just move the mkdir
outside of `binary.sh`, so it runs *before* the write again as intended.
2020-11-24 12:24:14 +01:00
Roland Clobus c4b239caf5 Bugfix: Live installer can run without LB_CACHE_PACKAGES 2020-11-18 16:37:43 +00:00
Roland Clobus 6e4e10f071 Bugfix: LB_DERIVATIVE was used the wrong way around 2020-11-18 17:11:59 +01:00
Thore Sommer 7360d50fa6 Added the option to include files before and after package installation
Moved includes.chroot to includes.chroot_after_packages and added
includes.chroot_before_packages. includes.chroot does still work as before.

We also now use rsync for copying files if it is installed.
This improves runtime and space consumption for large includes.

Gbp-Dch: Short
Closes: #927128
2020-10-27 15:07:11 +00:00
Thore Sommer 7b19209aae Option for using systemd-nspawn instead of chroot for hooks.
Installation of flatpaks doesn't work with normal chroots.
This patch enables support for using systemd-nspawn in hooks.

Gbp-Dch: Short
Closes: #965953
2020-10-12 18:26:16 +00:00
Luca Boccassi 59380dddf0 Autopkgtest: disable updates/security repositories, not available for Bullseye 2020-10-12 16:13:59 +01:00
Thore Sommer 9a26533a06 Add option to change compression algorithm and level for squashfs. 2020-10-12 13:35:16 +00:00
Marcel Partap ce39f3e507 For 32bit UEFI secure boot, the package name is grub-efi-ia32-signed
avoids spitting out warning
> [2020-06-07 22:30:32] lb binary_grub-efi
> P: Begin preparing Grub based EFI support...
> Reading package lists...
> Building dependency tree...
> Reading state information...
> Package grub-efi-amd64-signed is not available, but is referred to by another package.
> This may mean that the package is missing, has been obsoleted, or
> is only available from another source
>
> E: Package 'grub-efi-amd64-signed' has no installation candidate
> W: UEFI Secure Boot disabled due to missing signed Grub/Shim.
2020-10-12 12:41:58 +00:00
Ryan Finnie 169645b478 grub-efi: Show fwsetup, do not show incompatible memtest even if enabled 2020-10-12 11:34:52 +00:00
Roland Clobus 9536a37af0 The sed -e ‘d’ commands with ‘#’ will not work, a slash is needed, fix for 7ffd2288d9 (2015-01-15) and 578dbee516 (2015-01-29) 2020-10-08 19:21:33 +00:00
Raphaël Hertzog f323c93b73 Update renamed lintian tag names in lintian overrides.
Changes-By: lintian-brush
Fixes: lintian: renamed-tag
See-also: https://lintian.debian.org/tags/renamed-tag.html
2020-09-25 12:04:05 +02:00
Raphaël Hertzog 4977733e98
Document our autopkgtest tests as needing internet access 2020-09-25 11:49:13 +02:00
Raphaël Hertzog c3968cf1c6
Use truncate --no-create --size=0 to truncate files
This avoids the permission error due to /proc/sys/fs/protected_regular = 2
setting which is now enabled by default in bullseye.
2020-09-25 11:49:03 +02:00
Raphaël Hertzog d2bc6e278d
Another try to fix the CI 2020-09-25 11:40:06 +02:00
Raphaël Hertzog 9ebddbe9f7
Use bullseye as default release in preparation of the next stable release 2020-09-25 11:32:34 +02:00
Raphaël Hertzog e1c3990648
Try to fix CI to cope with latest salsa-ci changes 2020-09-25 11:28:39 +02:00
Raphaël Hertzog b14a9e5c79
Tell APT to retry downloads a few times before giving up
We want to be resilient to small network hiccups and when you download
a large number of packages, the probability of a network hiccup are
increasing... as are the chances of hitting one of the apt bugs
(cf "Undetermined error"...).
2020-09-25 11:08:40 +02:00
Victor Gavro 990dcf2eed chroot_apt: fixed adding Pin-Priority (broken in da1fab11)
Fixes !201
2020-09-14 11:02:51 +02:00
Ryan Finnie 56186add3c
architectures.sh: armhf/armel can be built on arm64 2020-06-01 07:49:56 -07:00
Ryan Finnie 6b0cc5529b Enable arm64 for binary_grub_cfg
Without modification, this produces a usable config for arm64
grub-efi iso-hybrid. Tested on qemu arm64 + serial console.
2020-06-01 08:02:28 +00:00
Ryan Finnie 13cf0e9ebe
Add initial ppc64el support
Note that this does not include grub-ieee1275 support so the images will
not be bootable, but it's a first step and produces ISOs without error.
2020-05-30 14:11:45 -07:00
Lyndon Brown 263f84fe80 clean: handle all common options
support for options like `--debug` was missing.

Gbp-Dch: Short
2020-05-15 19:36:51 +00:00
Lyndon Brown fca1283147 clean: refactor
this simplifies things to avoid the messy recursion.

it is also a necessary step to implementing handling of common options
like --debug. we need to process all options to decide how to approach
doing things (e.g. with debug messages to be output or not) before actually
performing any work, in order for options like --debug to be reacted to
properly.

also, as things were, options like `--debug` were not being passed along
in the recursive executions, while now that is no longer an issue.

the order of file/folder deletions for `--all`|`--purge`|`--remove`
actions is slightly changed here, but i don't see any issue with that and
it's cleaner to not preserve that.

Gbp-Dch: Short
2020-05-15 19:36:51 +00:00
Lyndon Brown 0afd3625ed bootloaders: reorganise installer menu entries
per layout from MR #199 discussion.

under "Advanced install options" we have:
  - Graphical installer
  - Text installer
  - Graphical installer with dark theme
  - Text installer with dark theme
  - Installer with speech synthesis

under each of these we have a set of:
  - Install
  - Expert install
  - Automated install
  - Rescue mode

note that the 'automated' entries are moved up before the 'rescue' entries.

for hotkeys, the four entries above have hotkeys of 'i', 'x', 'a', and 'r'
respectively. ('x' is used instead of 'e' to avoid clash with standard
grub hotkey). this means that some entries that previous had no hotkeys
due to the flat list now have them. the other big difference is the main
graphical install entry going from 'g' to 'i' for consistency and the main
speech synth entry going from 's' to 'i' for the same reason.

furthermore, in the level above we have 'g' for normal graphical, 't' for
normal text install, 's' for speech synth, 'd' for graphical dark mode,
and 'k' for text dark mode.

the text-only sets are identical to the graphical ones except only for
dropping the graphical groups, simplifying maintenance, bringing clarity
to users of images (who may not have even made the image) that the set is
text-only, and keeping consistent hotkeys between graphical and text-only.

a 'start installer with speech synthesis' entry shortcut has been placed
at the top menu level alongside the 'start installer' shortcut.

Gbp-Dch: Short
2020-05-15 19:35:09 +00:00
Lyndon Brown ab2e8a91f5 bootloaders: add accessible dark contrast installer menu options
following official install discs.

i've not bothered to update grub-legacy this time.

Gbp-Dch: Short
2020-05-15 19:35:09 +00:00
Lyndon Brown 9b2564a3ff bootloaders: add advanced speech synth install entries
following the presence of them in the official install discs.

also drops unnecessary word "graphical" from existing speech
synth entry, following official Debian install discs.

i've not bothered to update grub-legacy this time.

Gbp-Dch: Short
2020-05-15 19:35:09 +00:00
Lyndon Brown 180207d711 Revert "config: catch and report unexpected arguments"
This reverts commit 665372c19d.

the kali test failed due to their script using a hack of passing along a
custom option after an early terminator through to their auto/config file.
the change implemented here was valuable, but i'll have to look into
revising things to work with what Kali is doing.

Gbp-Dch: Ignore
2020-05-05 21:57:57 +01:00
Lyndon Brown 18eefdd6f3 s/Remove_package/Remove_packages/
it removes one or more, so should be plural for clarity

Gbp-Dch: Short
2020-05-05 19:55:28 +01:00
Lyndon Brown 919a464b64 s/Install_package/Install_packages/
it installs one or more, so should be plural for clarity

Gbp-Dch: Short
2020-05-05 19:55:28 +01:00
Lyndon Brown 9c8d26c97f packages: avoid unnecessary nesting
Gbp-Dch: Ignore
2020-05-05 19:55:28 +01:00
Lyndon Brown f27d13de08 make temporary state of installed tools recoverable
some scripts temporarily install packages to accomplish some work before
then removing them. the list of packages installed is kept in memory in a
variable.

a weakness of this design is that if a failure occurs or the user cancels,
and then following this the user re-runs `lb build`, letting it try to
pick up and recover from where it left off, that list of packages that had
been installed is lost, resulting in those packages that were installed
then being a permanent part of the chroot.

here we fix this weakness by backing up the list to a file, which is always
read from on removal. thus in a recovery situation, any packages still
installed from a situation like that just described, will be removed upon
the next use of `Remove_package()`.

this is not perfect, since we are having to wait for opportunistic
execution of the remove function. we need to find a suitable place for the
`Cleanup_temp_packages()` function to be used.

 - doing so in `Init_config_data()` would not be suitable because we don't
   hold the lock when that's run, even if we ignored the hijacking of that
   function for taking such action...
 - doing it in `Exit()` doesn't seem a good fit either.
 - putting it explicitly in every build script just seems a little messy...

perhaps a local exit trap like for removing the lock...?

note that `binary_rootfs` skips running the remove function after installing
tooling, since it just throws the wrapper chroot away, which then leaves the
file around with stale data for the next remove instance to pick up, which
then does not actually remove it because it's not installed. this is not
ideal either... perhaps the optimisation should be removed from that script?

Gbp-Dch: Short
2020-05-05 19:43:15 +01:00
Lyndon Brown a065e60043 manpages: clarify UTC timestamps wrt. build log
Gbp-Dch: Ignore
2020-05-05 19:04:35 +01:00
Lyndon Brown 665372c19d config: catch and report unexpected arguments
after handling arguments, catch and report any remaining "non-option"
arguments.

for instance users could make the basic mistake of using
`lb config --bootloaders syslinux grub-efi`, i.e. failing to quote the
multiple bootloaders (i actually encountered a user doing this who swore
that "it just worked"). catching and reporting such mistakes could be
valuable to users.

previous behaviour:
```
$ lb config --bootloaders syslinux grub-efi
P: Updating config tree for a debian/buster/amd64 system
P: Symlinking hooks...
```

new behaviour:
```
$ lb config --bootloaders syslinux grub-efi
[2020-05-05 18:56:07] lb config --bootloaders syslinux grub-efi
E: Unexpected argument found: grub-efi
```

Gbp-Dch: Short
2020-05-05 19:02:35 +01:00
Lyndon Brown d68290058e debootstrap: fix wrong param for Check_package call
debootstrap must obviously exist in the host. we thus must pass 'host'
not 'chroot' such that a warning about needing to install it on your host
system is output, rather than it being added to a list of packages to be
installed, which never occurs in this script.

Gbp-Dch: Ignore
2020-05-05 00:52:13 +01:00
Lyndon Brown 7cf7f74bc0 arches: fix Check_crossarchitectures param passing
Gbp-Dch: Ignore
2020-05-04 23:22:10 +01:00
Lyndon Brown 8a1bbe0841 arches: tidy
Gbp-Dch: Ignore
2020-05-04 23:22:10 +01:00
Lyndon Brown 08c86dc8ac arches: fix some Check_architectures() mess
- the comparison with LB_ARCHITECTURE seems to be based upon an old idea
   of it potentially being intended in the past to hold more than one
   arch (when it's name as also plural), but it in fact only holds one.
 - similarly LB_BOOTSTRAP_QEMU_ARCHITECTURE is singular, so the comparison
   with the set of params is bad.
 - storing $@ in a variable before then looping is not a good idea
 - script name was not being passed to the warnings
 - can simplify by just returning in the valid case

i'm very suspicious about the correctness of the qemu bits, but that
can wait for now.

Gbp-Dch: Short
2020-05-04 23:21:44 +01:00
Lyndon Brown a542d52141 rename binary_loopback_cfg to binary_grub_cfg
when loopback support was introduced, it initially duplicated the code
for generating a grub2 config, before the duplicated code was removed from
the grub-pc script, effectively thus moving grub config generation to the
loopback feature script.

grub-efi support was added after this.

this results in a misleading filename, since the `binary_loopback_cfg`
script is essential for use of grub-pc|grub-efi, and actually only has a
single line of code on top that's needed for adding actual loopback
support on top. (when grub-pc and grub-efi are not used, the entire script
is still needed for loopback support to work).

so here we rename it to make better sense, and correct/clarify bits of
documentation.

Gbp-Dch: Short
2020-05-04 22:15:09 +01:00
Lyndon Brown 3a523c3fc1 binary_iso: properly handle multiple bootloaders
with LB_BOOTLOADER_BIOS and LB_BOOTLOADER_EFI introduced, we can simplify
and correct things here.

previously it was possible for more than one of each type to be added.

Gbp-Dch: Short
2020-05-04 21:48:03 +01:00
Lyndon Brown d7883ec32b config: improve BIOS/EFI bootloader selection handling
the design choice from when EFI support was introduced was to change
`--bootloader` to `--bootloaders`, with users specifying their selection
of BIOS and EFI bootloaders together. at this time there were not even any
decent validation checks being performed, and invalid combinations could
cause some chaos.

since then proper validation was put in place, including checking that
only a single instance of each of BIOS and EFI bootloaders exists in the
selection.

here we tweak things such that we stick with the same option, but we split
the selection up such that we store the BIOS and EFI selections separately
within the saved config file, and offer it up to scripts to help simplify
those scripts.

we must however retain support for splitting from the combined option,
both because we still use it in the combined option, and for backwards
compatibility with older saved configs.

Gbp-Dch: Short
2020-05-04 21:40:13 +01:00
Lyndon Brown 3f840aeeba fully validate BIOS/EFI bootloader combinations
thus far, config bootloader validation only did the basic check that each
bootloader specified was a known and supported bootloader, it did not check
combinations.

it now checks combinations, and strips out the previous "bootloader role"
stuff.

the no-bootloaders warning is duplicated, covering two slightly different
situations (empty string, and whitespace string). this is anticipated to
be just temporary, with this just being the first step in better handling
bootloader selections.

Gbp-Dch: Short
2020-05-04 21:40:13 +01:00
Lyndon Brown f3a818da9a binary_hdd: remove incorrect local scope
the "FIXME" function wrapper is just to temporarily disable the code.

Gbp-Dch: Ignore
2020-05-04 21:40:08 +01:00
Lyndon Brown 976be9f44b indentation fix
Gbp-Dch: Ignore
2020-05-04 17:40:23 +01:00
Lyndon Brown 7ad96bd644 fix redundant and incorrect source selections
"grub" presumably was what is now called "grub-legacy"

removed both because there is already a proper piece of code adding
bootloader packages.

Gbp-Dch: Ignore
2020-05-04 17:38:53 +01:00
Lyndon Brown cb2d9a0fe4 fix another overlooked "grub" -> "grub-legacy" instance
Gbp-Dch: Ignore
2020-05-04 17:37:14 +01:00
Lyndon Brown 9d7393bbdb config: add note
The core purpose of `Prepare_config()` is to prepare the config by setting
defaults where not specified. It should not be involved itself in
validation of user options.

This can be an important distinction, for instance in `clean` where we
use this function, but avoid validation to potentially allow for an option
that deletes the config, that should work even in the face of an invalid
config.

Gbp-Dch: Ignore
2020-05-04 16:16:00 +01:00
Lyndon Brown 89ed6a54a1 config: fix inadequate validation check
Gbp-Dch: Ignore
2020-05-04 14:39:55 +01:00
Lyndon Brown 943c8fb5fe extend config validation to all build components
while `lb build` ran the config validation check, spotting invalid configs
and stopping with an error, the major build stages if executed directly did
not, nor did the component stages.

here we move execution of the validation function into the common init
function, with an exported variable used to indicate that validation has
been performed. thus validation is performed no matter what part of the
build system you execute, but only once.

Gbp-Dch: Short
2020-05-04 13:26:19 +01:00
Lyndon Brown 7acd1f488f get rid of a couple of useless variables
Gbp-Dch: Ignore
2020-05-04 13:21:12 +01:00
Lyndon Brown 76459a39cd clean: tweak init
`Init_config_data` is more suited to build scripts than here. note that
it's not used in `config` either. this deliberately does not pass along
arguments to it because `Arguments()` can only handle the basic common
options, not the `clean` set. this is somewhat confusing and causes a
pointless execution of `getopt`. furthermore the function is expanding
slightly further beyond it's original scope, with yet more change coming
that's unsuitable for `clean`, so it makes sense to avoid using the
function here just for the couple of function calls needed.

validation of the config is disabled, as it is not performed currently.
it is not clear if it should be enabled or not for `clean`. it may be
useful to not validate, if we wish to be able to provide users with an
option to be able to delete the config.

Gbp-Dch: Ignore
2020-05-04 13:14:57 +01:00
Lyndon Brown 21c697617d bootloaders: add timezone to splash timestamp 2020-05-03 23:20:39 +01:00
Lyndon Brown 9bc35759aa config: fix stale live-build version in iso-preparer
using `$VERSION` as part of the default `$LB_ISO_PREPARER` means that when
you simply run `lb config` once, this variable is stored as a part of the
string, and replaced on use, but if you run `lb config` twice, it gets
replaced with a fixed version, that is then used in all subsequent builds.

let's replace with a placeholder (`@LB_VERSION@`) that can be used both in
the default, or in user strings, and will be replaced on use only.

this means that subsequent builds will always reflect the actual version
of live-build used.

Gbp-Dch: Ignore
2020-05-03 23:20:39 +01:00
Lyndon Brown 26a89a45e5 disk_info: obey new UTC timestamp control 2020-05-03 23:20:39 +01:00
Lyndon Brown ebf4b04b7f source_disk: de-duplicate date construction
Gbp-Dch: Ignore
2020-05-03 23:20:39 +01:00
Lyndon Brown 558942eccb syslinux: obey new UTC timestamp control 2020-05-03 23:20:39 +01:00
Lyndon Brown 31cc121c3d config: obey new UTC timestamp control for default ISO volume label 2020-05-03 22:19:49 +01:00
Lyndon Brown 6cf3321d84 config: provide UTC timestamp control
`DATE_UTC_OPTION` is set in `Prepare_config()` for use by scripts, even
though only a few scripts will actually use it, since it allows those
scripts to be cleaner. we may want to possibly extend this as a
`DATE_OPTIONS` variable perhaps as part of enabling proper reproduciblity.

Gbp-Dch: Short
2020-05-03 22:19:43 +01:00
Lyndon Brown 23f02ec7ee syslinux: support timezone date component
since date is not obtained as UTC, timezone is an important detail of
understanding the given time, which users may want to make use of.

Gbp-Dch: Short
2020-05-03 20:31:45 +01:00
Lyndon Brown dc64d8235d syslinux: fix date construction accuracy issue
don't construct each part from a fresh "now", which can result in
inaccuracies in the overall date due to "now" drifting over the individual
date calls. instead feed the full date that was obtained back into it when
extracting the component parts.

Gbp-Dch: Ignore
2020-05-03 20:31:43 +01:00
Lyndon Brown 7ad69658b2 config: fix storage of --jffs2-eraseblock value
broken since it's introduction in 9ffb223d70

Gbp-Dch: Short
2020-05-03 15:08:28 +01:00
Lyndon Brown 918fe8ce25 config: small output alignment fix
Gbp-Dch: Ignore
2020-05-03 12:39:42 +01:00
Lyndon Brown 7276d0213f fix usage/help/man bugs
- the definition of $PROGRAM as used in $USAGE strings defined in each
   script has been broken for a long time, being simply "lb" when it needs
   to be "lb COMMAND".
 - `config` changed $PROGRAM to "lb config" thus its output was correct in
   this regard unlike everything else, but with the switch to a more
   "intelligent" `Man()` function recently, it means that instead of
   `man lb config`, what was actually run was `man lb config config`,
   which displayed the manpage, then on exiting with `q`, it showed some
   sort of index line todo with a "config" search (no exact manpage
   match?), for which you had to enter `ctrl+c` to get rid of.

this revises things to fix the issues, minimising change by changing
$PROGRAM to "lb COMMAND", with the frontend overriding this.

Gbp-Dch: Ignore
2020-05-03 01:38:17 +01:00
Lyndon Brown 96c7977732 archives: output actual error for bad pass param
Gbp-Dch: Ignore
2020-05-03 01:31:47 +01:00
Lyndon Brown 43b4f9cdf6 adjust action arg consumption order
did not properly consider all usage cases properly in deciding placement.

this captured `--usage` in `$PROGRAM --usage` as the action for instance.

Gbp-Dch: Ignore
2020-05-03 01:31:47 +01:00
Lyndon Brown 372a8fd91a args: restore a little tidying
lost in a reversion

Gbp-Dch: Ignore
2020-05-03 01:31:47 +01:00
Lyndon Brown 82700d010b manpages: formatting fix
Gbp-Dch: Ignore
2020-05-03 01:31:47 +01:00
Lyndon Brown 23ed83e730 config: tweak config file loading order
load the base set of files first, then any user arch/dist specific override
files second.

this is important since whenever config items get moved in the base files,
this can break the override files, if an option specified in one was moved
to a different common file that it loaded after.

Gbp-Dch: Ignore
2020-05-02 20:44:02 +01:00
Lyndon Brown 640a25f78d clean: output error on invalid argument 2020-05-02 18:44:12 +01:00
Lyndon Brown 22d8ac15db options: de-duplicate common option handling 2020-05-02 18:18:49 +01:00
Lyndon Brown 55e17b1e25 config: refactor basic package list construction
Gbp-Dch: Ignore
2020-05-02 17:07:32 +01:00
Lyndon Brown b2b2602429 clean: expand debugging
Gbp-Dch: Ignore
2020-05-02 17:07:29 +01:00
Lyndon Brown f20b5b4d0d clean: fix missing 'noauto' param for substage execution
these should be bypassing the possibility of running the auto script
surely, just like how this is done for `--all`, otherwise you pass through
the auto file twice.

Gbp-Dch: Ignore
2020-05-02 14:59:19 +01:00
Lyndon Brown 2d4b2c9e76 clean: improve arg handling
- detect lack of options using actual arg count rather than first arg
   being an empty string.
 - fix string splitting issues by looping properly on "${@}"
 - tidier

Gbp-Dch: Ignore
2020-05-02 14:59:12 +01:00
Lyndon Brown 2d7ff4934d improve stagefiles encapsulation
- added and used Stagefiles_dir()
 - added and used Stagefile_exists()

pretty self explanatory.

Gbp-Dch: Short
2020-05-02 14:49:45 +01:00
Lyndon Brown b20979334c caching: output error on invalid action param
for bootstrap, the check is moved to the case statement for greater
robustness, and for consistency with other scripts.

Gbp-Dch: Ignore
2020-05-02 14:04:12 +01:00
Lyndon Brown da1fab1161 output error for incorrect action in chroot prep scripts
...alongside printing usage (which is perhaps unnecessary), so that it is
actually clear to users that a problem occurred, and what.

and capture it before option processing of remaining args.

Gbp-Dch: Ignore
2020-05-02 13:46:41 +01:00
Lyndon Brown 5f318c5a44 tidy up Echo_breakage()
- it's only used by the debootstrap script after alternatives were dropped
   long ago, so let's move it, avoiding it being loaded for everything
   else.
 - there's no need to pass printing another message through it.
 - there's little point in making the sid distinction if you happen to
   decide to build sid, it's a given that it's less stable than stable.

really, is there any need for this at all?

Gbp-Dch: Ignore
2020-05-02 13:06:17 +01:00
Lyndon Brown d7d0798e46 debootstrap: remove useless obtaining debootstrap verbose help strings
Gbp-Dch: Ignore
2020-05-02 12:54:22 +01:00
Lyndon Brown 1c74927fe5 config: simplify mode default
all roads lead to debian

i was waiting to get to the work on properly tackling the mode stuff, but
let's just tidy this now...

Gbp-Dch: Ignore
2020-05-02 12:41:35 +01:00
Lyndon Brown f78001144b move and rename Common_config_files()
for better encapsulation, and for consistency with other config file
handling functions in the new location.

Gbp-Dch: Ignore
2020-05-02 02:38:26 +01:00
Lyndon Brown 69dc8c21cb bootloaders: tweak default splash text to avoid overlap
the default grub config has a quirk of using the syslinux splash when
present, which as a sidenote i believe is because only the syslinux script
has the code for converting an SVG (i've not researched to confirm).

the problem is that the default splash is such, with the text listing
package versions used, that this overlaps with the menu title in grub.

i've tweaked the "built on" and package details text to reduce its size
(bumped the line-height up slightly though) to avoid the overlap.

this was a pain in the *** to get done. inkscape likes to crash at the
slightest little thing like clicking on interface controls; each time it
saves it seems to swap a bunch of stuff in the file which can make a
hugely messy diff, i had to save, close, open, change, undo, and save
again, just to get a sain diff; and numerous times testing different sizes
and such in actual builds (rather than separate conversions) some of the
package detail lines would for some unknown reason decide to end up on the
same line as another, wth...

anyway, i've finally managed to get a new revision successfully created
and it seems bug free wrt. that same line issue to me, both converting
outside of live-build (in my sid host), and within a buster build. the size
of the text changed seems closer to the size of the actual menu entries
(there's no need for it to be bigger), and now is nicely clear of the menu
title.

Gbp-Dch: Short
2020-05-02 02:09:38 +01:00
Lyndon Brown d4a1e110ed syslinux: updated SVG for splash
opening the file in inkscape resulted in a dialog explaining that inkscape
used to work on a 90 DPI basis but switched to 96 DPI for better
compatibility reasons, and wanted to convert the file.

this is simply the result of it having done the conversion.

it advised that for documents not intended to be printed that there should
be no noticeable difference. i checked the output and it seems identical
to before. i tried to look at the actual diff, but it's a lot of noise,
most of which is just reordering, and i gave up, since the output looks
identical i'm not going to worry.

Gbp-Dch: Ignore
2020-05-02 00:02:31 +01:00
Lyndon Brown 1892f97ce6 grub2: fix missed vga= consistency adjustment
Gbp-Dch: Ignore
2020-05-01 22:36:10 +01:00
Lyndon Brown 6ebac9cc5b grub2: fix duplicate live entries
in tweaking a previous commit to remove some excessive change before
submission, i mistakenly identified the part of the sed replacement
restored here as being unnecessary to its functionality, but in fact it is.
without it the placeholder is not actually removed.

the lack of removal of the placeholder meant that you ended up with
duplicate copies of the live menu entries.

Gbp-Dch: Ignore
2020-05-01 22:02:31 +01:00
Lyndon Brown 578dbee516 bootloaders: change 'Advanced options' to 'Utilities'
more fitting now that we've moved the advanced installer entries
out to a different submenu, leaving just memtest (and HDT on
syslinux).

the advanced.cfg file is also renamed to utilities.cfg in the syslinux
case, but in a backwards compatible way of moving the user advanced.cfg
file over the new one, if the user provides a file with the old name.
alternatively we could just leave the old name in place, but that would be
a little odd.

Gbp-Dch: Short
2020-05-01 12:38:04 +02:00
Lyndon Brown d22c1f177d grub2: fix vga= consistency
- most entries used vga=788 rather than vga=normal (which are equivalent)
 - the syslinux menu uses 788 exclusively
 - so do the official install discs

Gbp-Dch: Short
2020-05-01 12:37:36 +02:00
Lyndon Brown 375ff465e5 grub2: tiny label consistency tweak
as per style in official Debian install discs

Gbp-Dch: Ignore
2020-05-01 12:05:35 +02:00
johnraff 0e5d0483e5 Replace 'which' with 'command -v' to test for the existance of an executable
This is considered to be more robust.

Two instances remain:

scripts/build/chroot_archives, line 257:
if [ "${LB_APT}" = "aptitude" ] && [ ! $(Chroot chroot "which aptitude") ]
The command is run inside a chroot where the environment might be special,
and would need further testing.

manpages/Makefile, line 42:
@if [ ! -x "$$(which po4a 2>/dev/null)" ]; \
I am insufficiently familiar with makefile syntax to edit this.
2020-05-01 09:59:11 +00:00
Lyndon Brown fd18d46e0e grub2|loopback: avoid perl for live entry creation, use temp file
instead of cramming the live entries into a string via a layer of functions
for terminating entries with newlines, which we then have to run through
perl to tweak the newlines for correct use with sed... let's write the
entries to a temp file, then use that file in the sed replacement.

the helper functions injecting newlines to the end of entries as they were
built into a long string have obviously become unnecessary and so were
removed. one function was renamed for reasons of consistency and clarity.

the file is initially deleted before use for reasons of wanting to bullet
proof the codebase to work properly under conditions of recovering from
failure/cancellation, `--force` re-running and such.

this removes the last use of perl.

Gbp-Dch: Short
2020-05-01 09:40:40 +00:00
Lyndon Brown 2c1af527fd config: fix wrong variable name
Gbp-Dch: Ignore
2020-05-01 08:57:44 +00:00
Lyndon Brown a72e7daaf7 config: only try to load FILE.ARCH and FILE.DIST if non-empty strings
to thus avoid trying to load `FILE.`

Gbp-Dch: Ignore
2020-05-01 08:57:44 +00:00
Lyndon Brown 61aa3239c5 config: remove junk config loading code
support for this has not existed since v2.0~a24-1 !!

until 4d22ca948a (v2.0~a24-1), `PROGRAM` was
defined as `PROGRAM="$(basename ${0})"`. then this commit simply got rid
of the definition.

it then flipped back and forth a bit in a few ways, but always sticking
to a simple fixed "live-build" type string after that commit, as it has
been ever since.

the code removed here has thus been junk since then, and the documentation
corrected here out of date since then.

the checking of `LB_CONFIG` is also possibly junk, but i know too little
about it. it was introduced in v1.0~a43-1 in commit
705a4178e7 with a changelog entry of
"Centraly evaluate LH_CONFIG for custom configuration file."

Gbp-Dch: Short
2020-05-01 08:57:44 +00:00
Lyndon Brown 72321c2b9b config: optimise --ignore-system-defaults
Gbp-Dch: Ignore
2020-04-30 19:37:51 +01:00
Lyndon Brown b4156e146f workaround checkbashisms mistake
it reported: "possible bashism in scripts/build/binary_loopback_cfg line 284 (should be '.', not 'source')"

which is clearly a misidentification.

Gbp-Dch: Ignore
2020-04-30 11:57:47 +01:00
Lyndon Brown 9d5665c627 syslinux: fix errors re-running under `--force`
robustification is required to not just `--force` but recovery from failure
or user cancellation.

Gbp-Dch: Short
2020-04-30 07:52:37 +01:00
Lyndon Brown 82f0acb091 grub2|loopback: fix theme issues for submenus
also enables greater flexibility for users to override more aspects of
theme separate from menu entries, and similarly the initial config details
separate from the menu entries. (with the recent change to merge user files
with the defaults rather than replace them, users can pick which of these
individual components they wish to customise.

identical to change as sent in to Kali and accepted by Raphaël.

Gbp-Dch: Short
2020-04-30 07:36:51 +01:00
Lyndon Brown 96ade65e65 grub2: fix lost pre-prepared files detail
partly lost in some adjustments that were made to the submitted work,
which was focused on restoring the 'start installer' entry.

there is no need for dynamic setting of these two `source` imports in the
default file, in fact user modifications should also use the fixed import
commands in future.

note that the old placeholders however remain replaced, which inject
precisely this string, for backwards compatibility.

Gbp-Dch: Ignore
2020-04-30 07:10:08 +01:00
Lyndon Brown 647dcb7aed bootstrap_cache: fix failure condition
during testing i encountered an unexpected error resulting from the
following condition:
 - bootstrap was cached
 - cache of bootstrap packages was empty (from playing with `lb clean`)
 - installer was not none|live

everything works fine up until the main installer script, which comes to
an abrupt halt with an error due to the missing cached bootstrap packages
that it wants to copy.

this situation is easy to unintentionally create, as i managed to do.

here we catch the failure condition, correcting for it.

this is done by checking for the missing cached packages when restoring
the bootstrap from the cache, and skipping this if the packages were
missing, thus forcing the bootstrap to be rebuilt. the packages should
then be found within the cache, allowing the installer stage to complete
successfully.

of course the bootstrap stage will only cache the packages if caching is
enabled, but if caching is disabled and installer enabled, the config
validation will catch that, reporting that problem.

Gbp-Dch: Short
2020-04-30 06:20:52 +01:00
Lyndon Brown 51903da073 init: warn if auto script exists but is not executable 2020-04-30 05:07:02 +00:00
Lyndon Brown a8a6addaf5 loopback: tidy formatting
Gbp-Dch: Ignore
2020-04-29 20:08:39 +01:00
Lyndon Brown 1374e82e24 frontend: fix passing along global args
trying to use `lb --debug config` for instance did not output debug info
unlike `lb config --debug`.

Gbp-Dch: Ignore
2020-04-29 19:03:58 +01:00
Lyndon Brown 80d9c93de9 selinux: fix output consistency
install mode was silent when selinux was not enabled, whilst remove mode
always output a "Begin unmounting..." message. this makes both modes silent
when selinux is not enabled.

this also happens to fix an unintended side effect of
d79c96232b whereby a warning subsequently
was always emitted in remove mode when selinux was not in use, which was
not ideal.

Gbp-Dch: Short
2020-04-29 13:17:50 +00:00
Lyndon Brown 931f42fa39 manpages: more formatting fixes
make variables and options in descriptions bold

Gbp-Dch: Ignore
2020-04-29 10:34:54 +01:00
Lyndon Brown 4f765f3fc0 manpages: fix outdated --distribution description
it does not depend upon --mode, it simply defaults to 'buster'.

Gbp-Dch: Ignore
2020-04-29 10:34:54 +01:00
Lyndon Brown 7149307e07 manpages: clarify --breakpoints
Gbp-Dch: Ignore
2020-04-29 10:34:54 +01:00
Lyndon Brown a0c7db9759 manpages: clarify and correct --binary-images description
including correction of default for all architectures being fat32 not fat16
and the sparc difference no longer being relevant.

Gbp-Dch: Ignore
2020-04-29 10:34:54 +01:00
Lyndon Brown 4f82210d11 manpages: tiny clarifications and tweaks
not worth listing the specifics

mostly the following though:
 - "(comma or space separated)" -> "(a comma or space separated list)"
 - quoting values

Gbp-Dch: Ignore
2020-04-29 10:34:42 +01:00
Lyndon Brown 9c7e8dec72 manpages: fix formatting mistakes
shortoptions also emboldened

Gbp-Dch: Ignore
2020-04-29 10:31:40 +01:00
Lyndon Brown e9a88e5201 manpages: tiny correction
"all (applicable)" -> "all"

this needed adjusting after 38a5aed0dc

don't want to confuse users

Gbp-Dch: Ignore
2020-04-29 10:31:40 +01:00
Lyndon Brown 20c43a0eb8 manpages: fix typos
"whould" -> "would"
"build" -> "built"

Gbp-Dch: Ignore
2020-04-29 10:31:40 +01:00
Lyndon Brown d2f9344b66 manpages: fix typo
"bugreport" -> "bug report"

i won't bother changing the dates just for this one.

Gbp-Dch: Ignore
2020-04-29 10:31:25 +01:00
Lyndon Brown 29ab2459c8 a couple tiny doc fixes
Gbp-Dch: Ignore
2020-04-29 10:27:16 +01:00
Lyndon Brown 6a5d42d569 fix auto file handling regression
b4598b234c mistakenly stopped passing along
options to auto files.

Gbp-Dch: Ignore
2020-04-28 15:12:35 +01:00
Lyndon Brown 997a7f73f9 config: remove redundant validation check
this is already covered by the check above it

Gbp-Dch: Ignore
2020-04-26 12:55:18 +00:00
Lyndon Brown 70c0aa4075 manpages: fix typo
"Sor" -> "So"

Gbp-Dch: Ignore
2020-04-25 12:03:49 +02:00
Raphaël Hertzog 624e79eb8f Do not overwrite splash.png if the user has provided it
The unconditional SVG to PNG conversion could overwrite a splash.png
provided by the user. Ensure we don't overwrite such a file. But we
still remove the SVG file as syslinux is not able to make use of it.
2020-04-25 10:49:35 +02:00
Raphaël Hertzog 103daf9f7c Make librsvg2-bin dependency unconditional for syslinux
We do provide a splash.svg by default so the check will always return
true unless the user has forked live-build... thus the check is
pointless.
2020-04-25 10:46:26 +02:00
jnqnfe 24c2b3e119 syslinux: deduplicate common files
there are several files of which identical duplicate copies are held in:
 - share/bootloaders/extlinux
 - share/bootloaders/pxelinux
 - share/bootloaders/isolinux
 - share/bootloaders/syslinux

it is a pain to maintain this from a development standpoint, having to
copy modified config files into the other directories each time changes
are made and mistakes have been made before due to this.

this creates a new folder share/bootloaders/syslinux_common and moves them
to this new directory.

it also expands the binary_syslinux stage to use it, with it now
constructing the installed set of bootloader files as follows:
 1. copy {LB_DIR}/bootloaders/syslinux_common
 2. copy {LB_DIR}/bootloaders/{syslinux|isolinux|extlinux|pxelinux} on top
 3. copy config/bootloaders/syslinux_common on top
 4. copy config/bootloaders/{syslinux|isolinux|extlinux|pxelinux} on top

note, to explain part of the binary_syslinux change, instead of just
copying the correct bootloader folder full of the files, we now make the
target bootloader specific directory, then copy the contents of source
directories into it.

Gbp-Dch: Short
2020-04-24 18:50:37 +01:00
Raphaël Hertzog 34a72caf49 Synchronize syslinux menu structure with the grub-pc one
* Use same menu labels
* Use same hotkeys
* Get rid of a nested menu that is not present in grub
* Add "menu title" statement to hide the caret of the hotkey (^)
2020-04-24 18:57:03 +02:00
Lyndon Brown 47b0a623dd syslinux: fix lack of top level install option
0bf9d2d390 expanded the set of install
options, whilst also moving them all to a submenu.

it has since been raised that this is not actually what is wanted, that
having an entry for the most common install option is wanted at the top
level, like currently with grub2.

this adds such an entry.

Gbp-Dch: Short
2020-04-24 15:38:55 +00:00
Raphaël Hertzog c6428f44e3 Use correct variable name to detect removal step
Due to this mistake, the helpers were not called in reverse order
during the removal step. This lead to things like "apt update" failing
because a broken /etc/resolv.conf has been restored before the call
to "chroot_archives remove".

Gbp-Dch: Ignore
2020-04-24 17:09:10 +02:00
Lyndon Brown 41ca745b6c syslinux: fix missing hotkeys
for some reason the syslinux folder one had these but not the others.
probably a result of having four separate copies of the files and this
part of the past change to expand the install menus failed to be
duplicated.

Gbp-Dch: Short
2020-04-24 14:43:20 +00:00
Raphaël Hertzog e7df05cd29 Replace "Help" calls with "Man" and get rid of Help 2020-04-24 16:39:10 +02:00
Raphaël Hertzog fac2d8d903 Make "Man" function smarter to also work for "lb --help" 2020-04-24 16:38:45 +02:00
Raphaël Hertzog 55d9b213cf Improve handling of options allowed for "lb" before the sub-command 2020-04-24 16:24:01 +02:00
Raphaël Hertzog 104fa20399 Revert "frontend: properly handle option processing"
This reverts commit 6b7c8ed4bf as it's
breaking multi-value space-separated parameters.
2020-04-24 15:37:13 +02:00
Lyndon Brown 58e0efedc9 config: tidy directory construction and empty directory cleaning 2020-04-24 14:01:47 +01:00
Lyndon Brown 879a9c54ff config: tidy config files 2020-04-24 14:01:41 +01:00
Raphaël Hertzog 440c0b7738 frontend: do no try to look for sub-commands in the PATH
This is a recipe for disaster and it actually already fails when
you pass something that looks like a long option as first argument
because $(which --long-option) will produce an "Illegal option"
string on its standard output.

$ lb --debug config --archive-areas "main contrib non-free"
Illegal option --
/usr/bin/lb: 54: [: Usage:: unexpected operator
E: Unknown command: --debug
2020-04-23 22:30:43 +02:00
Lyndon Brown 10bbb095a8 chroot_resolve: fix broken network connectivity
introduced by an issue with the implementation of
91d446d93e

the introduced of that commit caused builds to fail doing `apt-get update`
or downloading packages and such.

this tweak fixes the problem.

Gbp-Dch: Ignore
2020-04-23 19:53:31 +00:00
Lyndon Brown d79c96232b stagefiles: guard unnecessary chroot removal
just as most scripts are skipped if their stagefile exists (indicating
that they have already been run to completion), including chroot
preparation scripts in install mode, this implements the same guard for
chroot prep remove mode, such that they exit early if their stagefile
does not exist, indicating that the modification has already been removed.
(also override-able by --force in the same way).

this basically just uses a tweaked copy of Check_stagefile().

Gbp-Dch: Short
2020-04-23 18:26:15 +01:00
Lyndon Brown 500f205073 config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/
no backwards compatibility hack for reading the old var from existing
saved config used because this was previously stored in the alternate
format config/build file.

Gbp-Dch: Short
2020-04-23 16:54:31 +00:00
Lyndon Brown 83d9145257 config: s/LIVE_IMAGE_NAME/LB_IMAGE_NAME/
no backwards compatibility hack for reading the old var from existing
saved config used because this was previously stored in the alternate
format config/build file.

Gbp-Dch: Short
2020-04-23 16:54:31 +00:00
Lyndon Brown 41738b1932 config: s/LIVE_CONFIGURATION_VERSION/LB_CONFIGURATION_VERSION/ 2020-04-23 16:54:31 +00:00
Lyndon Brown cb44c128e0 config: address fixme
these options are not internal, they are user controllable

Gbp-Dch: Short
2020-04-23 16:54:31 +00:00
Lyndon Brown 05b9d4c9ea config: remove obsolete variable 2020-04-23 16:54:31 +00:00
Lyndon Brown c441c39efe config: revert partial format conversion
back in v4.0~a6-1 a transition process was started to move the live-build
config to a new format. the new format was INI style, and required
parsing functions to read/write values, compared to the existing format
which was just shell script code setting variables.

this partial transition is the explanation for the existence of the
`New_configuration()` function, and understanding this is important to
understanding the purpose of it - it is not in fact intended for creating
a new configuration, it is just related to the new config format
transition.

the positives of the new format were that it was somewhat cleaner looking,
while the negative was the terrible relative efficiency.

the file `config/build` was created to hold options in this new format.

the transition was only ever completed for a handful of config options:
 - architecture
 - archive areas and parent archive areas
 - live image name
 - live image type

a 'configuration version' attribute was also saved, which is not used by
anything.

the bootstrap-mirror and parent-bootstrap-mirror attributes are pointlessly
stored in it seemingly resulting from work done in v4.0~a17-1. (they are
also stored in another config file from which the value is actually used).

it in fact seems to have been a source of confusion for Raphaël in
authoring 44b9b0a650, since the new
`[parent]-distribution-{chroot|binary}` options it introduced were stored
both in `config/bootstrap` and in `config/build`, while only used from the
former. i expect, understandably, that he thought that `config/build` was
just an information file.

Gbp-Dch: Short
2020-04-23 16:54:31 +00:00
Lyndon Brown bf63762721 move grub-pc specific code to actual grub-pc script
the grub-pc image creation code has no business being in binary_iso, it
should be in binary_grub-pc.

it should be noted that the binary_iso script did not even have the
necessary package check for grub-mkimage, while binary_grub-pc did have
it, pointlessly.

Gbp-Dch: Short
2020-04-23 15:59:39 +00:00
Lyndon Brown 49794f118f syslinux: use linux/initrd placeholders
enabling improved flexibility for any possible future
path changes.

Gbp-Dch: Ignore
2020-04-23 15:51:57 +00:00
Raphaël Hertzog c3a6e65438 Add updated directives to enable cryptsetup support in initrd
This fixes cryptsetup modules not being installed into initrd with warning:
> cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries
>     nor crypto modules. If that's on purpose, you may want to uninstall the
>     'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs
>     integration and avoid this warning.

Thanks-to: Marcel Partap
2020-04-23 17:47:12 +02:00
Raphaël Hertzog aa8f8323f7 Fix indentation 2020-04-23 17:46:47 +02:00
Lyndon Brown 6051ce1697 config: create config/bootloaders directory
to help users know that this is where they can put custom bootloader
configs, just as other directories are created for them.

Gbp-Dch: Short
2020-04-23 16:18:47 +01:00
Raphaël Hertzog e2243dbacb binary_syslinux: rely on $LIVE_BUILD_VERSION instead of lb --version 2020-04-23 17:10:25 +02:00
Lyndon Brown fb41c19009 tidy version reported in `lb config --dump`
live-build might be run from a local folder rather than the system
installation, so the dpkg version number should not override the version
picked up from VERSION

if we care about the possibility of the installed package version
potentially differing from the version of the git checkout, or
whatever, then this should be printed alongside it, as now done.

Gbp-Dch: Ignore

[Raphaël Hertzog: tweak to apply on top of my changes]
2020-04-23 17:05:38 +02:00
Raphaël Hertzog e71db2bd58 Fix version computing when LIVE_BUILD is set
It used to rely on the $LIVE_BUILD/VERSION file which is now gone.
Instead we now rely on the debian/changelog file just like we do in the
Makefile.
2020-04-23 17:00:19 +02:00
Raphaël Hertzog 6f7446fa89 Drop the epoch in /usr/share/live/build/VERSION 2020-04-23 16:51:58 +02:00
Raphaël Hertzog 4c75f80e67 Use descriptive parameter names for Usage() 2020-04-23 16:38:59 +02:00
Lyndon Brown b3bba232ac usage: take exit code as param
thus it can correctly indicate success/fail status instead of always
indicating failure. when a user asks for usage with -u|--usage then we
should exit in success mode rather than failure as when usage in printed
in response to incorrect usage.

Gbp-Dch: Short
2020-04-23 16:32:26 +02:00
Lyndon Brown 6b7c8ed4bf frontend: properly handle option processing
this means that the usage goes from:
 lb {-h|--help|-u|--usage|-v|--version}
 lb COMMAND [OPTIONS]

to:
 lb {-h|--help|-u|--usage|-v|--version}
 lb [FRONTEND_OPTIONS] COMMAND [COMMAND_OPTIONS]

though it is probably not worth is to update the description in the
manpages...? hmm...

so for instance this matters for color control with --color|--no-color
(you already had full control via environment vars). previously you could
do `lb COMMAND --no-color` to turn off colour, only to find that output
at the frontend level was still coloured (the option is processed at the
command context level, not the frontend), so you might try to instead use
`lb --no-color COMMAND`, only to find that this was not supported. Well
now it is, and used at the frontend level will fully control colour output
(after the command is processed anyway).

the full set of common options are thus available (except --force) at the
frontend level, and thus for instance all Echo_*() helpers used in the
frontend will work correctly after args are processed.

furthermore usage like `lb --color --help` will actually work. (not that
color is used there, but this previously would have failed with the
frontend treating the `--color` argument as the command; that's the point!)

Gbp-Dch: Short
2020-04-23 16:29:00 +02:00
Lyndon Brown 89e965ccae frontend: change "no such script" to "unknown command"
as far as the user is concerned, 'foo' in `lb foo` is a command; they do
not know or need to know that the commands also correspond to actual
scripts.

Gbp-Dch: Short
2020-04-23 16:09:21 +02:00
Lyndon Brown b28095bd56 frontend: reorder checks
perform the check that the script exists before sorting out the environment
to give it, or checking root privileges.

Gbp-Dch: Short
2020-04-23 16:09:00 +02:00
Lyndon Brown 8ffe48d8f3 rename LB_BOOTSTRAP_QEMU_ARCHITECTURES to LB_BOOTSTRAP_QEMU_ARCHITECTURE 2020-04-23 16:00:34 +02:00
Raphaël Hertzog 047885bf7e Keep LB_ARCHITECTURES environment variable for backwards compatibility
Custom hook scripts may use the variable. And conditional package lists
can also rely on this variable.
2020-04-23 15:58:59 +02:00
Lyndon Brown 6cc7250954 rename LB_ARCHITECTURES to LB_ARCHITECTURE
this was previously not done in 8b109ffb96
to keep the renaming simple, but leaving the variable plural is a cause
for confusion.

since this property is stored in the INI style config/build config file
rather than a shell script based one, at the property there is already
singular, there was no need for a backwards compatibility hack.

Gbp-Dch: Short
2020-04-23 15:54:19 +02:00
Lyndon Brown 6def2c27be fix usage
Gbp-Dch: Ignore
2020-04-23 15:53:30 +02:00
Lyndon Brown 430c48640c move script param capture to before arg processing
makes them consistent with other similar script-specific param handling;
saves the arg processing from dealing with it.

Gbp-Dch: Short
2020-04-23 15:53:12 +02:00
Lyndon Brown f4c8a28a21 config: move control of apt colour
being done in Prepare_config() meant that it would get saved into the
config stored on disk which is not what was intended.

being saved on disk is not a big problem, since the injection of the
dynamically determined option is always done on top of the value read
from the saved config anyway, so you'd always end up with two copies of
the option given to apt, the first being from the saved config, the second
being the more correct dynamically determined one, overriding the first.

so there is no functional change here, just better achieving what was
intended.

Gbp-Dch: Ignore
2020-04-23 15:52:32 +02:00
Lyndon Brown faa51b83c5 config: fix mistake in mirror url tidying
Gbp-Dch: Ignore
2020-04-23 15:51:53 +02:00
Lyndon Brown ba05247438 chroot: make var local
Gbp-Dch: Short
2020-04-23 15:47:00 +02:00
Lyndon Brown 3d2b280c8f firmware: robustify and simplify archive area checking 2020-04-23 15:46:43 +02:00
Lyndon Brown 9a91ca9fde config: obsolete old --tasksel option
note that the bit of code removed from source_debian relies upon a
variable LB_TASKS which itself is an old leftover artefact from before
v4.0.

Gbp-Dch: Short
2020-04-23 15:46:06 +02:00
Lyndon Brown c1dd191a53 manpage: fix typo and simplify --net-tarball option description 2020-04-23 15:45:00 +02:00
Raphaël Hertzog d414b8fcdb config: obsolete --net-root-path 2020-04-23 15:44:17 +02:00
Lyndon Brown 1ca53bff52 config: obsolete --net-root-* options (except one)
--net-root-path probably needs to go too, but it is being used for
something i don't fully understand currently.

Gbp-Dch: Short
2020-04-23 15:30:41 +02:00
Lyndon Brown 1eee15e852 config: obsolete unused --net-cow-* options 2020-04-23 15:24:50 +02:00
Lyndon Brown 87b995597c config: obsolete unused --isohybrid-options option 2020-04-23 15:24:10 +02:00
Lyndon Brown c3f0d39675 config: apt-get should probably be an allowed and documented --apt value
since everywhere where 'apt' is a permitted value, 'apt-get' is also, it
just wasn't listed in the option's documentation and thus was also not
listed in the new validation check.

Gbp-Dch: Short
2020-04-23 15:23:30 +02:00
Lyndon Brown c57b8679a4 config: fix broken backwards compatibility hack
80aa5ab611 implemented a hack to handle
replacement of LB_LINUX_FLAVOURS with LB_LINUX_FLAVOURS_WITH_ARCH in
config files, but implemented it in the wrong place.

adding a conditional conversion within the config file meant that the old
value would only be read from **new** config files that are created
obviously without it, including re-saved configs if `lb config` were
re-run with additional options (not recommended). any existing value in an
existing config file would actually be ignored.

the right place to read the old value was in the Set_defaults() function
(since renamed).

a second issue also existed with the hack, it failed to excape the `$`
and thus printed the existing value of $LB_LINUX_FLAVOURS into the
conditional check being constructed in the config file, instead of
printing the name of the variable. the check embedded into the config
file thus became this on an amd64 machine:
```
if [ -n "amd64" ]
then
	LB_LINUX_FLAVOURS_WITH_ARCH="amd64"
fi
```
which is clearly not what was intended.

Gbp-Dch: Short
2020-04-23 15:23:15 +02:00
Lyndon Brown 3645719f22 config: stop writing 'default: <foo>' lines to config files
while helpful for users to know the defaults, the values printed as the
supposed defaults for most are actually the same values as being
configured, or in some cases a piece of text "autodetected or empty", and
thus the information is completely wrong and actually unhelpful since it
misinforms the user.

fixing this to give the real defaults is very much non-trivial.

as a workaround users wanting to know the default for an option can always:
 a. use `lb config` wit no options (or auto) in a clean directory and thus
    get a config with all defaults.
 b. look at the live-build code.

if they just want to reset an option, they can also just comment it out.

Gbp-Dch: Short
Closes: #904614
2020-04-23 15:16:46 +02:00
Lyndon Brown eb2eb9b51e installer: rework validation check for installer type
(and move the wget options setting down where it should be while at it)

the value of LB_DEBIAN_INSTALLER is now properly checked in the main
validation routine, so we can just directly exit here as a simple safety
check should validation be bypassed.

Gbp-Dch: Short
2020-04-23 15:16:26 +02:00
Lyndon Brown 9ab7a100da config: add missing deprecation warning
Gbp-Dch: Ignore
2020-04-23 15:14:16 +02:00
Lyndon Brown 780ce25288 config: minor reorganisation
Gbp-Dch: Ignore
2020-04-23 15:13:33 +02:00
Lyndon Brown cd68a4f61f config: strip unhelpful comments
Gbp-Dch: Ignore
2020-04-23 15:12:17 +02:00
Lyndon Brown 2d272fff5c config: expand validation coverage
to cover checking available value choices

Gbp-Dch: Short
2020-04-23 15:11:50 +02:00
Lyndon Brown 46bce5a6d1 config: reorganise validation checks
splitting into two parts will make things much tidier

Gbp-Dch: Short
2020-04-23 15:09:56 +02:00
Lyndon Brown 554a8d1108 tidy up grub bootloader compatibility checking
- add a validation check where an error will be printed
 - replace the check done in the grub scripts with one that simple exits
   if executed bypassing the validation check

Gbp-Dch: Short
2020-04-23 15:08:07 +02:00
Lyndon Brown 9b70092f25 config: tidy validation 2020-04-23 15:04:51 +02:00
Lyndon Brown 39572ccf3f config: merge defaults.sh and configuration.sh, part 2
...and second we then change the filename

Gbp-Dch: Short
2020-04-23 15:02:43 +02:00
Lyndon Brown 2d877a2cb9 config: merge defaults.sh and configuration.sh, part 1
the stuff in defaults.sh is only partially to do with setting default
config values, it also does other prep work like centralised comma
separated value to space separated conversion, and validation.

this is split into two parts to keep the diff simple, first we move the
two small functions from configuration.sh into default.sh...

Gbp-Dch: Short
2020-04-23 15:02:38 +02:00
Lyndon Brown 34c3f79be4 config: better handle error condition
Gbp-Dch: Ignore
2020-04-23 15:02:14 +02:00
Lyndon Brown 576ec6165a config: reorganise the option case block
move away from the somewhat config file grouping based organisation to
an alphabetised list, after grouping into script-specific; general;
build-specific and other.

the config file based organisation was a bad choice, making it hard to
find the right place to insert options for instance.

Gbp-Dch: Short
2020-04-23 15:01:48 +02:00
Lyndon Brown 6c51a80e99 config: organise getopt longoption set
alphabetised per line lists, broken up into multiple lines where exceeding
80 chars.

Gbp-Dch: Short
2020-04-23 15:00:18 +02:00
Lyndon Brown 51f6f2e41d config: remove spurious secondary validation check
it is already done just before writing the config to disk; this check is
happening just after doing so and is thus pointless.

Gbp-Dch: Short
2020-04-23 14:59:47 +02:00
Lyndon Brown f8a401f068 config: add --validate option
running `lb config --validate` causes the script to stop after running
the validation check on the config compiled at that point, prior to
writing the config to disk.

this gives users the ability to check the validity of a config without
modifying or rewriting the saved config.

note that if users provide new config options alongside --validate, these
are taken into account in the check performed.

the 'check complete' message will not be seen if an error is reported by
the check function, while it will be seen if only warnings are given, but
it would require a redesign of the validation check function to make any
improvement in that area, and it's perhaps not worth it.

Gbp-Dch: Short
2020-04-23 14:53:06 +02:00
Lyndon Brown 5fb790e43e config: rename Set_config_defaults() to Prepare_config()
it mostly applies defaults where a value does not exist, but does more in
some cases. the new name better reflects its usage and functionality.

Gbp-Dch: Short
2020-04-23 14:52:20 +02:00
Lyndon Brown 7de8a0faa7 config: rename Check_config_defaults() to Validate_config()
this is used after applying user settings on top of the defaults,
so is not specific to checking defaults; it's a validation checker.

Gbp-Dch: Short
2020-04-23 14:51:58 +02:00
Lyndon Brown 430fdc3040 config: move defaults set in wrong function
Gbp-Dch: Ignore
2020-04-23 14:51:28 +02:00
Lyndon Brown 39e4d3e3cb --binary-images can support only a single type
whilst some parts of the codebase were set up to work with multiple types
specified, others did not work with it and would not necessarily be easy
to adjust. this thus makes some tweaks to adjust things accordingly.

 - option renamed to singular form (maintaining backwards compatibility)
 - a validation check has been added
 - unnecessary glob style type references fixed
 - checks with In_list changed to a direct singular comparison
 - typo of type "netboot" written as just "net" fixed (though unreachable
   so of no consequence; really the code could be removed but it's trivial)

Gbp-Dch: Short
2020-04-23 14:51:09 +02:00
Lyndon Brown cede584a5c manpages: fix typo
Closes: #926238
2020-04-23 11:52:13 +01:00
Lyndon Brown 920ec1605b manpages: fix typo
bad escape, '-\' should have been '\-'

resulted in test showing "--mirror-tstrap" instead of "--mirror-bootstrap"

Gbp-Dch: Ignore
2020-04-23 11:52:13 +01:00
Lyndon Brown 4dc91c4007 manpages: remove unhelpful and largely obsolete fixme notices 2020-04-23 11:52:13 +01:00
Lyndon Brown 6b734df9f3 fix incorrect handling of -c|--conffile
this option actually only has an impact when used for `lb config`; it thus
was incorrectly accepted and captured by Arguments() and the documentation
was wrong.

going back through git history, this has been incorrect since the v0.99 days.

also, reorganised the list alphabetically (no-color was inserted in the
wrong place).

Gbp-Dch: Short
2020-04-23 11:52:13 +01:00
Lyndon Brown e4134e1583 manpages: fixup synopsis
live-build page: list of individual commands outdated (color options not
added); incorrect (conffile is `lb config` specific as to be addressed
otherwise separately); is unnecessary here; and the synopsis suggests
usage without a command (e.g. `lb --help` is wrong when it is not).

lb: consistensy fix in formatting.

all: placeholders should be in capitals for consistency; "OPTIONS" is
better the "live-build options" as a placeholder.

config: unlike the others where "live-build options" is replaced with
"OPTIONS", it makes more sense to specifically list the info (help; usage;
version} options, since below the full list of other options including
other generic options are given.

Gbp-Dch: Short
2020-04-23 11:52:13 +01:00
Lyndon Brown 3547c66669 manpages: fix mistake
Gbp-Dch: Ignore
2020-04-23 11:52:13 +01:00
Lyndon Brown db5188aa99 config: support comma and space separated list of source image types 2020-04-23 11:52:13 +01:00
Lyndon Brown 19eccf0108 manpages: document that multiple source image types can be requested
the same is not the case for binary images since although some parts
of the codebase support it, others do not.

Gbp-Dch: Short
2020-04-23 11:52:13 +01:00
Lyndon Brown 3428cb36a7 manpages: revise documentation of --linux-packages
including documenting use of the value "none"

Gbp-Dch: Short
2020-04-23 11:52:13 +01:00
Lyndon Brown 233be38de4 manpages: document that --linux-flavours is space separated 2020-04-23 11:52:13 +01:00
Lyndon Brown b77c3f3b0b manpages: fix typo
"more than that" -> "more than one"

Gbp-Dch: Ignore
2020-04-23 11:52:13 +01:00
Lyndon Brown fcdb3e8eea manpages: document space separation for --keyring-packages 2020-04-23 11:52:13 +01:00
Lyndon Brown 997c978c0e manpages: document all values for --interactive 2020-04-23 11:52:13 +01:00
Lyndon Brown d38a097809 config: support comma or space separated archive area lists 2020-04-23 11:52:13 +01:00
Lyndon Brown 673b811627 config: support both comma and space separated to-cache stages 2020-04-23 11:52:13 +01:00
Lyndon Brown 9abdf31d9f manpage: document that multiple stages to cache should be space separated 2020-04-23 11:52:13 +01:00
Lyndon Brown 9b61541ef1 manpage: fix consistency issues
- in underlining option parameters
 - in some cases of single or multiple (quoted + space separated) values

Gbp-Dch: Ignore
2020-04-23 11:52:13 +01:00
Lyndon Brown b833eb3650 manpages: indicate in usage that multiple bootloaders can be given
Gbp-Dch: Ignore
2020-04-23 11:52:13 +01:00
Lyndon Brown f73797158e bootloaders: improve bootloader list handling
two parts of the code worked with both comma and space separated lists,
while two others only worked with comma separated.

swapping out commas with spaces when we setup the var in
Set_config_defaults() means that individual scripts no longer need to worry
about it and everything supports both; and that we can avoid the
IFS/OLDIFS mess.

Gbp-Dch: Short
2020-04-23 11:52:04 +01:00
Lyndon Brown ae9143141d manpages: fix mistake
the bootloader list should be comma separated not space. i do not know
what possessed me to write space based in
aed4e0fef2.

fix "booloader" typo while at it.

Gbp-Dch: Ignore
2020-04-23 11:46:36 +01:00
Lyndon Brown 286caf03be fix outdated grub-legacy bootloader name references 2020-04-23 11:46:36 +01:00
Lyndon Brown da57ad77b9 manpage: document that multiple archive areas should be space separated 2020-04-23 11:46:36 +01:00
Lyndon Brown 91d446d93e Fix permissions & ownership of copied /etc/resolv.conf
Closes: #857740

[tweaked by Raphaël Hertzog to fix the chown root:root call]
2020-04-23 12:20:35 +02:00
Lyndon Brown 6fa4b5bae9 binary_hdd: fix variable name typo 2020-04-23 10:14:55 +00:00
Lyndon Brown 9fb3d69046 config: fix wrong saved value for parent archive areas 2020-04-23 10:13:21 +00:00
Lyndon Brown 1a0c813c46 chroot_apt: fix broken removal 2020-04-23 10:05:51 +00:00
Lyndon Brown affcbb95d1 chroot_apt: improve readability 2020-04-23 10:05:51 +00:00
Lyndon Brown 7d46dd81fc chroot_dpkg: remove redundant chmod
left over from before using `ln` to setup the diversion

Gbp-Dch: Ignore
2020-04-23 09:57:25 +00:00
Lyndon Brown 8b1f9f0131 frontend: fix use of config/environment[.binary]
the environment variables when held in a variable need to be used via
`env` otherwise you get command not found errors.

example:
```
$ echo "AA=aa" > config/environment
$ lb config
/usr/bin/lb: 83: AA=aa: not found
$ ENV="AA=aa"
$ ${ENV} true
bash: AA=aa: command not found
$ "${ENV}" true
bash: AA=aa: command not found
$ env ${ENV} true
```

Gbp-Dch: Short
2020-04-23 09:56:13 +00:00
Lyndon Brown 04c5aae0a9 chroot_prep: warn if running archives helper for bootstrap stage
to protect against simple mistake of using 'all' instead of
'all-except-archives' when manually executing scripts (e.g. during
development) at the bootstrap stage level. (the bootstrap stage does not
and should not use the archives helper).

Gbp-Dch: Ignore
2020-04-23 09:38:02 +00:00
Lyndon Brown d171426ae4 binary_rootfs: use new chroot_prep helper 2020-04-23 09:38:02 +00:00
Lyndon Brown f24ed6ba3e binary_rootfs: fix missing handling of chroot_tmpfs 2020-04-23 09:38:02 +00:00
Lyndon Brown 78b03ce8a3 bootstrap_archives: remove useless param 2020-04-23 09:38:02 +00:00
Lyndon Brown 38a5aed0dc chroot_prep: expand coverage
it now covers:
 - `lb chroot_apt install-binary`
 - `lb chroot_archives {chroot|binary|source} {install|remove}`

by expanding usage from:
`lb chroot_prep {install|remove} HELPERS [ARGS]`
to:
`lb chroot_prep {install|remove} HELPERS [MODE[ MODE..]] [ARGS]`

where `[MODE[ MODE..]]` is an optional set of one or more of:
 - archives-chroot, which specifies to use 'chroot' as the first param to
   the chroot_archives script
 - archives-binary, which specifies to use 'binary'
 - archives-source, which specifies to use 'source'
 - apt-install-binary, which specified to pass 'install-binary' instead of
   'install' to chroot_apt

thus _all_ chroot prep scripts can be run through this helper now!

note, in the case of the binary stage, 'archives' is deliberately not added
to CHROOT_PREP_OTHER, this is not a mistake!

Gbp-Dch: Short
2020-04-23 09:38:02 +00:00
Lyndon Brown 1f63c620f0 binary: add missing use of chroot_tmpfs 2020-04-23 09:38:02 +00:00
Lyndon Brown e22bd27170 add bulk chroot preparation script execution helper
rather than explicitly running one helper after another in the major
build stages, or by hand (e.g. while testing things during development),
they can be run in bulk via this new helper. it essentially just takes a
list of helpers to run and runs them one by one.

it supports running all helpers except chroot_archives because that one
has different parameter requirements to the rest and supporting it would
make things messier.

helper scripts can either be named by their full script name or without
the 'chroot_' prefix for brevity. you can also just specify 'all' to
refer to all helpers (except chroot_archives, per above).

it automatically reverses the order of the list when run in remove mode.

Gbp-Dch: Short
2020-04-23 09:38:02 +00:00
Lyndon Brown fc88358b29 binary: remove useless execution of `lb chroot_debianchroot remove`
it was not run in install mode so should not be run in remove mode.

(whether it should in fact be run in install mode is another question; as
is whether chroot_tmpfs should be being used)

Gbp-Dch: Short
2020-04-23 09:38:02 +00:00
Lyndon Brown 8c0e802d13 remove some unwanted quoting of list parameters
there are additional instances in binary_* scripts that are left here
because they are covered by changes in MR #157

Gbp-Dch: Short
2020-04-23 09:38:01 +00:00
Lyndon Brown 11836c0c18 fix $@ parameter expansion issues
$@ when unquoted is subject to further word splitting. this fixes a bunch
of instances where it was incorrectly being used unquoted.

Gbp-Dch: Short
2020-04-23 09:38:01 +00:00
Lyndon Brown f6a50b6db2 packages: remove auto-installed on removal
i've been noticing that in the binary_syslinux stage a wholebunch of
packages get installed whilst installing isolinux, and then upon removing
the installed packages at the end of the script, apt is listing a large
number of those that were auto installed as no longer in use and can be
removed via `apt autoremove`. this then persists through package
installation and removal steps throughout remaining scripts.

adding `--auto-remove` to `apt-get remove --purge` and similarly
`--purge-unused` to `aptitude purge` instructs apt to get rid of the unused
auto-installed packages at the same time as removing specific package that
brought them in in the first place, and thus resolves the problem.

Gbp-Dch: Short
2020-04-23 09:25:17 +00:00
jnqnfe 958251da67 binary_iso: remove duplicate copying of grub binaries
these files are already copied into place in the binary_grub-pc script.

Gbp-Dch: Short
2020-04-23 10:56:51 +02:00
Lyndon Brown 1517861c3e grub-pc: fix broken boot capability
Closes: #956131
2020-04-23 10:56:51 +02:00
adrian15 9220bde3df grub-efi: fix partial broken boot capability
when used alongside syslinux and when a single kernel flavour is used,
things work correctly. otherwise booting from EFI is broken.

the problem comes from the fact that syslinux, for a single kernel flavour
creates the file /live/vmlinuz, which is used by the minimal EFI grub.cfg
to locate the device and partition containing the live image. when multiple
kernel flavours are used, it instead creates /live/vmlinuz1, /live/vmlinuz2,
etc. which thus is a problem. similarly when syslinux is not used, you are
left only with long filenames for the kernel files, for example
/live/vmlinuz-4.19.0-8-amd64. in these situations grub cannot find the
device containing the image and thus fails to display the boot menu.

the solution here, instead of dynamically changing the filename searched
for depending upon bootloader configuration, switches to doing a search for
the file /.disk/info instead. this file is generated by binary_disk, and
is present for iso, iso-hybrid and hdd images types, though grub-efi cannot
be used for the hdd type. it is not created for the netboot type, but again,
grub-efi is not compatible with that anyway. it is not created for the tar
type, which the grub-efi script does not block as incompatible, but is this
not a mistake?

furthermore, switching to searching for /.disk/info helps avoid issues for
systems that happen to actually include a real /live/vmlinuz path other
than on a removable live disk or CD/DVD, as is the case with a HP system
discussed in #924053.

this patch was written by adrian15sgd@gmail.com, as per the authorship,
who attached it to the #924053 bug discussion. this commit message however
has been re-written by jnqnfe@gmail.com, prior to submission via an MR,
as part of the fix towards the issues reported in #956131.

Gbp-Dch: Short
Closes: #924053
2020-04-23 10:56:51 +02:00
Lyndon Brown 46b0d85021 grub2|loopback: avoid empty submenu
don't include the advanced menu at all if it's only entry - memtest - is
not included (you just get a menu entry that does nothing, which may
confused users into thinking that something is broken, as opposed to
showing an empty submenu as i expected).

Gbp-Dch: Short
2020-04-23 10:18:43 +02:00
Lyndon Brown 5ac625e3e1 grub2|loopback: define common target
Gbp-Dch: Ignore
2020-04-23 10:18:41 +02:00
Lyndon Brown 077d005a84 grub2|loopback: extract memtest menu entry creation to config file
backwards compatibility:

 1. the new file will be included alongside any user custom config
 2. rather than replace MEMTEST with an actual config entry, we replace it
    with a line to import the content of the new file, and thus will work
    just as before.

thus no backwards compatible breakage

Gbp-Dch: Short
2020-04-23 09:59:56 +02:00
Lyndon Brown 69093d9e3b grub2|loopback: extract install menu entries to config files
backwards compatibility:

 1. the new install.cfg and install_start.cfg files (chosen
    automatically from the install_*gui.cfg and install_*test.cfg
    files) will be included alongside any user custom config.
 2. the placeholders are now replaced with lines importing these files

thus everything will work just as before, i.e. no backwards
compatibility breakage.

Gbp-Dch: Short
2020-04-23 09:59:56 +02:00
Lyndon Brown 1f1b156697 grub2|loopback: move copying of files earlier
necessary for changes in followup commits.

Gbp-Dch: Short
2020-04-23 09:59:56 +02:00
Lyndon Brown 24658ce542 syslinux: overwrite default files with user ones
as just done for grub2|loopback

the primary benefit here is that it means that user configs do not
have to carry copies of all files; they just carry the ones they
want to replace (or add).

Gbp-Dch: Short
2020-04-23 09:59:56 +02:00
Lyndon Brown 81adab8555 syslinux: simplification
`$_SOURCE` is always composed of `<foo>/${_BOOTLOADER}`, so we can just use
`${_BOOTLOADER}` as the basename, without calling `basename ${_SOURCE}`

Gbp-Dch: Ignore
2020-04-23 09:59:56 +02:00
Lyndon Brown e5b2b56c7c grub2|loopback: overwrite default files with user ones
...rather than choosing between the default set and a user provided set

 1. ensures backwards compatibility after we switch from generation of
    certain content to that content being in pre-prepared config files,
    and thus no longer writing that config out to existing files.
 2. means that user configs do not have to carry copies of all files; they
    just carry the ones they want to replace (or add).

Gbp-Dch: Short
2020-04-23 09:59:56 +02:00
Lyndon Brown 457e800c94 grub2|loopback: move advanced installer entries under own submenu
this takes a step forward in moving towards the same updated layout as
with syslinux; here we get:

 - <live entries>
 - Start installer
 - Advanced install options...
    - <full set of install options>
 - Advanced options...
    - Memory Diagnostic Tool (memtest86[+])

note that this only affects the default menu. custom configs are not
affected by this change.

further steps to complete the move to the updated layout will follow
later.

"Advanced options..." should perhaps be renamed later.

Gbp-Dch: Short
2020-04-23 09:59:51 +02:00
Lyndon Brown 33af87e047 grub2|loopback: improve memtest label
make it consistent with syslinux

Gbp-Dch: Short
2020-04-23 09:12:52 +02:00
Lyndon Brown 96285a0e70 grub2|loopback: add hotkeys for some installer entries
an official current debian install disc was compared with to achieve
better consistency.

main menu:
 - i: for the single "start" entry

advanced submenu:
 - g: for the main graphical entry
 - i: for the main text-based entry
 - x: for the main expert entry
 - a: for the main auto entry
 - r: for the main rescue entry
 - s: for the synth entry

for expert, auto and rescue, the hotkey is given to the graphical entry
where present, otherwise to the text entry.

Gbp-Dch: Short
2020-04-23 09:12:52 +02:00
Lyndon Brown 04a0ffb2f4 grub2|loopback: add hotkey for advanced options submenu (a) 2020-04-23 09:12:52 +02:00
Lyndon Brown c2eb40d9b1 grub2|loopback: add hotkey for memtest (m) 2020-04-23 09:12:52 +02:00
Lyndon Brown 89d72410c4 grub2|loopback: add hotkey for single kernel live entry (l) 2020-04-23 09:12:52 +02:00
Lyndon Brown 6e86a6480c grub2|loopback: allow providing hotkey to menu entry creation helpers 2020-04-23 09:12:52 +02:00
Lyndon Brown 40a076bf35 grub2|loopback: use '@' bookended placeholders
...for consistency with syslinux config placeholders and improved
clarity of what text is a placeholder.

the old placeholders without the bookends are still replaced for
user configs for backwards compatibility.

the new ones are little used just at the moment but are expected to
become used much more in later commits.

Gbp-Dch: Short
2020-04-23 09:12:24 +02:00
Lyndon Brown d5d1e35f22 grub2|loopback: remove unnecessary perl based newline escaping for sed
none of the stuff changed here is multi-line so had no reason to use it.

Gbp-Dch: Short
2020-04-22 18:36:47 +02:00
Lyndon Brown bbeed4cb60 build: fix misleading message 2020-04-20 10:16:14 +00:00
Lyndon Brown f0588be19a loadlin: fix missing directory error
fixes an error I experienced in a test build

Gbp-Dch: Short
2020-04-01 19:04:14 +00:00
Lyndon Brown 1716958a8d bootstrap_cache: validate action param 2020-04-01 18:03:20 +00:00
jnqnfe 314ca3d56a bootloaders: replace use of vga=normal with vga=788 in live menu entries
For consistency with install entries (both in live-build and
official Debian install discs).

Comparing with live-build created installer entries, grub-legacy
and grub2 both favour vga-788 for GUI entries and vga=normal for
test entries, whilst syslinux uses vga-788 for everything.

Gbp-Dch: Short
2020-04-01 15:25:32 +00:00
Lyndon Brown a32519a84a manpages: fix missing mention of stage
Gbp-Dch: Ignore
2020-03-28 01:11:09 +00:00
Lyndon Brown 3c4d07ff18 apt: use its new colour support
apt v2.0.1 introduced support for coloured E:/W:/N: labels. this adds
support to control it based upon our own colour control.

note that with utilities like dpkg we do not do this, but apt only uses
its new colour support automatically when `apt` is used directly, it is
not automatically enabled (per isatty()) for `apt-get`/`aptitude` (the
`apt` developer responsible for adding colour support in response to my
request for it told me that it was deliberately done like this per being
customary to not change behaviour of those tools for compatibility
reasons). colour errors/warnings are useful, so we want to turn it on for
our use of these tools where we can.

Gbp-Dch: Short
2020-03-27 21:05:52 +00:00
Lyndon Brown 8775c8075c syslinux: properly fix shortcut caret appearing in menu entries
this reverts commit 0cef87ffca though
retaining the 'advanced options' menu entry using a label rather than a
title.

despite having done a lot of testing back in 2015 with my bootloader
improvements, i notice now that in fact the syslinux caret fix has an
undesired side effect of modifying the title displayed above the menus. it
does not help that the text embedded into the splash overlaps with this
menu title; perhaps this explains why i missed this problem back in 2015.

purely reverting the implemented fix solves this title problem, but
restores the caret problem to the advanced options menu (in menu.cfg);
however that menu was using a caret in a title entry, unlike everywhere
else where they are only used with labels, which must have been the
original source of the problem all along. ensuring that this menu uses a
label instead of a title in this reversion leaves everything working
correctly afaict.

Gbp-Dch: Ignore
2020-03-25 01:25:50 +00:00
Lyndon Brown 36092f1cb8 highlight commands in script execution
makes reviewing logs in terminal output MUCH more pleasant and efficient

Gbp-Dch: Short
2020-03-23 08:06:51 +00:00
Lyndon Brown 39dae8cdc7 move auto colouring decision
...from the `Set_config_defaults` function, to being done directly
in `build.sh` (the component which is also responsible for loading
functions, loaded at the start of every script, including the front
end).

thus the colouring decision will now correctly...
 - apply to the frontend, such as to the 'root privileges needed'
   error, the 'no such script' error, and the command name
   colouring that I want to add (the most significant issue).
 - apply to error messages generated by the `Arguments` and
   `Read_conffiles` functions, which are called before
   `Set_config_defaults` by scripts.

as things were, due to the comparison with "false", colour would
_always_ be used in these places (unless _COLOR_ERR=false or
_COLOR_OUT=false wrt. the new command highlight, were set in the
environment when executing a script throught the frontend).

this would not be a problem for normal terminal use of course,
besides being inconsistent where color were turned off, but would
be a bit of a problem if redirected to a file.

a re-evaluation of _COLOR is performed in `Set_config_defaults` to
adjust _COLOR_OUT and _COLOR_ERR where necessary, to correctly
respond to _COLOR being set in saved config files (disabled by
default but a user could always enable), after the point of config
files being loaded.

_COLOR can still be controlled from the environment just as before,
overriding both _COLOR_OUT and _COLOR_ERR.

note that this does not address the fact that --color|--no-color
do not work in the frontend and thus will not impact the colouring
of to-be-introduced command highlighting. this needs to be
addressed separately.

Gbp-Dch: Short
2020-03-23 08:06:51 +00:00
Lyndon Brown 85e0681ee8 args: fix a typo
Gbp-Dch: Ignore
2020-03-23 08:06:51 +00:00
jnqnfe a25b77e099 bootloaders: remove old "video=vesa:ywrap,mtrr" kernel param, as done in d-i
d-i removed this in commit 0917b2dde3ff73a204d27dd2f2fffc8a41175ddd

Note: There was inconsistency between grub and syslinux in use of this, with
syslinux not having it on graphical rescue and auto modes while grub entries
did. The patch to fix that has been dropped since we're removing it everywhere
anyway.

(#395040)

Gbp-Dch: Short
2020-03-22 19:43:56 +00:00
Lyndon Brown 49047f0563 manpages: stage clarifications
Gbp-Dch: Ignore
2020-03-20 17:25:09 +00:00
Lyndon Brown 35e622651d manpages: clarify `lb config` notes 2020-03-20 17:25:09 +00:00
Lyndon Brown a56fe5e40b manpages: grammar
"each" -> "each time"

Gbp-Dch: Ignore
2020-03-20 17:25:09 +00:00
Lyndon Brown e1de6bcbf5 manpages: add missing mention of --color|---no-color 2020-03-20 17:25:09 +00:00
Lyndon Brown 757d1e6b48 binary_iso: remove duplicate xorriso param
-J is already in the generic set defined at the start

Gbp-Dch: Short
2020-03-20 16:17:16 +00:00
Luca Boccassi c1f630ca9f autopkgtest: build kali image 2020-03-20 15:36:52 +00:00
Lyndon Brown 92425bd99c archives: param is required
Gbp-Dch: Ignore
2020-03-20 11:43:01 +00:00
Lyndon Brown 7c4de2f20d archives: clarify var
Gbp-Dch: Ignore
2020-03-20 11:43:01 +00:00
Lyndon Brown 94a3e184c2 archives: explicitly pass along _PASS to Create_apt_sources_list
Gbp-Dch: Ignore
2020-03-20 11:43:01 +00:00
Lyndon Brown 29d9c23cd2 defaults: enable d-i GUI for all 2020-03-20 10:19:33 +00:00
Lyndon Brown c534ff52a4 defaults: ensure labels have defaults for derivatives 2020-03-20 10:19:33 +00:00
Lyndon Brown 2c14566c69 defaults: tidy mirrors 2020-03-20 10:19:33 +00:00
Lyndon Brown 945a166f75 strip progress-linux distro hacks
progress-linux, as discussed in MR #142 ([1]) is a little known distro,
which appears to be little more than a personal project of the original
author of live-build.

given that, the expense of maintaining all of these old hacks for it
cannot be justified. it is not known whether or not live-build is even
used with respect to it since the author abandoned live-build some
years ago.

also, at least one past change in live-build possibly broke progress-linux
compatibility anyway, which would have required progress-linux users of
live-build to use a custom progress-linux config, or a progress-linux
fork of live-build, and there is no knowing how much of the hacks in this
"upstream" codebase any user of progress-linux currently relies upon.
and again, progress-linux appears to just be a personal project of
Daniel's, with afaik very little userbase. (Daniel seems to be the only
developer working on the project which speaks to how small it is).

[1]: https://salsa.debian.org/live-team/live-build/-/merge_requests/142

Gbp-Dch: Short
2020-03-20 10:19:33 +00:00
Lyndon Brown d6a80d3d4d defaults: purge long unused LB_ROOT
seems to have been obsolete since all the way back at v1.0~a22-1.

history:
 - in 0d0de885e3 it was renamed from
   LIVE_ROOT to LH_ROOT, but also seems to have become completely
   obsolete at this point, and thus mistakenly not actually removed.
   before this it seems to have been used to hold the base directory of
   live-build from which paths were constructed, but then this use was
   removed making it redundant, but it remained in the code.
 - 83bc63f725 renamed to LB_ROOT.
 - a79a5bea10 dropped setting the variable
   only if not already set, in favour of always setting it depending upon
   LB_MODE. but still it remained unused.

Gbp-Dch: Short
2020-03-20 10:19:33 +00:00
jnqnfe 4fa83598a3 grub: remove old and unused splash code
The LB_GRUB_SPLASH variable is populated by the --grub-splash param
but is not actually used for anything.

Gbp-Dch: Short
2020-03-20 10:02:52 +00:00
Lyndon Brown 01a6de2f4c config: fix backwards compatibility break
when the --fdisk and --losetup options were removed, the entries in the
getopt option list should have remained for backwards compatibility such
that the usage warnings can kick in instead of unknown option errors.

Gbp-Dch: Ignore
2020-03-20 09:28:58 +00:00
Lyndon Brown 561f2dcc3a config: fix incomplete rename of --architectures
missed the getopt data update in 8b109ffb96

Gbp-Dch: Ignore
2020-03-20 09:28:58 +00:00
Lyndon Brown d1fcfa339e frontend: just directly call Usage on missing `man` 2020-03-20 09:04:41 +00:00
Lyndon Brown 3d30597e93 frontend: avoid trying to load /scripts/build.sh
unless `LIVE_BUILD` is set in the environment when running live-build,
this var will be empty. this will result in the frontend trying to load
the file '/scripts/build.sh', which is doubtful the file intended to be
loaded, if it exists. the intention of checking the path
"${LIVE_BUILD}/scripts/build.sh" is really only to do so if the var is
actually used, so let's only do so if it's non-empty.

since we use `set -e`, if build.sh is not found in either location then
failure will occur. if it is found, presuming it is the real file that we
expect to be found, this file sets the var to a default if it was an empty
string, thus we need not worry about use of the var later in the frontend
script.

also, the var is exported prior to exec'ing the command script, so we know
that in the command scripts it is not going to be empty, and those in
themselves loading build.sh which again exports the var ensures that it
will be set for subsequent loads of component scripts (which happens to
go through the frontend again, not that that matters. so except for at the
start of execution, it should never be found to be empty.

Gbp-Dch: Short
2020-03-20 08:36:17 +00:00
Lyndon Brown 0e090a65e3 fix -h|--help component script man page redirection
the frontend handles -h|--help directly and correctly redirects to the
man page.

component scripts however fail to load the correct manpage because they
are being directed to `man <script>` instead of `man lb script`.

(affects the top level commands and major build stages which actually have
man pages; the low level components don't and so will always fail anyway).
2020-03-19 22:42:01 +00:00
Lyndon Brown 406accfab9 defaults: remove redundant setting of LIVE_BUILD
this is handled for every script in build.sh. this is not stored in the
saved config or anything, so no need to re-evaluate in
`Set_config_defaults`. this just seems to completely pointless.

Gbp-Dch: Short
2020-03-19 16:33:25 +00:00
Lyndon Brown b7896564c5 defaults: bump checksums to stronger form
md5 & sha1 are not considered secure anymore and thus are of questionable
value here if checksums are wanted.

Gbp-Dch: Short
2020-03-18 14:47:22 +00:00
Raphaël Hertzog bdffaebe12 Minor cleanups in Require_stagefiles 2020-03-18 09:37:22 +01:00
Lyndon Brown fb0790cc43 stagefiles: s/Require_stagefile/Require_stagefiles/
this function takes one or more required stage fileS _plural_, and exits
if any are missing (or at least it does now after the refactor).

let's rename it to make things more clear

Gbp-Dch: Short
2020-03-17 22:59:37 +00:00
Lyndon Brown fe0d2358b9 stagefiles: only list missing stages 2020-03-17 22:59:34 +00:00
Lyndon Brown 3bed138fda stagefiles: avoid stagename in required error
the name of the stage is already printed earlier in the output prior to
the error here being printed. so the error really does not need to include
the script name itself.
2020-03-17 22:57:09 +00:00
Lyndon Brown ea0f6b7810 stagefiles: fix completely wrong require-stages logic
now having investigated my suspicions of the functionality and use of
Require_stagefile(), i conclude that it has been fundamentally broken
all the way back to v1.0~a8-1 (or at least usage of it since v1.0.1-2).

gah. (╯°□°)╯︵ ┻━┻

----

very early on in the history of live-build this function took the name of
a _single_ stage file only and did `exit 1` should the file not be found.
this was simple and clearly accomplished "what was on the tin", so to
speak.

in bd1a5ddc82 (2007, 1.0~a8-1) things got
weird. it was modified to support a list of multiple files. but instead of
being written to cause failure if _any_ of the listed files were missing
as perhaps one might expect, it was instead written to fail only if all
files were missing!

if you jump to the conclusion that i'm talking about a simple flipped
logic from a lack or otherwise of a `!` here, you'd be mistaken; there is
a comment inside the function that could not be more clear about what was
intended by the author - "Find at least one of the required stages"! this
makes me thoroughly confused about what they were thinking.

as we'll get to, this was fundamentally flawed (or at least its later use
was), but furthermore there were other notable issues introduced at this
point (but don't worry too much about these, they've all been addressed):
 - `NAME` was modified in the loop, using the existing value, but nothing
   initially set it...
 - the setting of `NAME` seems related to its use in the subsequent error
   output, yet they are logically separated; it is only set if a file
   exists, while the error is only printed if none exist.
 - it is pointlessly using a messy `CONTINUE="true"` based mechanism,
   when it could just `return 0`.
 - it did not handle correctly the bad use case of no params having been
   supplied.

it doesn't seem to have been entirely thought through, despite its
pervasive use throughout the build system.

note that no change was made in that commit to make actual use of the
new multi-param support. it would not be used until about a year later.

the function has remained largely untouched since then. in
c68c0a2708 a notable change was made to add
an initial setting of `NAME`, which partially addressed one of the above
issues. but it did not really address the issue the change was meant to
solve, since the `NAME` as printed in the error was now the name of the
script when what was really wanted was the name of the stagefile. this was
finally fixed properly in d54990695f.
however the weirdly pointless setting of `NAME` persisted in the loop.

finally i personally just refactored the function in the commit prior to
this one, retaining the same functionality but addressing the remaining
of the above minor implementation issues.

looking at usage of the new functionality introduced in
bd1a5ddc82, it does not seem to have been
until 0cbbde2b96 (2008, almost a year after
it was made possible) that changes were made to finally start making use
of the ability to pass more than one filename at a time to the function,
and it would appear that perhaps the author forgot what it actually was
that the function accomplished when used with multiple params, and failed
to double check.

in this first use of multiple parameters, this commit went from passing
single file names to individual calls to the function to passing the files
in one single call, in a commit the purpose of which was described as
simply tidying things up. it was most certainly not intended to change
stage requirements.

unfortunately, a change in requirements did occur as a result since the
new usage of the function was not accomplishing the same as before. this
change completely broke the stage requirements protection mechanism such
that only a single one of the listed stages needed to have completed for
the check to pass, rather than all as expected.

this flaw made it into release v1.0.1-2 and it has existed every since.

in the very next commit from that one,
6204dc0e6d things got even worse. here we
see the config stage being specified commonly as the first stage listed,
which is still the case today. this means that ever since this commit,
if you've already got a config before building (which you inevitably do,
especially after some later commits introduced automatically creating it
if missing), then all other stage requirements are simply ignored.

so it seems pretty damn clear that this function is accomplishing
completely the wrong objective. it _should_ be checking that _all_ files
given to it exist, not just one or more. ¯\_(ツ)_/¯

this FINALLY addresses this mistake.

(not that i wish to berate the author; i've made silly mistakes of my own
before)
2020-03-17 22:57:09 +00:00
Lyndon Brown 1b09b15277 stagefiles: refactor Require_stagefile()
- count of params is available as $#, we don't need the pipe-to-wc logic.
 - the whole 'CONTINUE' based logic is silly, we can just return once one
   of the files is found.
 - setting of 'NAME' in the loop was completely pointless.
 - the error message for multiple files was not very clear just injecting
   a sequence of words into a sentence.
 - it did not work correctly if no arguments were given (bad usage)

note, you might question whether the functionality of this function is
correct, as did I; this is tackled in a followup commit whilst this
commit retains the existing functionality!

Gbp-Dch: Short
2020-03-17 22:57:04 +00:00
Lyndon Brown dadeec9d39 stagefiles: fix doc mistake
missed in final revision of fe9195b59c

Gbp-Dch: Ignore
2020-03-17 22:09:51 +00:00
Lyndon Brown fe9195b59c stagefiles: further robustify with auto filenames
as suggested by Raphaël

rather than have fixed stagefile filename strings at all in the scripts,
use `$(basename $0)` to use the name of the script (which is the same for
almost all cases anyway, and the stage files are supposed to be almost
exclusively unique per-script). we can thus simplify things by determining
the filename for most use cases within the functions themselves.

this does change the file used by a couple of scripts, affecting backwards
compatibility of executing live-build upon an existing partially or fully
completed build:
 - binary_grub-pc used "binary_grub"
 - chroot_includes used "includes.chroot"

care had to be taken for the following cases:
 - there are some cases like bootstrap_cache, source_debian and
   bootstrap_debootstrap which are dealing with more than one file, and/or
   otherwise a filename that is not specific to the script itself exactly,
   or should not be based upon its name.
 - some cases like chroot_cache, bootstrap_cache and
   chroot_install-packages need to append something to the end of the name
   depending upon which pass/action mode the script is being executed with.
 - furthermore in the bootstrap_cache case one of the filenames is used
   within the bootstrap_debootstrap and thus needs very careful handling
   to be certain that a change in filename of bootstrap_cache does not
   break bootstrap_debootstrap.

Gbp-Dch: Short
2020-03-17 18:57:02 +00:00
Lyndon Brown 04d9ee0211 stagefiles: simplify & robustify
- avoid all need to pass ".build/" path in stage file names into the
   functions
 - add a helper to remove a stage file (required to complete the above
   properly)
 - avoid duplicating filenames within scripts which makes them prone to
   mistakes (some instances of which I've actually encountered and had
   to fix)

Gbp-Dch: Short
2020-03-17 18:57:02 +00:00
Lyndon Brown bea349c822 exit: fix missing local scope
missed in c55eb8a0c3

Gbp-Dch: Ignore
2020-03-17 17:33:31 +00:00
Lyndon Brown d5dfe38bfb manpages: correct date & version
Gbp-Dch: Ignore
2020-03-17 02:46:13 +00:00
jnqnfe a773edb813 syslinux: apply kernel version filtering logic to multi-flavour kernel scenarios 2020-03-16 23:08:26 +00:00
jnqnfe 38af959aa5 syslinux: use more dynamic memtest menu config file
Fixes the following
 - Correct version (memtest86/memtest86+) shown instead of fixed 'memtest86+' text
 - Ensure correct directory path always used by using replaceable placeholder

Gbp-Dch: Short
2020-03-16 23:08:26 +00:00
jnqnfe 31fa6abd36 syslinux: add memtest menu entry only if including memtest 2020-03-16 23:08:26 +00:00
jnqnfe 7ffd2288d9 syslinux: add install menu entries only if including installer 2020-03-16 23:08:26 +00:00
jnqnfe 0bf9d2d390 syslinux: expand list of install options 2020-03-16 23:08:26 +00:00
Lyndon Brown 7e41b1267c fix another wrong stage file filename 2020-03-16 22:40:23 +00:00
Lyndon Brown c55eb8a0c3 use local scope for private function vars
all vars affected have been carefully checked to be quite certain
that they are definitely local

where variable is assigned the return value of a function/command, the
local "declaration" is deliberately done on a separate line, since
`local FOO` is actually treated itself as a command rather than a
declaration; will thus always cause $? to be zero, and thus if done on
the same line as such an assignment can not only clobber $? but in doing
so unintentionally blocks failure of a command from triggering the
expected exit from having `set -e`.

also, from testing, i have found that when assigning "${@}" this must be
done on a separate line confusingly as otherwise an error occurs.

Gbp-Dch: Short
2020-03-16 22:10:03 +00:00
Lyndon Brown af040d7803 add build & build stage success messages 2020-03-16 21:42:49 +00:00
jnqnfe 24aab15d2a bootloaders: add install with speech synthesis menu entries
Following the official Debian install disks

Gbp-Dch: Short
2020-03-16 20:33:18 +00:00
jnqnfe efbe50233e grub1: refactor install menu creation
This is necessary as the simplest solution to allow a single
speech-synth entry to be added.

Gbp-Dch: Short
2020-03-16 20:33:18 +00:00
Lyndon Brown eeedf10de5 syslinux: fix duplicate shortcut use 2020-03-16 17:49:43 +00:00
jnqnfe 396b1727ad syslinux: changed 'build' to 'built' in splash
Appears before a timestamp which reflects when the image was built, so 'built' is more correct than 'build' here.

Gbp-Dch: Short
2020-03-16 17:48:59 +00:00
jnqnfe 0cef87ffca syslinux: fix shortcut caret appearing in menu entries
also fixes the mistaken assignment of the same shortcut for both
entries in live.cfg.in

Gbp-Dch: Short
2020-03-16 17:48:51 +00:00
jnqnfe 2fc60a1151 syslinux: remove replacement of unused label in menu configs 2020-03-16 16:29:00 +00:00
jnqnfe 8a7bc408e5 grub1: fix consistency
Use the normal appended-params directly in `Grub_live_entry` calls
like the failsafe ones.

Gbp-Dch: Short
2020-03-16 16:29:00 +00:00
jnqnfe aadf8c4cac grub1/grub2/loopback: fix missing delimiter in menu kernel parameter lists
The '---' delimiter should appear before the final 'quiet' parameter
(which is used by the debian installer I believe).

This delimiter is added by live-build in syslinux configs, and is present
in both grub2 and syslinux configs in an official debian 7.7 disc image,
suggesting strongly that live-build grub/grub2 menu creation code is in
the wrong here by missing it.

update: this commit previously used -- as was correct at the time, and has
since been updated to use --- per #775128; which was previously tackled in
a separate later commit. the switch to --- was already done for syslinux
(which was not missing the delimiter unlike grub) in
ba6b9adeff

Gbp-Dch: Short
Closes: #775143
2020-03-16 16:29:00 +00:00
jnqnfe a33938f8d4 grub1/grub2/loopback: fix order of quiet kernel parameters in menus
I believe that the `quiet` parameter is meant for d-i not the kernel and
thus should be given on the end after a delimiter, as done with syslinux.

Here we switch the order to move it to the end. The addition of the missing
delimiter will be done in a followup commit.

(See #775143)

Gbp-Dch: Short
2020-03-16 16:29:00 +00:00
jnqnfe 7d4fc93205 grub2/loopback: fix highlight readability
Current splash makes it very difficult to read menu entries.
Black as a background color is actually interpreted as transparent,
so switching to something else so the highlighted menu entry can be
read more easily.

Gbp-Dch: Short
2020-03-16 16:29:00 +00:00
jnqnfe 636e52c36e grub2/loopback: fix misapplication of quiet kernel parameter
When building grub2 menu entries the quiet param (meant for d-i)
was excluded from the rescue menu entries instead of expert.

This is the opposite to what is done in the following:
 - Menu entries seen in official debian 7.7 disc images (grub2 and syslinux configs)
 - Menu entries created for grub (legacy)
 - Menu entries created for syslinux

The evidence strongly suggests that the grub2 menu creation was in the wrong!

(See #775143)

Gbp-Dch: Short
2020-03-16 16:29:00 +00:00
jnqnfe 464c7a6946 grub1: fix wrong variable name 2020-03-16 16:29:00 +00:00
Lyndon Brown ca520eb5f0 split stdout & stderr auto colouring
thus for some reason if one is connected to a tty and the other a file,
we still get colour in the tty by default.

in terms of options, --color and --no-color override both, no granular
ones added since it's not worth it imo.

this is backwards compatible with custom configs setting `_COLOR`.

it could be argued that setting $_COLOR to "false" for the auto non-tty
cases is redundant, which it is, but it doesn't hurt to do so; it ensures
that if anything (inc. 3rd-party hooks and such) rely on it that it
remains correct; and ensures that if anything in the future mistakenly
uses $_COLOR instead of $_COLOR_OUT|$_COLOR_ERR that at least that will
only be broken for the use case of only one of stdout|sdterr being a tty.

Gbp-Dch: Ignore
2020-03-16 13:32:16 +00:00
Lyndon Brown 09b279b7bc turn on colour by default
...when stdout+stderr connected to a tty (as opposed for example to being
piped to a log file)

very helpful to have colour such that the red/yellow of errors/warnings
can draw the eye to problems.

Gbp-Dch: Short
2020-03-16 13:32:16 +00:00
Lyndon Brown 49e68da5ee allow turning off colour
necessary to give control when colour is default enabled

Gbp-Dch: Short
2020-03-16 13:32:16 +00:00
Lyndon Brown 2cf397df66 installer: fix double slash in urls 2020-03-16 01:36:53 +00:00
Lyndon Brown b326c37f92 installer: expand debugging output 2020-03-16 01:36:53 +00:00
Lyndon Brown 2ea6eeefa2 installer: move an exclude removal outside of loop 2020-03-16 01:36:53 +00:00
Lyndon Brown 19e1a5b9c2 installer: tweak temp shell script construction
Gbp-Dch: Ignore
2020-03-16 01:36:53 +00:00
Lyndon Brown 47e136df6f installer: dedup long paths 2020-03-16 01:36:53 +00:00
Lyndon Brown 3fb0bb235d installer: tidy package lists
`DI_PACKAGES` does not need to include `DI_REQ_PACKAGES` so long as
we pass the latter to apt in the one case where it was not already
being given it.

in fact with it including that sub-list meant that in the other
case where it was being given to apt, it actually just resulted in
duplication.

Gbp-Dch: Short
2020-03-16 01:36:53 +00:00
Lyndon Brown 9a878350d3 installer: misc small tweaks
Gbp-Dch: Ignore
2020-03-16 01:36:53 +00:00
Lyndon Brown 2abf7bc65b installer: clear large string once done with
Gbp-Dch: Ignore
2020-03-16 01:36:53 +00:00
Lyndon Brown 1a9a1585ad installer: restore udeb existence check
this was removed as part of b54bdd7fb1
but is actually still needed.

Gbp-Dch: Ignore
2020-03-16 01:36:53 +00:00
Lyndon Brown 7891188557 installer: fix broken loop
Gbp-Dch: Ignore
2020-03-16 01:36:53 +00:00
Lyndon Brown 00a2fabcdf fix wrong description
Gbp-Dch: Ignore
2020-03-15 21:54:37 +00:00
Lyndon Brown a67febdd82 fix missing stage descriptions
Gbp-Dch: Ignore
2020-03-15 21:54:37 +00:00
Lyndon Brown b25db0a4bf source: properly fix _apt permissions warning
the chown command needed running within the chroot, since apt-get is being
run within the chroot and _apt might have a different UID there than on
the host.

Gbp-Dch: Short
Closes: #953957
2020-03-15 21:38:35 +00:00
Luca Boccassi c0ff2e6dbd CI: deploy from the build stage, rather than rebuilding from scratch
No point in doing everything twice

Gbp-Dch: ignore
2020-03-15 21:13:31 +00:00
Luca Boccassi 9decfc38b8 Add autopkgtest: default image build 2020-03-15 11:38:03 +00:00
Steven Shiau 0a353a7b46 Add grub EFI support for armhf arch. 2020-03-15 11:35:19 +00:00
Lyndon Brown 34ceb67718 hide mountpoints from nautilus
when building within a home directory, as /proc, /sys, etc are mounted
and unmounted into the chroot at various points in the build, corresponding
entries appear and disappear within the side panel of nautilus.

this is obviously undesirable.

use of `-o x-gvfs-hide` resolves this for the most part. i still see items
occasionally pop up and having spent some time experimenting, i'm putting
it down to buggy behaviour on the part of nautilus. (aside from those
appearing when debootstrap is running - debootstrap also needs this fix).

Gbp-Dch: Short
2020-03-13 20:28:15 +00:00
Lyndon Brown a46985b08a fix comment typo
Gbp-Dch: Ignore
2020-03-13 16:19:59 +00:00
Lyndon Brown 24c3582b2c exit: don't convert numeric exit code to string 2020-03-13 16:06:20 +00:00
Lyndon Brown 1cbe8f8aac functions/bootloaders: tidy and simplify 2020-03-13 16:03:48 +00:00
jnqnfe b27927724a locks: tidy lock acquisition
Combine the check+create done in each script. (The original functions
are still callable as before, but a new combined `Aquire_lockfile`
function can be called instead, as now used).

Note, a further simplification could be done in removing the passing of
the lock filename in as a parameter since every use of the functions is
with ".lock". The lock functions already have a fallback to ".build/lock"
though. Checking the history, the fallback used to be for a system wide
lock, which was then replaced with this config-tree specific one. As long
as that is not used implicitly by 3rd-party hooks then surely we are free
to change the fallback to ".lock" and further remove passing in a name as
a param...?

history:
db5d2b0dcd
0aa8289a37

Gbp-Dch: Short
Closes: #952918
2020-03-13 15:37:38 +00:00
Lyndon Brown 346e3e1c36 fix colouring of notice type message prefixes
previously this was white+bold. the white aspect was dropped since this
would not be sensible for users with a white background for their terminal.
bold however does not have any effect for me at least so effectively there
is no highlighting at all.

here we reintroduce a colour, one that will work for both black and white
backgrounds of course. purple looks good to me - significantly different
to that used for errors and warnings, and works well with command
highlighting (as enabled separately).
2020-03-13 15:23:13 +00:00
Lyndon Brown 5a1c875cb8 exit: ensure an appropriate message is printed on unexpected exit
if a script exits due to a failure and `set -e`, we should ensure that an
error message is printed to be clear to the user that something actually
went wrong.

similarly it would be good to print a suitable message should the user
cancel with ctrl+c for instance.

Gbp-Dch: Short
2020-03-13 15:10:29 +00:00
Lyndon Brown 5e423d0851 fix instances of bad stagefile creation circumstances
theres no point in creation of stagefiles being kept within a
conditional block of work. if the script completes with success
then it should create its stagefile to thus avoid repeating any
work that it might have done should it get re-run without being
forced.

Gbp-Dch: Short
2020-03-13 14:42:34 +00:00
Lyndon Brown 3e3e8c2c64 fix instances of broken stagefile handling
mismatches in filenames between check and create

Gbp-Dch: Short
2020-03-13 14:42:34 +00:00
Lyndon Brown 67930f3e6e frontend: tidy
no need to have exit in both conditions

no need to have most of the script within a case branch when all other
cases result in an exit.

Gbp-Dch: Short
2020-03-13 14:20:12 +00:00
Lyndon Brown 9f42bc1bdc fix splitting bootloader string
the existing solution simply did not work
2020-03-13 14:17:45 +00:00
jnqnfe a6cc72bf6d strip useless multi-arch separate directory stuff
(part of never completed side-by-side multi archi support)

Several scripts make a call to a function called Check_multiarchitectures,
the purpose of which is to adjust the target directory that certain 'live'
and 'install' files are located in. The idea is that a script sets up
'DESTDIR', 'DESTDIR_LIVE' and 'DESTDIR_INSTALL' as appropriate and then
the script appends a suitable arch dependant postfix to the directory
name, depending upon the arch currently being targetted. This would allow
the script to be run multiple times, each for a different architecture.

This is a part of an implementation of allowing multiple architectures to
sit side by side within the same live image, selectable from the
bootloader menus. (As opposed to multiple architectures mixed within the
same userland).

This is evidently the case both from the fact that:
  1) The arch specific postfix chosen in that function depends on a var
     called LB_CURRENT_ARCHITECTURE, which is never set. In fact going
     back through the git history to the introduction of the function in
     0d5ff4ca75, the var (even considering
     var name changes) has never been set by anything. So effectively the
     call to the function has been entirely redundant all this time.
  2) The major build stages do not perform multiple executions of substages
     per arch. Thus from this perspective it seems that the support was
     never fully implemented.
  3) If any doubt remained, there is an old branch called 'tmp-multiarch'
     which has a couple of commits making progress with completing support,
     such as implementing the above missing pieces.

The above mentioned branch is 10 years old and can be considered abandoned.

It is not clear whether the original author ever intended to complete and
merge this; nor is it at all clear at what stage of completion it was at.

At any rate, imo it is not at all particularly useful to have extra code
and complexity in order to be able to cram multiple environments side by
side in one image, not when CDs/DVDs and even to some extent USB pen drives
are so cheap. And who really needs more than one environment so
desperately on just one such medium.

If this was not enough to justify removal, then there is also the fact that
the support that was implemented has become completely broken over the
years with scripts diverging in terms of the variable names the function
modifies such that they are incompatible with it.

A quick assessment of the state of this latter aspect:

  good:
   - grub-legacy uses the correct var names so is fine
   - memtest similarly good
   - installer_debian-installer looks okay

  questionable:
   - binary_linux-image uses the correct vars but might not select the
     right kernel and initrd files to copy (seems to copy all)

  bad:
   - grub-pc is making a redundant call, after functionality was moved
     to the loopback script
   - loopback is using the wrong vars (INITFS instead of DESTDIR +
     DESTDIR_INSTALL + DESTDIR_LIVE), plus is doing its own amd64+i686
     thing anyway, so the function call would achieve nothing anyway.
   - syslinux is also using the wrong var names so would not work with
     it and is not even making the necessary function call. Also the
     install paths are fixed in the hard coded cfg files anyway so this
     would need addressing with placeholders and sed replacement, but
     then it is not entirely clear how things should work with respect
     to install entries and multi-arch anyway, are we having multiple
     copies of the installer, one for each target arch and then multiple
     copies of the install menus, perhaps under different submenus?

So, this removes the artefacts of this never completed feature.

Gbp-Dch: Short
2020-03-13 13:56:21 +00:00
Lyndon Brown c54cc2c497 echo: really ensure log messages go to stdout
all echo helpers are used as logging functions with output to go to the
terminal. when used in functions that are designed to return a string
though the message printed would get incorrectly captured.

the previous fix done in e3a987d977 was
stupidly flawed; somehow my testing led me to mistakenly believe that
was adequate, but retesting proves that it was not.

here we create a new FD #3 linked to stdout to output the messages on,
which testing shows works as I had actually intended it.

e.g. here:
```
Foo () { if [ "$1" = "a" ]; then printf "foo\n"; else printf "error\n"; fi; }
```

we get:
```
~$ Foo a
foo
~$ Foo b
error
~$ XX="$(Foo a)"
~$ echo "${XX}"
foo
~$ XX="$(Foo b)"
~$ echo "${XX}"
error
```

and as demonstrated, "error" got incorrectly captured by in the variable

whereas here:
```
exec 3>&1
Foo () { if [ "$1" = "a" ]; then printf "foo\n"; else printf "error\n" >&3; fi; }
```

it is different in the last case:
```
~$ XX="$(Foo b)"
error
~$ echo "${XX}"

```

the error successfully makes it to the terminal, and the variable is an
empty string (with a newline automatically printed).

Gbp-Dch: Short
2020-03-13 13:50:35 +00:00
Lyndon Brown 1edc3af346 debootstrap: use --force-check-gpg
I asked for such a switch to be added in debootstrap back at the start of
2015 in #775454 as part of a review I undertook of its security. A slightly
modified patch was merged a few months later and made it into version
1.0.69.

A patch was never merged into live-build to make use of it however. Let's
do that now.

The benefit of this, as explained in #775454, is that if we want strong
security (LB_APT_SECURE=true) then should debootstrap not be able to find
the GPG key to verify things with, it will abort with an error instead of
falling back to just https downloads with a warning. Such a warning would
be easy to miss in the log output, and security could potentially be
compromised if this were to happen.

Gbp-Dch: Short
2020-03-12 14:44:49 +00:00
Luca Boccassi cb68fb3e0a CI: fix deploy stage
Clean the build tree before running, and list all the stages as the
CI implementation does not merge them from multiple includes

Gbp-Dch: ignore
2020-03-12 14:23:56 +00:00
Luca Boccassi 10999bbdcf Fix typo in changelog
Gbp-Dch: ignore
2020-03-12 12:50:13 +00:00
Luca Boccassi 161e7c8223 Fix typo in lb_config.1 manpage
Gbp-Dch: ignore
2020-03-12 12:49:28 +00:00
Luca Boccassi d320f19bde Bump Standards-Version to 4.5.0, no changes. 2020-03-12 12:48:48 +00:00
Luca Boccassi e6279af102 Add CI on commits/PRs
Gbp-Dch: ignore
2020-03-12 12:32:26 +00:00
Luca Boccassi 015e6b65f3 Revert "Test for executables: replace 'which' with more robust 'command -v'"
This reverts commit 2d9ab1f7f8.

Causes test failure due to bashism.
2020-03-12 12:32:26 +00:00
Lyndon Brown c2e73627db grub: fix incorrect error handling 2020-03-12 12:08:33 +00:00
johnraff 2d9ab1f7f8 Test for executables: replace 'which' with more robust 'command -v'
Instances of:
if [ $(which <command> ]
have been replaced with:
if command -v <command> >/dev/null
which is considered to be more robust in a range of environments.

scripts/build/chroot_archives: line 259:
	if [ "${LB_APT}" = "aptitude" ] && [ ! $(Chroot chroot "which aptitude") ]
has been left untouched because the chroot might require a more complex command
which would need more testing.

manpages/Makefile: line 42:
	@if [ ! -x "$$(which po4a 2>/dev/null)" ]; \
has been left untouched because I am not sufficiently familiar with makefiles.
2020-03-12 10:35:57 +00:00
Lyndon Brown 72a87fb70d fix error for default hdd|netboot images
commit f811656150 enabled the grub-efi
bootloader by default for amd64|i386 architectures, but failed to
recognise the this bootloader is not supported for hdd|netboot images.

this meants that if a user tried to build such an image without explicitly
specifying the bootloader, excluding grub-efi, their build would fail
with an error in the binary_grub-efi stage.

this fixes the problem by only enabling grub-efi by default on supported
image builds.
2020-03-12 10:33:13 +00:00
Lyndon Brown 1e0339a4e3 remove obsolete loop-aes-utils related losetup hack
677415f6d7 (2007) in v1.0~a2-1 added a hack
relating to the loop-aes-utils package and losetup. this commit bundled
a bunch of changes, it was not specific to the hack, and so info about the
hack is limited to a brief comment included within the related change in
defaults:
```
# Workaround for loop-aes-utils divertion
# (loop-aes-utils' losetup lacks features).
```
though it is very similar to the removed fdisk hack in that it seems that
one package may replace a binary from another, moving the original to a
new location, and this hack gives the user the opportunity to select the
original instead of the one put in its place, for use in LB.

the comment mentions a package called loop-aes-utils as being the package
that performs such a diversion, and that the need for the hack was that
losetup itself lacked features, presumably encryption support, and it is
clear that it is the losetup binary that is the focus of the diversion.

looking into the history of loop-aes-utils a little, this package was
dropped from debian back in 2012 (#680748), favouring encrytion support of
dm-crypt/cryptsetup.

double checking file contents of packages, only the mount package carries
an /sbin/losetup file, so presumably this means that dm-setup/cryptsetup
do not perform such a diversion of losetup (i.e. their use is exclusively
done directly).

since the possible diversion is simply gone, that completely removes any
point in having the hack of giving users choice between losetup and the
diverted one. so let's remove this obsolete hack...
2020-03-12 10:31:39 +00:00
Lyndon Brown 9930ce1ea5 grub-efi: fix image type check ordering
this should take place before working on efi related stuff

Gbp-Dch: Short
2020-03-12 09:59:44 +00:00
Lyndon Brown a9d8aac959 grub-efi: fix incorrect error handling 2020-03-12 09:59:44 +00:00
Lyndon Brown d9f353c737 remove obsolete fdisk hack
8321653cb3 (from 2007) introduced a hack to
work around bug #445304 in gnu-fdisk for users who may have replaced fdisk
with the classic gnu version. the hack allowed users to select an alternate
fdisk binary to use to work around the buggy binary.

bug #445304 is marked as found in v1.0-1 and fixed in v1.2-1, though may
have been fixe din v1.1. it was marked fixed in 2009.

checking the package archive, gnu-fdisk does not actually exist anymore
in debian, with one exception - it is available for arm64 on sid via
debports, and that version is 1.3 so thus includes the necessary fix
anyway.

it is thus pointless now that we still carry this hack.

Gbp-Dch: Short
2020-03-11 19:06:54 +00:00
Lyndon Brown dab716e079 "Live Systems" -> "Debian Live" 2020-03-11 15:23:31 +00:00
Lyndon Brown fe02946472 copyright: add missing "The Debian Live team" entry
I'd mistook the copyright here to apply to the apt package, but did not
look close enough, it's clearly referring to copyright of the files which
we've just amended to have a "The Debian Live team" notice, which this
should thus surely also have.

Gbp-Dch: Short
2020-03-11 15:15:46 +00:00
Lyndon Brown 7a4a9f94b8 amend copyright & licensing blocks
Current versions of the project files are built upon versions published
and licensed by Daniel Baumann, but are modified copies of those files and
thus need to be marked as such per licensing requirements (afaik he did
not pass along ownership / licensing rights to anyone when he left the
project). We should also be careful to not be misrepresenting such
modified copies as being attributed to Daniel.

Adding a new copyright line referring to "The Debian Live team" should
suffice for this.

The authorship block in man pages has also similarly been updated.

Notes:
 - tweaked a copy of daniel copyright lines stating 2014 instead of 2015.
   both of these cases were in files that i had personally introduced in
   some of my past merged commits that moved some code around. i don't know
   why they stated 2014.
 - binary_onie was introduced in 2018, so that has a 2018 date instead of
   2016 unlike the rest.
 - 'efi-image' is a 3rd-party (Canonical Ltd) work that we bundle, but it
   has been modified by 674794a8f4 and
   36a3ba7634 so I similarly added a
   debian live copyright line.
 - 'grub-cpmodules' is similar. it was only changed by the indentation fix
   of 36a3ba7634 but modification is
   modification, and this does help cover any possible future changes that
   might be made.
2020-03-11 13:51:19 +00:00
jnqnfe 87e9543c98 source: target downloads with corresponding version
Prefer downloading the version of the source package that actually
corresponds to the version of the binary. Should apt-update be
run and a package updated, we do not really want to fetch a newer
copy of the source than that of the binary, we want the exact
corresponding version (kinda the whole point of compiling a source
disc that they correspond). If the exact version is no longer
available then it is surely preferable to list it in the missing
list than end up with a newer version.

Gbp-Dch: Short
Closes: #952932
2020-03-11 11:45:27 +00:00
Lyndon Brown f1647f0dac functions: consistency fix
missed in 7ee59d408e

Gbp-Dch: Ignore
2020-03-11 09:56:53 +00:00
Lyndon Brown 6cec4a7a74 exit: fix no /usr/bin/env error
if you execute the bootstrap stage with no internet connection, you get
the following output:

```
[2020-03-10 19:18:46] lb bootstrap
P: Setting up clean exit handler
[2020-03-10 19:18:46] lb bootstrap_cache restore
[2020-03-10 19:18:46] lb bootstrap_debootstrap
P: Begin bootstrapping system...
P: If the following stage fails, the most likely cause of the problem is with your mirror configuration or a caching proxy.
P: Running debootstrap (download-only)...
I: Retrieving InRelease
I: Retrieving Release
E: Failed getting release file http://deb.debian.org/debian/dists/buster/Release
P: Begin unmounting filesystems...
P: Saving caches...
chroot: failed to run command ‘/usr/bin/env’: No such file or directory
```

the last line looked suspicious. investigating it turns out that there was
a deficiency in the exit handler.

when debootstrap fails to download what it needs due to lack of a
connection, that failure due to `set -e` causes the Exit() handler to kick
in. Part of this includes outputting the "Saving caches..." line, before
then making a call to Save_package_cache(). That in turn runs the following
command:
```
Chroot chroot "apt-get autoclean" || true
```
The Chroot() function includes a line starting with:
```
${_LINUX32} chroot "${CHROOT}" /usr/bin/env
```
which is the source of the last output line.

the reason we see this unexpected output is that with bootstrapping having
failed, there is no /usr/bin/env within the chroot so it is bound to fail.

the fact is, the exit handler has no business trying to pretty much
anything that it does if the bootstrap_debootstrap stage has not
completed.

this implements such a restriction and thus resolves the problem of this
unexpected and confusing output in the described situation.

we will now see:
```
[2020-03-10 19:18:46] lb bootstrap
P: Setting up clean exit handler
[2020-03-10 19:18:46] lb bootstrap_cache restore
[2020-03-10 19:18:46] lb bootstrap_debootstrap
P: Begin bootstrapping system...
P: If the following stage fails, the most likely cause of the problem is with your mirror configuration or a caching proxy.
P: Running debootstrap (download-only)...
I: Retrieving InRelease
I: Retrieving Release
E: Failed getting release file http://deb.debian.org/debian/dists/buster/Release
```
2020-03-11 09:55:37 +00:00
Lyndon Brown 744141c60f source: fix apt warnings
the source stage emitted the following output for each packages downloaded.
note the troubling warning at the end.

```
Reading package lists... Done
NOTICE: 'grep' packaging is maintained in the 'Git' version control system at:
https://salsa.debian.org/debian/grep.git
Please use:
git clone https://salsa.debian.org/debian/grep.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 1579 kB of source archives.
Get:1 http://deb.debian.org/debian buster/main grep 3.3-1 (dsc) [2038 B]
Get:2 http://deb.debian.org/debian buster/main grep 3.3-1 (tar) [1473 kB]
Get:3 http://deb.debian.org/debian buster/main grep 3.3-1 (diff) [104 kB]
Fetched 1579 kB in 1s (1293 kB/s)
Download complete and in download only mode
W: Download is performed unsandboxed as root as file 'grep_3.3-1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
```

this occurred because the '_apt' user did not have permission to write to
the destination directory and so was falling back to downloading as root
in order to do its work.

prior to 158950b873 all source packages were
downloaded directly to the root of the chroot. that commit changed this to
save them into a new clean directory within it instead. thus to fix the
problem we can simply set the ownership of this new directory to '_apt'.

Gbp-Dch: Short
2020-03-10 18:11:21 +00:00
Lyndon Brown e3da1b6f8d debootstrap: remove redundant check
the check for existence of debootstrap here was completely redundant since
there is a check at the beginning of the file which already outputs an
appropriate error and exists if missing.
2020-03-10 17:47:41 +00:00
Lyndon Brown d79fd1e760 archives: fix typo
introduced in ee2bbe4578

Gbp-Dch: Ignore
2020-03-10 17:36:10 +00:00
Lyndon Brown 48df750411 config: improve documentation 2020-03-10 14:12:45 +00:00
Lyndon Brown 9faf9bcbed hooks: run bin without explicit path
this got lost in reworking 7ee59d408e

Gbp-Dch: Short
2020-03-10 13:59:01 +00:00
Lyndon Brown 24f04a924b chroot: clarify stages
the cache restore/save script is not a chroot modification script unlike
the rest of the scripts that it was bunched up with. It is an actual
component part of the chroot build stage.

let's bring clarity to this with improved documentation.

Gbp-Dch: Short
2020-03-10 12:51:55 +00:00
Lyndon Brown 9f2b7b40e8 archives: always include enabled/disabled deb-src apt entries
LB_APT_SOURCE_ARCHIVES determines whether or not deb-src entries are
desired to be included in apt's sources.list. here, instead of excuding
them we always include them but commented out where they would previously
have been excluded. this means that if a user later changes their mind and
wants to make use of them all they have to do is uncomment them rather
than add the necessary lines.

Gbp-Dch: Short
Closes: #952929
2020-03-10 12:50:39 +00:00
Lyndon Brown ee2bbe4578 archives: simplification
as suggested by Raphaël

Gbp-Dch: Short
2020-03-10 12:49:36 +00:00
Lyndon Brown cf2a9b951c arguments: fix unreachable and poor argument error handling
all scripts use `set -e` which means that if getop fails, the subsequent
error check that would print an error in addition to any printed by getopt
itself would never actually be reached.

the first though here would be to remove the pointless error check, but
getopt does not include the word "error" with an unrecognised option
failure, nor does it use colour to highlight problems, both of which mean
that it is a little lacking in terms of highlighting problems to users.

thus we properly capture and use the exit code here and output an
appropriate message per invalid argument vs getopt internal error.

also, removed the redundant stderr redirection which is already done
by Echo_error().

Gbp-Dch: Short
2020-03-10 12:45:23 +00:00
Lyndon Brown d6096622f9 help/usage: remove pointless vars
build scripts never call Help() and so the empty HELP strings are pointless.
(when called with --help they call Man()).

Closes: #952859
Gbp-Dch: Short
2020-03-10 12:45:23 +00:00
Lyndon Brown 9f1fdac303 help/usage: simplify
Gbp-Dch: Ignore
2020-03-10 12:45:23 +00:00
Lyndon Brown bc199a73b6 help/usage: fix output of `lb config --usage`
broken by d0eb72a5ef

also, needed spaces before per-script output

Gbp-Dch: Ignore
2020-03-10 12:45:23 +00:00
Lyndon Brown 4e45586daf help/usage: fix too many empty lines
Gbp-Dch: Ignore
2020-03-10 12:45:23 +00:00
jnqnfe 158950b873 source: downloaded pkgs to a clean directory rather than chroot root
Closes: #952931
2020-03-10 12:44:11 +00:00
jnqnfe feec626274 source: minor tweaks
Gbp-Dch: Ignore
2020-03-10 12:44:11 +00:00
jnqnfe 532144ce66 chroot: improve directory creation/destruction efficiency
Closes: #952924
2020-03-10 12:41:15 +00:00
jnqnfe 0dee07f122 config: rename the config set/check functions for clarity
Gbp-Dch: Short
Closes: #952920
2020-03-10 12:39:37 +00:00
Lyndon Brown b4598b234c tidy script init (4/4) - top level cmd "auto redirect" handling
Partial fix for #952919

Gbp-Dch: Short
Closes: #952919
2020-03-10 12:39:37 +00:00
jnqnfe dff08fa3f7 tidy script init (3/4) - top level commands
Partialfix for #952919

Gbp-Dch: Short
2020-03-10 12:39:37 +00:00
jnqnfe 061d7cb340 tidy script init (2/4) - build stage scripts
Partial fix for #952919

Gbp-Dch: Short
2020-03-10 12:39:37 +00:00
jnqnfe b49abcc1a8 tidy script init (1/4) - arg and config processing
Partial fix for #952919

Gbp-Dch: Short
2020-03-10 12:39:37 +00:00
jnqnfe ed2d70bde1 simplify STAGE checks - use In_List
Closes: #952917
2020-03-10 00:02:43 +00:00
Lyndon Brown 62b3efa686 echo: fix bad colour choice
white is not going to work well on a terminal with a white background,
obviously. We should keep the standard colour and just try applying the
bold.

or do we want to consider a non black/white colour? like blue...?

Gbp-Dch: Short
2020-03-09 12:52:08 +00:00
Lyndon Brown a6c4094cf0 echo: don't mangle backslashes for file printing 2020-03-09 12:47:08 +00:00
Lyndon Brown 8545c048c6 use actual boolean state for some simple vars
Gbp-Dch: Ignore
2020-03-09 11:21:24 +00:00
Lyndon Brown 2c78d36bd5 use actual bool state where applicable within functions 2020-03-09 11:17:53 +00:00
Lyndon Brown 093a5ea99c installer: use boolean for clarity
Closes: #952930
2020-03-09 10:58:53 +00:00
Lyndon Brown e5d006cbc0 archives: tidy deb-src exclusion
instead of conditionally writing deb-src lines, it is **much** neater if
we use sed to optionally removed them at the end.

Gbp-Dch: Short
Closes: #952928
2020-03-09 10:54:23 +00:00
Lyndon Brown 7ee59d408e fix consistency in binary execution and existance checking
- prefer using `which` over hard coded paths
 - it is redundant to check that the bin pointed to the return of
   `which` exists and is executable, `which` already gives us
   assurance of that if it returns true!
 - the redirection of output (`2>/dev/null`) seems to be
   unnecessary from my testing.

the instances relatnig to fdisk and losetup in functions/defaults.sh have
been left as they are since they get executed by `lb config` which can run
without sudo elevation unlike `lb build` and in that case `which` would
fail to find these binaries resulting in error.

this also fixes a bug showing an error for missing debootstrap - this tool
requires sudo privileges to run and thus is not found via a none elevated
which search.

Gbp-Dch: Short
Closes: #952927
2020-03-09 10:51:11 +00:00
Lyndon Brown 37f0432e98 fix inadequate chroot_archives validation
commit d74f2102a0 added a validation check
to chroot_archives for its 'pass' parameter. this was based upon finding
an instance where the wrong value was being submitted to the script and
wanting to ensure such mistakes would be caught.

unfortunately it seems that I made a mistake in misremembering the facts
surrounding the latter issue when constructing the validation check and
failed to double check with testing until it was already merged. a
correction is needed. the set of valid values is not limited to only
'source|binary' but actually 'source|binary|chroot'. I'd misremembered
'chroot' as being a completely invalid value.
2020-03-09 10:51:11 +00:00
jnqnfe 7624527d77 defaults: ensure global caching param overrides specific caching params if disabled
Closes: #952923
2020-03-09 10:38:09 +00:00
jnqnfe 8008b57fc2 source: add output of config readme file to source image
To provide an explanation

Gbp-Dch: Short
Closes: #952921
2020-03-05 22:35:52 +00:00
Lyndon Brown 4d0c3a1169 firmware: enable caching for archive content file with firmware lists
the existing logic for obtaining a list of firmware packages always
downloaded a fresh copy of the archive content file, deleting the file
already in the cache. here we move to actually making use of the cache.

this helps when building multiple times, at least for the same distro. the
package list obtained is rarely going to change after all. it could of
course differ between distros, but the cache is per-distro, as it has
always been.

we of course here switch to caching each of the archive-area files
individually rather than having one file that gets overwritten (or
appended to in the case of when we kept the decompressed file).

Gbp-Dch: Short
Closes: #952911
2020-03-05 22:13:57 +00:00
Lyndon Brown 7867641fd0 firmware: save the compressed contents file to disk instead of decompressed
the existing logic was to decompress the contents file from the downloaded
archive to disk, then process it to obtain a package list. the largest
one by far is for 'main'; 'non-free' and 'contrib' are tiny in comparison.
for sid-amd64 currently, the archive file is 37 MB, while the decompressed
file it contains is 592.3 MB.

we always delete the files and download afresh (currently), and a previous
commit optimised by deleting the files once we're done with them to avoid
wasting disk space leaving them behind.

here we switch to storing the downloaded compressed file to disk instead,
reducing disk space usage (and IO) by hundreds of megabytes; piping the
decompression directly into awk instead of having awk read from the stored
file.

this moves the appending of new items into the list back within the archive
area loop, which is fine since we're replacing the file for each loop now
so the previous issue relating to appending is of no concern.

Gbp-Dch: Short
Closes: #952910
2020-03-05 22:13:57 +00:00
Lyndon Brown a120bc5445 firmware: avoid potentially duplicate work
addressing an old fixme, should distro and parent-distro be identical (in
a derivative build) we want to avoid wasting effort downloading and
processing the same content files twice.

since parent and non-parent have separate archive-area lists though we
should perhaps not just assume that they are identical or ignore any
differences; thus here in such a situation we ensure that we handle any
archive areas not already done for parent-distro handling in such a case,
while skipping those already done.

i notice that the fixme actually also refers to avoiding actual
overlapping of the cached files, however the cached files are (currently)
always ignored anyway, so this is of no concern. reusing the cached files
is an entirely separate issue.

Gbp-Dch: Short
Closes: #952909
2020-03-05 22:13:57 +00:00
Lyndon Brown 94d126c043 firmware: reorder firmware list construction
the 'manually add firmware-linux package' bit was stuck inbetween the
parent and non-parent logic, which was especially unhelpful before we
de-duplicated the logic into a common function.

Gbp-Dch: Short
2020-03-05 22:13:57 +00:00
Lyndon Brown aa745de0bb firmware: de-dup firmware list parsing
Edit: There were four copies of the same logic to keep in sync;
Originally this patch deduplicated each file, but leaving a copy of
the new function in each, thus reducing the duplication but not
eliminating it. A later patch moved it into a shared function file
following further enhancements to the code in question. This has
since been revised to have the function moved to a shared file here,
which simplifies and gives a cleaner diff.

Gbp-Dch: Short
Closes: #952908
2020-03-05 22:13:57 +00:00
Lyndon Brown 4933beffce firmware: delete pointlessly cached (large) file after use
the archive content file downloaded to obtain a list of firmware packages
is always deleted and downloaded afresh currently. it may not be ideal that
we do not make use of the cache here, however while that remains
unaddressed, we might as well delete the file after we've used it in order
to not pointlessly waste disk space.

note that this file is ~613 MB for sid-amd64 currently.

Gbp-Dch: Short
Closes: #952907
2020-03-05 22:13:57 +00:00
Lyndon Brown c53a949325 firmware: fix possible duplication in firmware package lists (inefficiency)
where multiple archive areas are used, the code here on each loop is:
  1) fetching the archive area contents file (compressed)
  2) **appending** the output to that of the previous loop
  3) searching the file for firmware references, adding to the list

since it appends rather than replaces, entries found in each loop get
re-added on each subsequent loop, resulting in duplication in the
resulting list

below I evaluate the possible solutions to explain why I chose the one
I chose, however the reader should not waste too much time worrying about
whether one of the other solution would have actually been better because
things are changed significantly in further commits shortly!

possible solutions:
  a) switching to output (>) rather than append (>>), but this might fail
     against an existing file
  b) removing the file on each loop, but this will complicate any future
     caching improvements that might be made here (currently the files are
     always deleted and thus downloaded fresh)
  c) allow the appending, evaluating the complete file after the loop

solution C warrants consideration of disk space consumption; currently the
compressed 'main' archive (for sid on amd64) expands to 592.3 MB (feb-2020),
'contrib' is 3.1 MB, and 'non-free' is 18.5 MB.

solution C was chosen here; the difference of accumulated file size vs.
max-single was minor enough to not be of particular concern (~613 vs.
~592 MB).

Gbp-Dch: Short
Closes: #952906
2020-03-05 22:13:57 +00:00
Lyndon Brown a951fe7ba6 firmware: construct file location once and reuse 2020-03-05 22:13:57 +00:00
Lyndon Brown c140efe41e firmware: avoid building unnecessary lists 2020-03-05 22:13:57 +00:00
jnqnfe 055907592c cache: clarify and simplify package cache save/restore
These functions are specific to handling packages stored in the
cache, not other files. They are also always used with the same
`cache/packages.` prefix to the path.

Gbp-Dch: Short
Closes: #952916
2020-03-05 22:09:20 +00:00
jnqnfe c1dcc4dd89 aliases: simplify excessively complex In_list function
This function is never used to find multiple needles at one time.

Gbp-Dch: Short
Closes: #952915
2020-03-05 22:07:50 +00:00
Lyndon Brown 0869a890ae installer: download udebs directly from correct mirror
instead of trying all from derived mirror then falling back to parent upon
failure, which as pointed out by a message printed out can result in a
load of spurious 404 errors; actually get each udeb from the mirror it is
supposed to be retrieved from.

Partial fix for #952914, this is the last commit for it so closes it

Gbp-Dch: Short
Closes: #952914
2020-03-05 21:34:38 +00:00
Lyndon Brown b54bdd7fb1 installer: filter derived udebs from parent list
the existing logic just bundled the entire parent and derived udeb lists
together, ignoring the fact that there might thus be two instances of some
packages, and relying upon getting derived ones first and checking file
existence to avoid handling the overridden parent instances.

here we now actually filter the list of parent udebs to exclude packages
that are to be obtained from the derivative.

this enables avoiding the file existence checking

Partial fix for #952914

Gbp-Dch: Short
2020-03-05 21:34:38 +00:00
Lyndon Brown 2e3f195c38 installer: robustify udeb inclusion
move the code that checks whether a version of a given package has already
been obtained (to account for parent and derived both listing the same
package) to guard the copy from cache action also, not just the download
action.

in rare but possible scenarios it would have been possible to end up with
both the parent and derived copies of a package included.

Partial fix for #952914

Gbp-Dch: Short
2020-03-05 21:34:38 +00:00
Lyndon Brown 6997f99c9f installer: improve documentation a little
Gbp-Dch: Ignore
2020-03-05 21:34:38 +00:00
Luca Boccassi b13a61d519 Fix Lintian Warnings about changelog: day-of-week, trailing whitespace 2020-03-05 21:23:54 +00:00
jnqnfe ac4ba405df archives: deduplicate apt sourcelist file construction
Geez :O

Gbp-Dch: Short
Closes: #952889
2020-03-05 21:08:53 +00:00
Lyndon Brown cac44b28d5 echo: tidy
Gbp-Dch: Ignore
2020-03-05 21:04:23 +00:00
Lyndon Brown 450fb25fbd binary_onie: fix lack of newline on error
this script outputs a series of progressive dots as progress is made,
finally terminated with ' done.'. however if an error occurs then the
error would end up being printed directly on the end of this instead of
on a new line since newlines are not printed after each dot. this fixes
this oversight.

Gbp-Dch: Short
Closes: #952883
2020-03-05 21:04:23 +00:00
Lyndon Brown f3209fead2 binarie_onie: fix missing use of echo helpers
the '.' progress stuff has been left as is. perhaps that should be removed
since its use is inconsistent compared to other scripts?

Gbp-Dch: Short
Closes: #952882
2020-03-05 21:04:23 +00:00
Lyndon Brown c90749056f binary_iso: fix wrong echo helper
Closes: #952881
2020-03-05 21:04:23 +00:00
Lyndon Brown e13713c18e cursor: purge unused cursor functions
only a couple were in use and only by unused echo helpers which have now
themselves been removed, so nothing in this file is needed.

Partial fix for #952880

Gbp-Dch: Short
Closes: #952880
2020-03-05 21:04:23 +00:00
Lyndon Brown 73c1100c01 echo: purge unused *_running echo helpers
Partial fix for #952880

Gbp-Dch: Short
2020-03-05 21:04:23 +00:00
Lyndon Brown 06f632efdf echo: purge some unused echo helpers
Partial fix for #952880

Gbp-Dch: Short
2020-03-05 21:04:23 +00:00
Lyndon Brown 57a9428080 echo: direct warnings via echo helper to stderr 2020-03-05 21:04:23 +00:00
Lyndon Brown e3a987d977 echo: ensure output goes to stdout/stderr
all of these echo helpers are essentially 'logging' functions with output
always intended for stdout/stderr. lack of explicit stdout/stderr direction
means that their output could be captured unintentionally should they be
used within a function designed to construct a string.

Gbp-Dch: Short
Closes: #952879
2020-03-05 21:04:22 +00:00
Lyndon Brown b8e3a27324 echo: fix problem with error printing
lack of stderr directed output for the `E:` prefix meant that it would
not appear alongside the message in some use cases

Gbp-Dch: Short
Closes: #952878
2020-03-05 21:04:22 +00:00
jnqnfe a45dcf46f6 fix missing use of echo helpers
Closes: #952876
2020-03-05 21:04:22 +00:00
jnqnfe a67e01638f help/usage: fix overly complex script description handling
Closes: #952887
2020-03-05 20:48:49 +00:00
jnqnfe aa858eb2c8 binary_disk: refactor
Avoid all of the duplication for each installer case

Note, what is done for the netboot case (which was previously missing)
still needs addressing

Gbp-Dch: Short
Closes: #952865
2020-03-05 20:42:31 +00:00
Lyndon Brown 8b109ffb96 config: rename --architectures to --architecture
this has only ever supported specifying a single arch, thus was confusing
being plural

Gbp-Dch: Short
Closes: #952892
2020-03-05 20:39:53 +00:00
jnqnfe 49e4608cff chroot: fix redundant usage line
Closes: #952885
2020-03-05 20:38:36 +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 512dd58240 archives: fix mount local repo comments
Closes: #952873
2020-03-05 20:36:21 +00:00
Lyndon Brown 5c3679c882 add missing shebangs to temp generated shell code files
Closes: #952863
2020-03-05 19:25:13 +00:00
Lyndon Brown 7fb46c464b chroot_dpkg: start-stop-daemon simplification
inspired by what it does for `/usr/sbin/flash-kernel`

Gbp-Dch: Short
Closes: #952891
2020-03-05 11:52:01 +00:00
Lyndon Brown 2f5ae873b0 bootloaders: fix ignoring LB_DEBIAN_INSTALLER_GUI in menu creation
LB_DEBIAN_INSTALLER_GUI defines whether or not to provide the graphical
installer. the installer_debian-installer script pays attention to it and
does not download it if not wanted. the actual bootloaders however
(both grub2/loopback and syslinux) ignore it, which leaves broken and
unwanted menu entries. this fixes that.

Gbp-Dch: Short
Closes: #952890
2020-03-05 11:48:04 +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 6002f89b67 source: fix mistaken append instead of overwrite
Closes: #952862
2020-03-05 11:34:17 +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 f3544ff68e installer: de-dup daily DI url
Closes: #952860
2020-03-05 11:32:14 +00:00
Lyndon Brown 95fedc81c1 help/usage: fix usage string of top level script
Gbp-Dch: Ignore
Closes: #952858
2020-03-05 11:31:09 +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
Lyndon Brown a96107a3f1 manpage: fix missing mention of a config file
this is the last commit for the set reported as #952856 and thus closes it

Gbp-Dch: Ignore
Closes: #952856
2020-03-05 11:28:19 +00:00
Lyndon Brown cb0f943c43 manpage: better explain --distribution
some might think "distribution" refers to "debian"/"ubuntu"/"redhat"/etc

Gbp-Dch: Short
2020-03-05 11:28:19 +00:00
Lyndon Brown 09b24a5dd6 manpage: add non-free firmware note 2020-03-05 11:28:19 +00:00
Lyndon Brown ba08531da3 manpage: fix wrong description for --firmware-binary
--firmware-binary adds firmware to d-i, --firmware-chroot adds to live

Gbp-Dch: Short
2020-03-05 11:28:19 +00:00
Lyndon Brown 6b1f616824 manpage: fix typo
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown ace111863d manpage: clarification
"they" -> "who" (two uses of "they" referring to different things)

Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 569d256162 manpage: clarification
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 54f19a3efe manpage: ubuntu support was dropped
...so remove obsolete mentions

Gbp-Dch: Short
2020-03-05 11:28:19 +00:00
Lyndon Brown b3f9580da2 manpage: fix missing stage mention
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 54f77db4f1 manpage: document --system default
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 78f361a571 manpage: clarify
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 887bb3ccd5 manpage: grammar
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown f15d1af0ea manpage: fix typo
"automatise" -> "automate"

Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 888f63eb86 manpage: actually explain the purpose of the option in the description
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 1a8377de7d manpage: better explain --debian-installer-gui
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 3c5b687aed manpage: clarity
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 0d86c79880 manpage: clarity
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 3cb4608d2b manpage: fix package cache explanation
"from the local mirror" suggested that live-build is always used with a
local mirror, which is not the case.

Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown bc4fc322b5 manpage: clarity
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 23bd035708 manpage: fix typo
"the their"

Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown cdb44f4bcc manpage: fix typo
"of each packages" -> "of each package"

Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 09c4f89263 manpage: fix typo
"to be build" -> "to be built"

Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown c2fb7516ee manpage: source archives clarification
Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown 14a56deb0e manpage: use upper case acronyms
not sure that ISO is an acronym, but included anyway

Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown aed4e0fef2 manpage: explain specifying multiple bootloaders 2020-03-05 11:28:19 +00:00
Lyndon Brown 009ddccaed manpage: fix poor bootloaders description 2020-03-05 11:28:19 +00:00
Lyndon Brown 28d2e88ba8 manpage: separate first and secondary build commands
`lb build` is a top level command and the one most users will want. listing
the secondary component build stages alongside it just confuses things.

here we clarify things by moving the second-level build stages to a
separate list.

Gbp-Dch: Short
2020-03-05 11:28:19 +00:00
Lyndon Brown 4037226376 manpage: fix typo
"know" -> "known"

Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown a150e0573d manpage: fix typo
"some times" -> "sometimes"

Gbp-Dch: Ignore
2020-03-05 11:28:19 +00:00
Lyndon Brown d8ad687c36 manpage: fix outdated component list 2020-03-05 11:28:19 +00:00
Lyndon Brown 513befa3f5 manpage: fix possible parent installer values
the parent one allows "daily" also

Gbp-Dch: Short
2020-03-05 11:28:19 +00:00
jnqnfe c48caf36fd binary: fix missing handling of disk info for netboot case
The specifics of what whould be done for it, beyond the disk info
label, needs addressing. (fixme comment left). (#952854).

Partial fix for #952846

Gbp-Dch: Short
Closes: #952846
2020-03-05 11:22:20 +00:00
jnqnfe 42a9deb871 source: fix missing handling of disk info for netboot case
Partial fix for #952846

Gbp-Dch: Short
2020-03-05 11:22:20 +00:00
Lyndon Brown fde401a9ac installer: fix unquoted string
Gbp-Dch: Ignore
Closes: #952851
2020-03-05 11:18:20 +00:00
jnqnfe 63f374b861 binary_rootfs: fix chmod of squashfs image only being applied when using chroot
Perhaps it is unnecessary in the other case, but not harm applying
in both to be certain.

Gbp-Dch: Short
Closes: #952850
2020-03-05 11:17:04 +00:00
jnqnfe eac4757a89 binary_rootfs: fix deletion of excludes file from wrong location in squashfs after use
Closes: #952849
2020-03-05 11:12:56 +00:00
jnqnfe 769cf6e7b7 bootstrap: only output message where actually applicable
Gbp-Dch: Ignore
Closes: #952848
2020-03-05 11:10:45 +00:00
jnqnfe 849873daca bootstrap: drop obsolete check for `--no-check-gpg` support in debootstrap
This has been present in debootstrap since version 1.0.30.

Gbp-Dch: Short
Closes: #952847
2020-03-05 11:09:41 +00:00
jnqnfe 0d4b464370 binary: fix missing use of chroot_dpkg in binary stage
update feb-2020: the bug report is marked as fixed in version 5.0-a7-1,
however there is no such patch merged for that tagged release, nor at all
in master, so this properly closes it.

Gbp-Dch: Short
Closes: #776532
2020-03-05 11:07:28 +00:00
jnqnfe 2791a0d1e4 grub2: fix using wrong directory in certain cases
Update feb-2020:
Both grub2 and syslinux were affected by this issue. Someone else's
patch fixing syslinux only just recently got merged in
2735f3bd38 but grub2 was still
affected. I had made patches for both in 2015 which never got
merged. This is the grub2 one.

Gbp-Dch: Short
Closes: #952843
2020-03-05 11:06:30 +00:00
Raphaël Hertzog f60b0a2747 Add some initial changelog
I do this to manually add the bug closure for #952834 and #952834
since they were merged with an invalid bug closure syntax. Same
for #952839 which also was tagged with "Gbp-Dch: Ignore" thus not
generating any changelog entry... a changelog entry is required
to be able to close a bug!
2020-03-05 11:13:18 +01:00
Lyndon Brown 9c062e1f8b archives: fix deb-src entry exclusion
the sed commands were missing '-i' to actually modify the file (rather
than output to stdout)

Gbp-Dch: Short
Closes: #952842
2020-03-05 09:46:56 +00:00
Lyndon Brown 666dc9f6f2 bootstrap_archives: remove unnecessary param default
all uses of this script pass in a suitable 'pass' param, and a previous
commit added a validation check. Having a fallback to 'binary' should a
param not be supplied is completely unnecessary.

fyi, this script is only ever called from the bootstrap stage and with
'binary' as the param, thus supporting being called with 'source' and
indeed having a 'pass' param at all is surely utterly pointless in itself.

Gbp-Dch: Ignore
2020-03-05 02:41:48 +00:00
Lyndon Brown d74f2102a0 archives: add 'pass' param validation check
if this had already been in place then it would have caught
bug #952837.

Gbp-Dch: Short
Closes: #952841
2020-03-05 02:41:26 +00:00
Lyndon Brown ae2012953b archives: fix incorrect usage string
Gbp-Dch: Ignore
Closes #952839
2020-03-05 02:40:59 +00:00
jnqnfe f3ebc44e13 archives: fix removal of chroot/root/packages.chroot package list
Gbp-Dch: Short
Closes: #952838
2020-03-05 02:40:42 +00:00
jnqnfe 25b44ac8df source: fix wrong action value for script execution
valid values are binary|source, and source should have been
used here.

Gbp-Dch: Short
Closes: #952837
2020-03-05 02:39:52 +00:00
jnqnfe 6adb5976b6 remove another redundant file
Originally removed in 42fb1e1976
Accidentally restored in bc50443cf0

(Closes #952835)
2020-03-01 08:38:05 +00:00
jnqnfe 1efc6d5adf remove redundant file
18e0a2f325 "rebranded live sources" which
included renaming `source_debian-live` to `source_live` but accidentally
left the old file in place.

(Closes #952834)
2020-03-01 08:37:22 +00:00
David Hewitt 2735f3bd38 binary_syslinux: Acommodate LB_INITRAMFS not live-boot 2020-02-17 10:37:27 +00:00
Raphaël Hertzog 2127283494 Standardize on having the GUI installation first in boot menus
debian-cd changed it that way, we already have it that way in EFI
boot, let's be consistent.
2020-01-23 16:47:04 +01: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 1e7f3d53df Update changelog for 1:20191221 release 2019-12-19 21:08:17 +01:00
Raphaël Hertzog f64b73a718 Revert some Kali-specific change
That change was erroneously committed as part of
44b9b0a650
2019-12-19 21:05:54 +01:00
Raphaël Hertzog f828238417 Update changelog for 1:20191220 release 2019-12-19 19:16:27 +01:00
Raphaël Hertzog 34fa2dc5c2 Switch to debhelper compat level 12 2019-12-19 19:13:28 +01:00
Raphaël Hertzog 311348983b Bump Standards-Version to 4.4.1 2019-12-19 19:13:24 +01:00
Raphaël Hertzog 30b9a391ac Fix "--debian-installer cdrom" and its interaction with binary_package-lists
apt-ftparchive is not able to differentiate between .deb and .udeb so
we have to install them in different pool directories so that we can
regenerate the Packages files without having the .udeb show up
unexpectedly.

Since binary_package-lists can overwrite the Packages files generated
in installer_debian-installer we have to ensure that it also updates
the Release file created formerly.

Ideally we should find a way to avoid the duplication of this logic.

Gbp-Dch: Full
2019-12-19 19:07:59 +01:00
Raphaël Hertzog cba349e5d0 Update my email in the Maintainer field
The work I do on live-build is done as part of the work I do for Kali.
2019-12-19 19:02:30 +01:00
Raphaël Hertzog ab70d2b636 Update changelog for 1:20191219 release 2019-12-19 18:58:43 +01:00
John Estabrook b6ad08c270 Add local archive keys before configuring local package repository
In the binary stage, chroot is restored from cache/bootstrap, which contains
neither custom repo lists, nor keys. If local packages are present,
chroot_archives will call 'Apt chroot update' after adding custom repo lists
without adding keys. apt-get will then fail instead of warn as of apt version
1.5.

Closes: #941691
2019-12-19 18:52:05 +01:00
Ronny Standtke 97e8070b72 Run binary_hooks after binary_grub-efi
That way it becomes possible to customize grub-efi files.

Closes: #940846
2019-12-19 18:24:55 +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 e7221c02f3 Tweak lintian overrides 2019-12-19 17:33:52 +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
Raphaël Hertzog 04ea46d07b binary_package-lists: avoid messing with dpkg's status file
Instead of emptying the file temporarily, just tell APT to use /dev/null
instead of /var/lib/dpkg/status. Relates to #944983
2019-12-19 15:54:54 +01:00
Roland Clobus 1682c5c8d1
Manpage: Update the default values of --mirror-* and --parent-mirror-* 2019-06-22 13:58:54 +02:00
Roland Clobus 14d82a8065
Manpage: use 3rd person form when describing an option 2019-06-22 13:08:57 +02:00
Roland Clobus 137ec1559c
Manpage: simplify the description 2019-06-22 13:05:59 +02:00
Roland Clobus 6ed2715e23
Manpage: the configuration directory (config) cannot be modified 2019-06-19 13:26:16 +02:00
Roland Clobus a9dba166ad
Manpage: removed FIXME for the SYNOPSIS section, all options are now listed 2019-06-19 13:20:15 +02:00
Roland Clobus a2d2065dec
Manpage: removed incorrect mentioning of the -d command line option 2019-06-19 13:11:11 +02:00
Roland Clobus 5aaf2181b8
--mirror-binary* was not properly sorted 2019-06-19 13:07:10 +02:00
Roland Clobus e7a629fb02
Manpage: Use alphabetical order for the description of the command line options 2019-06-19 13:05:24 +02:00
Roland Clobus a50dbe2567
Manpage: typo 2019-06-19 12:27:06 +02:00
Roland Clobus 0a97e7c069
Manpage: consistent use of whitespace in the command line option list 2019-06-19 12:26:07 +02:00
Roland Clobus a957982203
Manpage: added missing \fR tags 2019-06-19 12:25:13 +02:00
Roland Clobus 1837f6a40b
Reordered the command line options to make them in alphabetical order 2019-06-16 13:12:06 +02:00
Roland Clobus a844199e30
Manpage: Added documentation for --bootstrap-qemu-[arch|exclude|static] 2019-06-16 12:47:29 +02:00
Roland Clobus 58a82854a4
Manpage: Added documentation for --loadlin 2019-06-16 12:47:29 +02:00
Roland Clobus aef1b75233
Manpage: Added documentation for --swap-file-path and --swap-file-size 2019-06-16 12:47:29 +02:00
Roland Clobus c8fddcd702
Manpage: Added documentation for --firmware-binary and --firmware-chroot 2019-06-16 12:47:29 +02:00
Roland Clobus 554c37fd9e
Manpage: --parent-archive-areas uses the same argument name as 'lb config --help' 2019-06-16 12:47:29 +02:00
Roland Clobus 7c02640b62
Manpage: --mode explicitly supports debian and progress-linux. Special handling for ubuntu was dropped 2015-05-03 2019-06-16 12:47:29 +02:00
Roland Clobus 05ed83a2b6
Manpage: Added documentation for --hdd-label, --hdd-size and --hdd-partition-start 2019-06-16 12:47:28 +02:00
Roland Clobus 6c6151d0c9
Manpage: Added documentation for --image-name 2019-06-16 12:47:28 +02:00
Roland Clobus c54aa22bf6
Manpage: Added documentation for --initsystem 2019-06-16 12:47:28 +02:00
Roland Clobus ab8c09eca1
--initramfs support none and live-boot 2019-06-16 12:47:28 +02:00
Roland Clobus e9af6d559f
Manpage: Removed references to command line options that are no longer
in the code:
--firmware-binary
--firmware-chroot
--hooks
--parent-mirror-chroot-updates
--parent-mirror-chroot-backports
--parent-mirror-binary-updates
--parent-mirror-binary-backports
--mirror-chroot-updates
--mirror-chroot-backports
--mirror-binary-updates
--mirror-binary-backports
--templates
2019-06-16 12:47:28 +02:00
Roland Clobus f8f09c77c7
Manpage: Added documentation for --zsync 2019-06-16 12:47:28 +02:00
Roland Clobus ae5a77aedb
Manpage: --config synchronised to 'lb config --help' 2019-06-16 12:47:28 +02:00
Roland Clobus 9a4c334a55
Manpage: --compression also accepts xz. The default is none 2019-06-16 12:47:27 +02:00
Roland Clobus 75733ac554
Manpage: Added documentation for --breakpoints 2019-06-16 12:47:12 +02:00
Roland Clobus 45e45a8a22
Matched the documentation of --checksums to the implementation in live-boot 2019-06-16 12:44:13 +02:00
Roland Clobus d9961a8a54
Manpage: --binary-filesystem also accepts ntfs 2019-06-04 08:04:42 +02:00
Roland Clobus a5f69d0d73 Fixed a typo for --clean in 'lb config --help' 2019-06-03 10:48:58 +00:00
Roland Clobus 8466086428 Mention --breakpoints in 'lb config --help' 2019-06-03 10:48:58 +00:00
Roland Clobus 3c88667c2d Removed option --bootstrap, which is not implemented. 2019-06-03 10:48:58 +00:00
Roland Clobus c166c87497 Removed option none for --apt-indices, which was removed in 3.0.2-1. 2019-06-03 10:48:58 +00:00
Roland Clobus 3607219f69 Do not store _QUIET in the configuration file, otherwise the overrides
in the command line get ignored. Adds a documentation line for the other
command line options as well.
2019-06-03 10:48:58 +00:00
Roland Clobus 0e03c34edb Removed obsolete short command line options.
-f was --filesystem
-l was --language
-p was --package-list
-e was --encryption
2019-06-03 10:48:58 +00: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 c4abbbcc7e Reenabled the command line option for colored messages for lb_config. The functionality was added 2008-11-01, but was not really active. 2019-06-03 10:48:58 +00:00
Matthijs Kooijman f62a6f9dea Remove ldlinux.c32 for extlinux and syslinux
Since syslinux 5.00, this file is installed into the disk root by the
extlinux and syslinux installer commands. For pxelinux and isolinux,
these files still need to be added manually. This is documented at:

https://wiki.syslinux.org/wiki/index.php?title=Library_modules#All_Syslinux_variants_need_an_additional_ldlinux_module

Keeping these unused files around is probably only confusing, so better
to remove them.
2019-05-30 16:14:51 +02:00
adrian15 39038173a8 Readd findiso parametre to loopback.cfg generation. 2019-04-21 18:59:29 +02:00
Roland Clobus e4a4d4ae8d Run the pipeline only for master 2019-04-18 11:59:40 +00:00
Roland Clobus a93539e8e8 Added pipeline definition 2019-04-18 11:59:40 +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 599ef4892e
Updated URL for po4a. 2019-04-17 21:06:58 +02:00
Roland Clobus 91da0772fc
Updated URL for reporting bugs. 2019-04-17 21:05:30 +02:00
Roland Clobus 4503eddbed
Updated URL to the manual. 2019-04-17 21:03:23 +02:00
Roland Clobus afbf61be5a
Updated URL to the manual. 2019-04-17 21:02:34 +02:00
Roland Clobus 9726058c41
Update homepage URL. 2019-04-17 21:00:52 +02:00
Roland Clobus d8eb2d4d1b
Updated homepage URL. 2019-04-17 21:00:02 +02:00
Matthijs Kooijman 3227d34966 Remove --templates from lb_config manpage
This option was removed in commit 7e633e77f (Moving grub and grub2
templates into shared bootloader config directory.), but the
documentation stayed around.
2019-04-16 17:25:12 +02:00
Luca Boccassi bd7c900d3e Open changelog for 1:20190315, close 884553 2019-03-15 14:35:36 +00: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
Luca Boccassi a410b8345d Close 924293 in d/changelog 2019-03-11 10:53:44 +00:00
Luca Boccassi 613f20d368 Update changelog for 1:20190311 release 2019-03-11 10:08:40 +00:00
Luca Boccassi e06d0f4c2a Bump Standards-Version to 4.3.0, no changes. 2019-03-11 10:08:29 +00:00
Hideki Yamane f242323fa2 We should add buster for release
Building image will fail without this directory for buster
2019-02-17 14:51:24 +00: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 069d0d7b5a Update changelog for 1:20180925 release 2018-09-25 14:28:21 +01:00
Luca Boccassi cc1341ab4a lintian: override error on dependency on e2fsprogs
It's an error on Stretch, which causes annoyances when backporting.
2018-09-20 13:00:18 +01:00
Luca Boccassi 66839c4346 Bump Standards-Version to 4.2.1. 2018-09-20 12:02:50 +01:00
Luca Boccassi b2a760de57 Add Rules-Requires-Root: no. 2018-09-20 12:02:50 +01:00
Luca Boccassi 4db6471248 Build-Depend on debhelper >= 10~ to facilitate backports.
Not used at the moment, but it will be in the future when we bump it,
so that we don't forget
2018-09-20 12:02:45 +01:00
Luca Boccassi f108fdfa71 UEFI: remove the EFI/debian/grub.cfg, not necessary anymore
Turns out gcd works fine after adding /boot/grub/grub.cfg in the img,
as that's the path that gets hardcoded, and adding the EFI/debian/
grub.cfg was not necessary, so remove it.
2018-09-19 11:35:17 +01:00
Steven Shiau c22f1f5b71 Use gcd{x64.aa64}.efi.signed for amd64/arm64 arch.
For secured boot in binary_grub-efi, the gcdx64.efi.signed is
the boot loader for removable device, like CD or USB flash drive,
while grubx64.efi.signed is for hard drive. Therefore for live system,
use gcdx64.efi.signed for amd64 and gcdaa64.efi.signed for arm64.
2018-09-19 11:34:22 +01:00
Marcel Partap 8403487d4e copy keys to /etc/apt/trusted.gpg.d with appropriate extension for them to not be ignored. 2018-09-13 16:25:09 +01:00
Raphaël Hertzog 5290842288 Handle includes.chroot files installed over symlinked directories
With the merged /usr feature now enabled in debootstrap, we have
/bin and /lib which are symlinks to /usr/bin and /usr/lib. If
the live-build configuration provides files in
config/includes.chroot/lib/ or config/includes.chroot/bin/ then
lb chroot_includes will replace the /lib or /bin symlink with real
directories having only the content provided in chroot.includes and
problems will follow... the build will usually fail later with a
cryptic error message (for example a hook failing to execute
/usr/bin/env).

Work around the issue by creating a tarball of the files to install
and by unpacking that tarball from within the chroot with appropriate
options.
2018-07-27 10:51:49 +02:00
Luca Boccassi 332c170c3b Update changelog for 1:20180618 release 2018-06-18 12:03:14 +01:00
Luca Boccassi be7bc0a9ff Bump Standards-Version to 4.1.4, no changes. 2018-06-18 12:02:40 +01:00
Luca Boccassi 316b128158 UEFI: parse vendor from Grub package metadata
When using Secure Boot, grub2 as built by Debian will now load a config
file from EFI/$VENDOR instead of having EFI/debian hardcoded.
$VENDOR comes from dpkg-vendor or from the user building grub2.
The vendor string is stored in the control metadata as Efi-Vendor, so
retrieve it when building the EFI image.
2018-06-07 11:34:26 +01:00
Luca Boccassi e5492b1c70 Avoid apt-key add and just drop the key in /etc/apt/trusted.gpg.d
Only gnupgv is part of the deboostrap set these days, but apt-key needs
the full gpg (with gpg-agent) which is just a recommends.
Instead just drop the key with an .asc suffix in /etc/apt/trusted.gpg.d
which is supported since apt version 1.4
2018-06-03 22:06:36 +01:00
Luca Boccassi 186765e3fd lb clean: remove ONIE image 2018-04-17 11:39:26 +01:00
Luca Boccassi b3ec8d5978 Update changelog for 1:20180411 release 2018-04-11 16:13:10 +01:00
Luca Boccassi b062ede56c Fix debian/NEWS date to match an actual release
The NEWS file had a temporary version so it was never shown to users.
Fix it.

Gbp-Dch: Ignore
2018-04-11 16:13:10 +01:00
Luca Boccassi 277f0cec71 Reconfigure bootstrapped packages after preseeding.
live-build supports preseeding configuration, but the configuration has
to be installed after bootstrapping since it needs the debconf tools to
be applied. But packages that have already been installed and configured
in the bootstrap step will then ignore those preseeded configs.

After applying each preseed file, parse the package list and manually
reconfigure the relevant package(s) so that the configuration will be
applied.
2018-04-10 21:58:00 +01:00
Luca Boccassi da01193965 Don't recommend gzip, it's essential
Fixes Lintian Error.

Gbp-Dch: Ignore
2018-04-10 18:46:17 +01: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 050e637b2c ONIE: do not use package cache, only runs on host
Gbp-Dch: Ignore
2018-04-05 16:24:36 +01:00
Luca Boccassi a0335ac4a4 ONIE: add Recommends for programs needed by binary_onie
The binary_onie script needs a few programs to run, and it uses them on
the host rather than in the chroot, so add them to the Recommends list.
2018-04-05 16:23:50 +01:00
Luca Boccassi e47652d841 ONIE: missing dependency on file
A very minimal build worker might not have it, so check for its
presence as well.
2018-04-04 19:57:49 +01:00
Luca Boccassi 2aff516e1f ONIE: Check_package in the host, not the chroot
The binary_onie script works on the host, not in the chroot (if used),
so don't check that the required packages for the script are installed
in the chroot (if present) as they won't be useful.
Check instead on the host.
2018-04-04 19:56:41 +01:00
Luca Boccassi 44e0d3520e Update changelog for 1:20180328 release
Set urgency to low to allow for more time in unstable
2018-03-28 20:22:01 +01:00
Luca Boccassi 919604643b Add myself to Uploaders. 2018-03-28 20:20:24 +01:00
Luca Boccassi 76a90f31b5 Bump Standards-Version to 4.1.3. 2018-03-28 18:42:53 +01:00
Luca Boccassi 7f5d8ef9e9 Use HTTPS in debian/copyright (policy 4.0.0). 2018-03-28 18:40:23 +01:00
Luca Boccassi c1948b4183 ONIE: detect initrd compression instead of hard-coding
Instead of hard-coding the decompression and compression formats,
detect them at runtime.
Install the required dependencies as well - they were mistakenly left
out.

Gbp-Dch: Ignore
2018-03-23 20:01:58 +00:00
Luca Boccassi 0e91aeea42 Add Acquire::AllowInsecureRepositories to fix apt-secure in sid
The apt-secure option does not work anymore when building a sid image,
as with apt 1.6 the existing options are no longer enough to get apt
to accept an unsigned repository, which is necessary when using a
local cached repository (offline build).

Pass Acquire::AllowInsecureRepositories "true"; together with the
other options when --apt-secure false is used to fix the issue.
2018-03-23 16:02:52 +00: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 8047c2425a Add NEWS file to warn users about change of live-boot mount paths 2018-03-22 14:46:40 +00:00
Luca Boccassi aa1ae83854 UEFI: use uppercase EFI directory name for Tianocore
The Tianocore reference UEFI implementation, used for example by Qemu,
wants the EFI directory name to be uppercase in the fat32 partition
when Secure Boot is enabled, and will fail to load otherwise.
2018-03-09 20:57:54 +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
Luca Boccassi ac3ed23638 UEFI: add minimal grub.cfg to fat32 partition
On some UEFI implementations, like the AMI found in the Supermicro
X10SDV-TP8F development board, the fat32 partition will be loaded
first and so Grub will set it the root, and then drop to the console
as it cannot find any config on it.
Add a minimal grub.cfg that allows Grub to find the main config on
the ISO 9660 partition and load it.
Closes: #892406
2018-03-09 10:43:39 +00:00
Steven Shiau 0effdbd8ef Add grub-based UEFI boot support for ARM64
Closes: #885692
Fixes: !2
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2018-03-02 09:09:29 +01:00
Raphaël Hertzog 06d81b6710 Update changelog 2018-02-24 17:56:10 +01:00
Rohan Garg 952ac834e4 Simplify bootstrapping of foreign architectures with qemu-debootstrap
We already require qemu-user-static for this case, we might as well rely
on the qemu-debootstrap script that this package provides.

Closes: #847919
2018-02-24 17:52:44 +01:00
Raphaël Hertzog 842e971a65 Run mksquashfs with nice -n 19 to not overload the system
Machines tend to become unresponsive during the mksquashfs step.
Avoid this by lowering the priority of the process.

Thanks: Ronny Standtke for the patch.
Closes: #867539
2018-02-24 17:04:04 +01:00
Raphaël Hertzog ee8d06c46c Merge branch 'fix_offline_repo' into 'master'
Fix build with local offline mirrors

See merge request live-team/live-build!1
2018-02-23 16:39:38 +00:00
Luca Boccassi 9a0c6102fd Fix build with local offline mirrors
Commit a15b579652 (#775989) dropped an early exit from the
chroot_archives remove step in case the parent mirror chroot and binary
parameters are the same and introduced a regression, as with the
following live-build now fails when the parent mirror is using a file:/
local apt repository (for example when the build worker is offline and
uses a pre-built cache of packages).

Example config:

  lb config --mirror-bootstrap "file:/pkgs" \
    --mirror-chroot "file:/pkgs/" \
    --mirror-binary "file:/pkgs" \
    --parent-mirror-bootstrap "file:/pkgs" \
    --parent-mirror-chroot "file:/pkgs/" \
    --parent-mirror-binary "file:/pkgs" \
    ...

with /pkgs being a directory with the packages for the installation and
the apt metadata (Packages/Sources/Release).

The problem is that, with such a setup, the /pkgs directory is bind
mounted inside the chroot as an optimisation in the install step,
and umounted as one of the first actions in the remove step for
chroot_archives.

Before that fix, the script terminated immediately. But now it
progresses and at the end it tries to run apt update inside the chroot
which will fail since the repository directory has been umounted, and
thus the packages and the apt metadata are no longer available, while
still being listed in /etc/apt/sources.list.

The proposed solution is to umount the local directory at the end of
the remove step, rather than at the beginning.

Closes: #891206
2018-02-23 14:04:59 +00:00
Raphaël Hertzog 96e73960b3 Fix Check_package invocation in binary_hdd for ntfs-3g
/sbin/mkfs.nfts -> /sbin/mkfs.ntfs
2018-02-14 18:49:36 +01:00
Raphaël Hertzog bf73aede69 Add e2fsprogs to Suggests along with mtd-utils, parted
Closes: #887278
2018-02-14 15:44:54 +01:00
Steve McIntyre c221f10cc1 Repo moved to salsa 2018-02-09 20:04:42 +00:00
Adrian Gibanel Lopez acafe6618b Failsafe entries rework at binary_loopback_cfg
[hertzog@debian.org:
- Fix conflicts due to renamed variables
]

Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2017-12-21 14:29:58 +01:00
Adrian Gibanel Lopez d3edb76ad4 Fix handling of multiple kernels in binary_loopback_cfg
Now grub.cfg shows all the kernel options. Before this patch when you
had more than two kernels it only showed the auto option.

Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2017-12-21 14:22:36 +01:00
Adrian Gibanel Lopez f77034606e Updated binary_loopback_cfg so that it uses Stretch's 686 kernel instead of old 486 one.
[hertzog@debian.org:
Also rename the variables for consistency.
]

Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2017-12-21 14:16:57 +01:00
Raphaël Hertzog d33943ea7a Prepare release to unstable 2017-12-07 20:30:12 +01:00
Raphaël Hertzog 9f3e5fe8d9 Fix the way the .disk/mkisofs file is created
Thanks to Daniel Reichelt <debian@nachtgeist.net> for the patch.

Closes: #881941
2017-11-20 22:20:53 +01:00
Balint Reczey dae94463e4 Don't fail when initramfs is not used
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2017-11-20 22:09:49 +01:00
Raphaël Hertzog 1f1dce740e Use $SOURCE_DATE_EPOCH when updating timestamps of manual pages
This makes the package reproducible at build time.

Closes: #879169
2017-11-20 22:04:35 +01:00
Raphaël Hertzog ee3e8be5b7 Prepare for release 2017-09-20 10:02:01 +02: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 72ca3bcb20 Handle hardlinks in binary_hdd
To generate an hdd image, binary_hdd first estimates the needed size of
the image using du. By default, when du finds multiple hardlinked copies
of a file, it counts them only once. However, when the target filesystem
is FAT, which does not support hardlinks, these files will take up more
space when finally copying the contents, breaking the build:

	P: Copying binary contents into image...
	cp: error writing 'chroot/binary.tmp/live/initrd.img-4.9.0-3-amd64': No space left on device
	cp: error writing 'chroot/binary.tmp/efi/boot/bootx64.efi': No space left on device
	cp: error writing 'chroot/binary.tmp/efi/boot/bootia32.efi': No space left on device
	cp: cannot create directory 'chroot/binary.tmp/boot/grub': No space left on device
	cp: cannot create directory 'chroot/binary.tmp/isolinux': No space left on device

To fix this, pass --count-links to du when the target is FAT, to make
the space estimation correct.

This problem is exposed by commit 9c974b26b (Instead of renaming kernel
for syslinux, create hardlinks), which might need to be separately fixed
(to not waste space on FAT targets), but binary_hdd should at least
handle hardlinks more gracefully.
2017-09-01 10:29:20 +02:00
Raphaël Hertzog fb2a525207 Add changelog entry 2017-09-01 10:25:58 +02:00
Matthijs Kooijman 036b6161f2 Check all dependencies independent of LB_BUILD_WITH_CHROOT
Since commit fdc9250bc (Changing package dependency checks within chroot
to work outside as well), Check_package automatically checks for
LB_BUILD_WITH_CHROOT and works inside as well as outside of the chroot,
so no need to check LB_BUILD_WITH_CHROOT before calling them.
Install_package and Remove_package are just a no-op when building
without chroot, so they can also be called unconditionally.
Restore_cache and Save_cache do not check LB_BUILD_WITH_CHROOT but it
it should not hurt to call them when not needed (which already happened
in some cases).

This commit makes all Check_package calls unconditional on
LB_BUILD_WITH_CHROOT.

For binary_syslinux, this fixes the check (which used outdated paths
outside the chroot since 7b6dfd9d1), for binary_grub-efi,
binary_package-lists and chroot_package-lists this simplifies the code
(but also causes the check to become package-based instead of file-based
on apt-based systems), and for binary_loadlin and binary_win32-loader
this adds the check outside the chroot which was previously missing.
2017-09-01 10:22:09 +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 e8118e8e0a Update changelog 2017-08-29 15:16:28 +02:00
Raphaël Hertzog 0c7fbccc5c Auto-update version strings in manual pages. 2017-08-29 15:14:04 +02:00
Raphaël Hertzog 37840d9cb2 Fix version strings in manual pages 2017-08-29 15:07:32 +02:00
Raphaël Hertzog c5a334deb8 Update PREPARER data for consistency 2017-08-29 15:06:35 +02:00
Raphaël Hertzog 4bba8ebb11 Prepare release to unstable 2017-08-29 14:17:07 +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 2fe6afe460 Initialize /etc/default/locale with LANG=C.UTF-8
That way we always have a valid UTF-8 locale even when we don't have
the "locales" (or "locales-all") package installed.
2017-08-29 12:26:33 +02:00
Raphaël Hertzog ff71712590 Add .disk/mkisofs file recording the xorriso command line
Thanks to Thomas Schmitt <scdbackup@gmx.net> for the suggestion.
2017-08-10 14:53:53 +02:00
Raphaël Hertzog 406dd06610 Prepare release to unstable 2017-08-07 17:30:07 +02:00
Raphaël Hertzog e38ad8ae66 Drop the --hardlinks option from xorriso command line call 2017-08-07 17:27:32 +02:00
Raphaël Hertzog d18d0dfe2a Add keyboard shortcut on the "Advanced options" syslinux menu entry
Thanks to Daniel Reichelt <debian@nachtgeist.net> for the patch.

Closes: #864386
2017-06-09 13:41:13 +02:00
Raphaël Hertzog dd7d4392c8 Prepare release to unstable 2017-02-13 16:58:06 +01: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 eedcb4dce5 Prepare release to unstable 2016-12-16 10:05:54 +01:00
Raphaël Hertzog 10a5580c3a Fix english mistakes in lb_config(1) 2016-12-16 10:03:45 +01:00
Raphaël Hertzog 75aa6dec5b Minor updates to lb_config and its manual page
* Update the manual page with the missiong --bootappend-live-failsafe
  option.
* Keep supporting the former --bootloader (without s).
2016-12-16 10:00:36 +01:00
Raphaël Hertzog 50b6a29523 Cleanup binary_loopback_cfg and offer more freedom in overriding the default grub-pc configuration. 2016-12-14 12:33:07 +01:00
Raphaël Hertzog 92dfdd2a3f Prepare release to unstable 2016-12-02 23:34: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 f7bb86fd58 Clean up grub configuration code
* Use only long kernel names.
* Put advanced options in a submenu.
* Use distro-agnostic labels.
* Don't generate entries with kernel version when we have a single
  version.
2016-12-02 23:04:13 +01:00
Raphaël Hertzog 9c974b26bf Instead of renaming kernel for syslinux, create hardlinks 2016-12-02 15:42:59 +01:00
Raphaël Hertzog b8f7f19015 Fix version of live-build that is displayed by lb --version
Now we generate the VERSION file at install time or at package build time.
2016-12-02 15:23:20 +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 58fd378005 Drop useless code in binary_grub-pc 2016-12-02 15:01:28 +01:00
Raphaël Hertzog 4204a74352 Drop useless code in binary_grub-efi 2016-12-02 14:57:45 +01:00
Raphaël Hertzog fb0d4e2a18 Use a grub theme that integrates reasonably well with the current background picture. 2016-12-02 14:50:21 +01:00
Raphaël Hertzog e1941f82ab Bump version to 20161128 2016-11-28 23:27:46 +01:00
Raphaël Hertzog 53eab12a24 Fix lintian warning about bad whatis entry 2016-11-28 23:23:24 +01:00
Raphaël Hertzog 69345cfd4d Bump Standards-Version to 3.9.8. 2016-11-28 23:16:18 +01:00
Raphaël Hertzog b91b7de87a Fix permission on functions/bootloaders.sh 2016-11-28 23:15:38 +01:00
Raphaël Hertzog 4457f912c3 Fix dh_link not working as expected 2016-11-28 23:09:54 +01:00
Raphaël Hertzog fb0137810c Bump debhelper compat level to 10. 2016-11-28 23:07:18 +01:00
Raphaël Hertzog db5b398a71 Small cleanup of debian/rules 2016-11-28 23:07:18 +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 5a169a6fe6 Drop gpgv and debian-keyring from Suggests 2016-11-28 21:54:18 +01:00
Raphaël Hertzog a15b579652 Drop an optimization in chroot_archives that has undesired side-effects
Thanks to jnqnfe for the patch.

Closes: #775989
2016-11-28 21:48:18 +01:00
Raphaël Hertzog d8ca2041ad Get rid of useless bootstrap_archive-keys script
Closes: #773775
2016-11-28 21:36:57 +01:00
Raphaël Hertzog 63af37b9c5 Copy sub-directories as well as files in grub config directory
This is to cover the case of a theme included in that directory.
2016-11-28 21:05:06 +01:00
Raphaël Hertzog 2ea1329746 Drop left-over translation files for removed lb_testroot command. 2016-11-28 20:58:19 +01:00
Raphaël Hertzog 6c6f34d92d Manual pages updates
Thanks to jnqnfe for the patch.

Closes: #774730
2016-11-28 20:58:19 +01:00
Raphaël Hertzog 164f23368e Support “lb config --debootstrap-script <script>”
This option lets you use an alternate bootstrap script when running
debootstrap. Thanks to Sjoerd Simons <sjoerd@debian.org> for the initial
patch.

Closes: #790033
2016-11-28 20:58:19 +01:00
Raphaël Hertzog 822459c7b2 Set xorriso's "modification time" to SOURCE_DATE_EPOCH
Thanks to Chris Lamb <lamby@debian.org> for the patch.

Closes: #831379
2016-11-28 20:58:19 +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
Raphaël Hertzog db1bc0a1b8 Ignore some lintian errors which are making debuild fail... 2016-11-28 20:58:19 +01:00
Raphaël Hertzog 23b3e729c5 Add changelog entries for changes committed by Kilian Krausen 2016-11-28 20:58:18 +01:00
Sjoerd Simons c12f7d715e Pass components to debootstrap --second-stage
Commit e24e4b in debootstrap fixed setup_available to work in the
--foreign case (iotw at the second stage). Unfortunately this breaks
things if components aren't passed to the second stage _and_ your main
component isn't called main.

To fix this, pass --components to both the first and second stage
debootstrap when needed.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2016-11-28 20:58:18 +01:00
Raphaël Hertzog f152f99599 Drop debian/source/{local-options,options} as they are no longer needed. 2016-11-28 20:58:18 +01:00
Raphaël Hertzog 674794a8f4 Try to reuse /isolinux/splash.png in default grub configuration. 2016-11-28 20:58:18 +01:00
Raphaël Hertzog 2f061569ac Officially adopt the package
Closes: #808048
2016-11-22 18:02:13 +01:00
Raphaël Hertzog 742e584ad4 Update changelog 2016-10-28 09:15:29 +02:00
Sophie Brun e92dbc3696 Handle packages.chroot with an explicitly trusted file:// repository
Up to now we created a temporary GPG key that we registered with apt-key
but with the switch to GnuPG 2 by default, this code broke. Now we stop
doing that but we add the “trusted=yes“ attribute in sources.list so
that APT knows that the repository can be trusted even if it's unsigned.

Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2016-10-28 08:57:37 +02:00
Raphaël Hertzog 6e0b98ce05 Update Debian changelog 2016-09-02 16:14:17 +02:00
Adrian Gibanel Lopez 7667d5faa7 Readded Installation boot entries to grub configuration files. 2016-08-26 20:23:02 +02:00
Adrian Gibanel Lopez 2d61dcc53c Force the use of insmod all_video in grub.cfg so that we do not boot in blind mode in UEFI mode. 2016-07-31 15:09:13 +02: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 7becd08e4d Added EFI support by the means of grub-efi
This work is based on debian-cd team work and uses,
as much as possible, the same mkisofs options
than the Debian Installation CD disk does.

It assumes that /boot/grub/grub.cfg (and other design items)
is generated by: binary_loopback_cfg .

It relies on efi-image and grub-cpmodules being setup
as build scripts on live-build package.
In the future event of these two files being moved
to a binary package (they are originally from:
src: live-installer) the binary_grub-efi script would have
to be rewritten to take the new paths into account.
2016-07-31 15:09:13 +02:00
Adrian Gibanel Lopez 9cebad25f9 Handle multiple bootloaders properly in binary_iso . Force mkisofs to add an additional eltorito entry if we have more than one bootloader. 2016-07-31 15:09:13 +02:00
Adrian Gibanel Lopez 58a97219c9 Stolen efi-image and grub-cpmodules from src:live-installer
These two scripts simplify the creation of efi images based on grub-efi.
I have decided to simply steal them. If I had to include them thanks to a source package that would have mean that an src repo would have to be defined by default.
TODO: Ask in a bug a RFE so that these two scripts are put into a binary that could be consumed by both live-installer and live-build packages.
2016-07-31 15:09:13 +02:00
Adrian Gibanel Lopez c4327f6138 binary_loopback_cfg now renders grub.cfg by default.
The binary parts of grub-pc are left for the original binary_grub-pc.
As a consequence both /boot/grub/grub.cfg and /boot/grub/loopback.cfg files will be present in any Debian Live CD.

This might be useful to be reused from binary_grub-* bootloaders.
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 0624064d44 Remove repeated LB_PRIMARY_BOOTLOADER definition 2016-07-31 14:59:33 +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 489a09ba92 Disable EXT4 64bit features
e2fsprogs 1.43 enabled ext4 "64bit" feature as default, which broke ext4
HDD images as EXTLINUX doesn't support it.
2016-06-18 19:36:16 +02:00
Kristian Klausen 5a981664ed Switch d-i.debian.org URIs from http to https.
Closes: #809699
2016-05-26 21:58:03 +02:00
Kristian Klausen 6b0777c53e Fix typo in binary_syslinux
Closes: #818916
2016-05-26 21:57:19 +02:00
Kristian Klausen a8cc708427 Correct syslinux/extlinux mbr.bin path (second try)
dash doesn't support parameter expansion it seems.
So implemented with "tr" as in binary_syslinus.
2016-05-26 21:26:36 +02:00
Kristian Klausen ddc6659002 Correct syslinux/extlinux mbr.bin path
Fix #773833
2016-05-26 17:34:22 +02:00
Kristian Klausen 090c6f3cea Revert "Correct syslinux mbr.bin path."
This reverts commit 5161dcdf3b.
2016-05-26 17:33:20 +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 1ccb416230 Add symlinks for libgpl.c32 and libmenu.c32
They are required for the "Hardware Detection Tool (HDT)" menu entry that
live-build adds in the advanced menu.

Sponsored-by: Offensive Security
2016-01-08 09:18:35 +01: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
Raphaël Hertzog 4d67c64ba2 Better handle empty package lists.
The fix in a294a46fb9 was not enough.
This should finally resolve the problem when a package list ends
up empty (most notably due to #if evaluating to false).

Sponsored-By: Offensive Security
2016-01-05 18:05:12 +01:00
Iain R. Learmonth b8eb3ab144 Updated changelog for release 2015-12-15 14:23:52 +00:00
Iain R. Learmonth 1f5d81fb32 Change maintainer to QA Group; update Homepage and Vcs-* 2015-12-15 14:06:41 +00:00
Iain R. Learmonth c96c2bbb0c Changing to native source format 2015-12-15 14:02:43 +00:00
Ben Armstrong 1f8975cc60 Remove 586 flavour for i386 architecture. (Closes: #807972) 2015-12-15 14:01:29 +00:00
trebmuh 89040368a8 [l10n] Update French translation for manpages. 2015-12-15 14:00:26 +00:00
Carlos Zuferri 90a4410cf9 Using 'Live Systems Project' as default project in .pot files. 2015-12-15 14:00:25 +00:00
Maximilian Mehnert 2c118b384c scripts/build/binary_hdd: Fix code style 2015-12-15 13:59:49 +00:00
Maximilian Mehnert 46920d22bd Old BIOS: start partition at specific place
Some BIOSes dont't boot from partitions starting at sector 1024.
Some are even more peculiar and only start from sector 63.
This patch adds an option for the binary_hdd target to manually
configure the partition start.
2015-09-23 10:48:46 +02:00
Maximilian Mehnert 8a52e569f5 force link creation when diverting flash-kernel
"ln -s /bin/true chroot/usr/sbin/flash-kernel" fails if the target
already exists.
2015-09-23 10:44:11 +02:00
Adrian Gibanel Lopez b6771e7360 Loopback cfg support.
Development details
--------------------

* This patch has been based originally on: binary_grub2 . It has been
improved thanks to some binary_syslinux bits.

* This patch ensures that binary_loopback_cfg needs is run
before binary_syslinux is run.
The reason is that it reuses some code from binary_syslinux to avoid
problems when binary_syslinux renames the kernel filenames.

* This patch already supports CPU detection

* I haven't tested all the possible scenarios for the script (with the
latest version). When amd64 and 486 Gnu/Linux flavours is used and the
bootloader is syslinux it works ok.

* I have not implemented a disable switch for not generating it.
Usually you always want loopback.cfg to be there.

* Compared to binary_grub2 script I have removed the installation
entries because I did not see any of them in binary_syslinux.

How to test
-----------

These are some steps to easily test if Looback cfg support is working ok.

0) We assume you have generated an iso
1) Make sure you have a partition that Grub understands. Plain ext4 or
vfat should do it.
2) Create directory: /boot/boot-isos/
3) Put the iso file into that directory making sure it has an ISO or iso
extension.
4) Setup your computer to boot from cdrom and use: Super Grub2 Disk
2.00s2 (Hybrid version recommended)
5) Choose Boot manually...
6) Choose Bootable ISOs (in /boot- ... )
7) Choose (the detected) GRUB Loopback Config
(hdN,msodsN)/boot/boot-ios/name-of-the.iso
8) You will be presented your loopback.cfg. Choose anyone of the entries
(unless it does not match your cpu architecture of course).
9) You should boot into your Debian Live without problems (thanks to
findiso boot parametre).

If you ever wanted to test from your grub2 installation instead from
Super Grub2 Disk check: http://www.supergrubdisk.org/wiki/Loopback.cfg
for an example.
2015-08-30 00:04:04 +02: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
Carlos Zuferri d43874c405 Adding missing file extension to hdd images. 2015-08-27 10:17:22 +02:00
Daniel Baumann 4789428101
Releasing debian version 5.0~a11-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2015-08-23 10:58:02 +02:00
Daniel Baumann c0263ca760 Wrap and sort debian control file. 2015-08-14 14:06:43 +02:00
Maximilian Mehnert 5161dcdf3b Correct syslinux mbr.bin path. 2015-08-10 21:57:51 +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 44ab759038
Releasing debian version 5.0~a10-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2015-08-10 19:36:25 +02:00
Daniel Baumann 708c454776 Simplify hooks pattern in Makefile. 2015-08-10 19:20:23 +02:00
Daniel Reichelt f2c1f07ee4 Fix hook scripts location in Makefile 2015-07-26 14:31:59 +02:00
Daniel Reichelt 2a400dc63e Fix check for presence of chroot hooks 2015-07-26 13:44:16 +02:00
Raphaël Hertzog 2792097208 Drop elilo from list of d-i required packages on i386.
It's gone from unstable/testing and has never been really useful
on non-ia64 systems.
2015-07-15 12:05:52 +02:00
Raphaël Hertzog b2dce51156 Do not pass an empty version in APT::FTPArchive::Release::Version (Closes: #789800).
This avoids live-build triggering an apt-ftparchive bug (#693092).
2015-06-24 20:13:34 +02:00
Daniel Baumann f7d2e5a84b Correcting typos in chroot_hooks. 2015-06-15 07:11:03 +02:00
Daniel Baumann 06fb96a10c
Releasing debian version 5.0~a9-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2015-06-06 06:40:39 +02:00
Daniel Baumann c8ccfbc1b3 Removing parent-directory too when cleaning up the config tree bind mount in chroot. 2015-06-05 23:15:19 +02:00
Daniel Baumann 64a82a486c Correcting execution of local source hooks. 2015-06-05 22:29:47 +02:00
Daniel Baumann 3d422634df Correcting execution of local binary hooks. 2015-06-05 22:28:50 +02:00
Daniel Baumann 2fec43b68a Correcting symlinking of hooks in lb config. 2015-06-05 21:35:59 +02:00
Daniel Baumann ca1a31dec6 Installing apt and dpkg updates (if any) first in derivatives mode, then doing dist-upgrade. 2015-05-23 12:42:16 +02:00
Daniel Baumann 50794b1de1 Splitting non-live specific hooks into their own subdirectory within hooks. 2015-05-20 08:19:56 +02:00
Daniel Baumann 3c303e7f53
Releasing debian version 5.0~a8-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2015-05-19 06:27:05 +02:00
Daniel Baumann 1c3891775b Correcting leftover reference to binary_grub in binary. 2015-05-18 12:38:46 +02:00
Daniel Baumann 15a7676863 Actually removing live-build-cgi from control. 2015-05-15 09:14:31 +02:00
Daniel Baumann 66d8b61303
Releasing debian version 5.0~a7-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2015-05-14 13:16:48 +02:00
Daniel Baumann 095e999d0c Removing broken samhain handling (Closes: #785264). 2015-05-14 13:15:45 +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 9bf7c99eed Dropping obsolete template checks within grub helpers. 2015-05-04 20:37:00 +02:00
Daniel Baumann cf68abf417 Renaming grub helper to grub-legacy for consistency. 2015-05-04 20:36:20 +02:00
Daniel Baumann f93fa286d5 Renaming grub2 helper to grub-pc for later grub-efi addition. 2015-05-04 20:33:00 +02:00
Daniel Baumann ffb463f775
Releasing debian version 5.0~a6-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2015-05-04 20:04:23 +02:00
Daniel Baumann 50b0b6f125 Dropping support for upstart.
Ubuntu switched to systemd too, no point in keeping
upstart support arround anymore.
2015-05-03 16:12:30 +02:00
Daniel Baumann 32211e1458 Adding data symlink for stretch. 2015-05-03 16:03:40 +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 d18cb12cc1 Moving hooks to hooks/live, both in live-build sources and live-build configs.
Really soon live-build will support building non-live images out-of-the-box.
Therefore moving hooks into a live specific subdirectory.
2015-05-02 15:42:00 +02:00
Daniel Baumann 1a5fda595f Adding hook to disable tmpfs on /tmp when using sysvinit, previously done by live-config. 2015-05-02 13:58:47 +02:00
Daniel Baumann 320b1ce75e Flattening frontend directory within the source tree. 2015-04-29 08:12:46 +02:00
Daniel Baumann 4077a3de7d Updating example gitignore file. 2015-04-29 08:11:39 +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 7f6b1d71f8
Releasing debian version 5.0~a5-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2015-04-28 07:58:18 +02:00
Daniel Baumann ed197cd852 Overwriting reather than appending content of autorun.inf (Closes: #777359). 2015-04-28 07:58:16 +02:00
Daniel Baumann d0219db4cf Calling lb config in lb build to support building a all-default-image with a simple lb build (Closes: #778327). 2015-04-28 07:58:16 +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 Baumann b1a8ae2e7c Correcting wrong tar command for tarball images, thanks to Yadickson Soto <yadickson@gmail.com> (Closes: #780627). 2015-04-28 07:58:16 +02:00
Daniel Baumann 58bdabe139 Moving cgi to its own source package. 2015-04-28 07:58:14 +02:00
Daniel Baumann d32a3ed292 Removing temporary hack to exclude prism2-usb-firmware-installer, the download homepage seems to work again (Closes: #783433). 2015-04-27 07:50:52 +02:00
Daniel Baumann 9c51918b3b
Releasing debian version 5.0~a4-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2015-04-26 20:21:09 +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
Richard Nelson 1af19fd662 Adding live option for debian_installer in template for l-b-cgi frontend. 2015-04-20 14:31:44 -05:00
Richard Nelson b883aabc6a On status output of running builds only count directories for l-b-cgi frontend. 2015-04-17 14:58:28 -05:00
Richard Nelson b8cc61dfd7 Added output of processing builds to status page for l-b-cgi frontend. 2015-04-17 14:21:08 -05:00
Richard Nelson c73e1ed5a5 Harmonize variables on build status script for l-b-cgi frontend. 2015-04-15 14:10:26 -05:00
Richard Nelson e4813ea818 Initial commit to provide biuld status on l-b-cgi frontend. 2015-04-15 13:58:58 -05:00
Richard Nelson 3e94a68057 Rename LIVE_IMAGE_TYPE to LB_BINARY_IMAGES on l-b-cgi frontend. 2015-04-15 13:43:38 -05:00
victory 994b335f53 Unfuzzy Japanese translation. 2015-04-09 05:23:27 +09:00
Daniel Baumann ca758f9cb4 Adding hook to create locales files. 2015-02-23 22:41:52 +01:00
Richard Nelson adedcf0423 Adding live-build version information to the footer of live-build-cgi footer.html. 2015-02-08 13:20:35 -06:00
Daniel Baumann ba53a1f948
Releasing debian version 5.0~a3-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2015-02-07 06:57:48 +01:00
Daniel Baumann 319866567a Applying patch from jnqnfe <jnqnfe@gmail.com> to correct grub2 bootloader directory within the binary images (Closes: #775316). 2015-02-07 06:56:34 +01:00
Daniel Baumann 0c94983071 Using same logic to create the source/.disk/archive_trace for binary/.disk/archive_trace too (Closes: #774200). 2015-02-07 06:50:28 +01: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 673a8da58b Using -iso-level 3 option for xorriso to work with image sizes beyond 4 GB (Closes: #775424). 2015-01-25 12:17:50 +01:00
Daniel Baumann 1cb6743d1c Correcting typo in stagefile check for includes.chroot. 2015-01-25 10:27:26 +01:00
Daniel Baumann 1f0a9d9ee0 Enabling security and release updates for jessie. 2015-01-25 10:04:13 +01:00
Daniel Baumann ba6b9adeff Updating d-i bootparameter separator for jessie. 2015-01-25 10:02:34 +01:00
Daniel Baumann 1b4424f72f Adding check for isolinux build-depends in chroot. 2015-01-07 10:57:00 +01:00
Daniel Baumann affa96f63e Removing spurious .grep.swp temporary file in source tree. 2015-01-05 18:36:12 +01:00
Daniel Baumann 322a58de75
Releasing debian version 5.0~a2-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2015-01-04 20:07:26 +01:00
Daniel Baumann 242aef5d83 Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
Daniel Baumann 1354704cad Dropping manual include of dbus for live-config-systemd, it's a recommends now. 2015-01-04 19:53:11 +01:00
Daniel Baumann 2309994612 Correcting dependency checks in binary_package-lists (Closes: #774336). 2015-01-04 19:50:58 +01:00
Daniel Baumann 90024a0391 Applying slightly modified patch from jnqnfe <jnqnfe@gmail.com> to show correct win32-loader ico file on windows (Closes: #772781). 2015-01-04 19:37:21 +01:00
Daniel Baumann e1f9abbef1 Dropping unuseful information from bug-script (Closes: #774340).
Historically we tried to have all necessary information
in bug reports, such as version of certain packages used
during the build.

In reality, the only interesting package is debootstrap
on the host system - everything else is taken up from
the mirror from within the chroot and is noted in the
build log.

Users building non-chrooted will have to collect their
information by hand anyway, so it's better to remove
anything but debootstrap.
2015-01-04 19:25:22 +01:00
Daniel Baumann f74ecf1907 Adding gpgv and debian-keyring to suggests for bootstrapping archive keyrings in derivative modes. 2015-01-04 19:14:11 +01:00
Daniel Baumann 68dc2b16e0 Adding apt-utils to recommends (Closes: #774339). 2015-01-04 19:14:01 +01:00
Daniel Baumann 93592a81b6 Dropping some sparc leftovers (Closes: #774196). 2015-01-04 18:58:35 +01:00
Daniel Baumann 30122125be Adding wget dependency in chroot_firmware. 2015-01-04 18:22:53 +01:00
Daniel Baumann 501a2817a5 Updating wget dependency in installer_debian-installer to look for wget on the host system rather than the chroot. 2015-01-04 18:22:03 +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 691305c11e Adding wget to recommends (Closes: #774326). 2015-01-04 18:05:55 +01:00
Richard Nelson 07ccdb1888 Dropping support of config type rescue in frontend/cgi. 2014-12-26 18:56:53 -06: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 2841d696c0
Releasing debian version 5.0~a1-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2014-12-10 08:39:45 +01:00
Daniel Baumann b5e99b5b14 Dropping support for wheezy. 2014-12-10 08:38:42 +01:00
Daniel Baumann a767601f25
Releasing debian version 4.0.4-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2014-12-10 08:24:49 +01:00
Daniel Baumann 8233dd2c4f Ugly hack to force dbus inclusion when using live-config-systemd (Closes: #769635). 2014-12-10 08:23:26 +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 0e9d949c3d Fix typo in variable name (LH_LINUX_FLAVOURS instead of LB_LINUX_FLAVOURS) in installer_debian-installer script, affecting the armel architecture (Closes: #770796). 2014-12-10 07:58:02 +01:00
Daniel Baumann 57dd8c6376 Correcting typo in apt.conf.d directory name, thanks to jnqnfe <jnqnfe@gmail.com> (Closes: #771392). 2014-12-10 07:56:10 +01:00
Daniel Baumann 703b6d1f1f Correcting stage name check in chroot_includes, thanks to jnqnfe <jnqnfe@gmail.com> (Closes: #771377). 2014-12-10 07:54:30 +01:00
jnqnfe ef9b1e8487 Fix missing grub2 option in bootloader selection (Closes: #772671). 2014-12-10 07:51:50 +01:00
jnqnfe 6577c386ae Fix chroot_package-lists script saving to wrong cache (Closes: #771002). 2014-12-10 07:50:00 +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 0290727086 Avoid failing to autocreate live.list.chroot in lb config when using --clean, thanks to jnqnfe <jnqnfe@gmail.com> (Closes: #770637). 2014-12-10 07:45:14 +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 7b6dfd9d16 binary_syslinux: correct the path used to check if the bootloader is available.
The {iso,pxe,ext,sys}linux packages use /usr/lib/{ISO,PXE,EXT,SYS}LINUX/
directories and not /share/{ISO,PXE,EXT,SYS}LINUX/.
2014-12-10 06:26:55 +01:00
Raphaël Hertzog a294a46fb9 Properly support empty package lists.
The user might not have created any package list or it might have
created a packages list that end up being empty due to various #if tests.
We should not fail in those cases.
2014-12-10 06:24:02 +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 e9c1580178 Dropping prism2-usb-firmware-installer which fetches firmware from (at least) temporarily broken website. 2014-11-28 10:38:48 +01:00
Daniel Baumann ef03f67f81 Adding hook to enable cryptsetup (Closes: #767195). 2014-11-10 19:57:33 +01:00
Daniel Baumann 61a166adea Applying patch from Gabriele Gristina <gabriele.gristina@gmail.com> to fix automated checks for using aptitude. 2014-11-10 19:48:53 +01:00
Daniel Baumann a157fbb361
Releasing debian version 4.0.3-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2014-10-25 14:39:17 +02:00
Richard Nelson e2a9114cb3 Correct variable name for apt_indices and adjust sed order for population of build feedback on frontend/cgi. 2014-09-21 19:28:16 -05:00
Daniel Baumann bf8c367e02 Updating to standards version 3.9.6. 2014-09-17 23:10:08 +02:00
Richard Nelson 7376f4e308 Adding cinnamon-desktop to frontend/cgi. 2014-09-14 13:54:08 -05:00
Daniel Baumann afef2c271e
Releasing debian version 4.0.2-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2014-09-12 13:42:57 +02:00
Daniel Baumann 7c00b1b4ac Removing source_includes from toplevel source script, it was a python stub and will come back at a later point. 2014-09-11 06:40:15 +02:00
Daniel Baumann a284af94db Dropping syslinux 6 symlinks from bootloader configs for wheezy.
In general there's no harm in having them as they are not used
on syslinux 4 distributions, however, but it's cosmetically nicer
and the path woudn't match anyway.

But.. since it turned out that we need the second copy of bootloaders
for wheezy anyway as wheezy and jessie are mutually exclusive
regarding paths where syslinux files are located, there's no
point in having them and confusing users with error messages
from cp -aL when stuff can't be dereferenced (which is ok).
2014-09-10 20:44:15 +02:00
Daniel Baumann 9c3b8eb08a Dropping incomplete German manpage translations. 2014-09-09 21:01:54 +02:00
Daniel Baumann cfaa08dfd2 Making check target in manpages makefile comply with the rest. 2014-09-09 21:01:53 +02:00
Daniel Baumann 8eaba8ea5c Making populating of live.chroot.list distribution specific. 2014-09-09 21:00:56 +02:00
victory 75ba99dd27 Add Japanese translations. 2014-09-09 21:00:53 +02:00
victory c736a9743d Fix typos in lb_config.1. 2014-09-09 21:00:49 +02:00
Daniel Baumann d1eae01577 Creating live.list.chroot with live packages in config. 2014-09-04 04:49:05 +02:00
Daniel Baumann b1ce772ab7
Releasing debian version 4.0.1-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2014-08-28 23:26:04 +02:00
Daniel Baumann 50f2ef8712 Dropping leftover testroot call in bootstrap_cdebootstrap and bootstrap_debootstrap. 2014-08-28 23:07:31 +02:00
Daniel Baumann 754ac018b1
Releasing debian version 4.0.0-1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2014-08-28 01:02:56 +02:00
Daniel Baumann c1d85328f8 Restoring old manpages since we're back to the non-python implementation (Closes: #745134). 2014-08-28 01:01:31 +02:00
Daniel Baumann bc50443cf0 Moving partial python rewrite to separate branch, let's do it in the jessie+1 cycle rather than go with the current mixed code. 2014-08-28 00:59:28 +02:00
Ben Armstrong 5fc57865a4 Exclude lib and non-main sections as tasksel does (Closes: #758218). 2014-08-27 23:03:39 +02:00
Daniel Baumann 23b8ec4ff8 Setting default distribution to jessie. 2014-08-24 00:56:56 +02:00
Daniel Baumann 7312ca2d2d Correcting wrong target for /etc/mtab symlink in create-mtab-symlink hook, thanks to Ben Armstrong <synrg@sanctuary.nslug.ns.ca>. 2014-08-22 17:11:30 +02:00
Daniel Baumann 5c16b340e5 Releasing debian version 4.0~alpha39-1. 2014-07-24 05:06:08 +02:00
Daniel Baumann 2a829562c9 Adding second set of bootloader templates for wheezy. 2014-07-24 05:02:11 +02:00
Daniel Baumann dd47358700 Unconditionally replacing bootloader symlinks with syslinux 6 from jessie, this will break building wheezy images (so we have to come up with something better than that prior upload). 2014-07-22 20:26:06 +02:00
Daniel Baumann 1606ed3c5a Enabling syslinux 6 support for jessie as well. 2014-07-22 20:11:56 +02:00
Richard Nelson 951e7b44e4 Include mate-desktop in templates/cgi/debian/form.html 2014-07-15 10:13:19 -05:00
Daniel Baumann 6cfcbbb576 Updating isohdpfx handling for syslinux 6. 2014-06-30 21:05:57 +02:00
Daniel Baumann 802741f84a Releasing debian version 4.0~alpha38-1. 2014-06-25 21:08:54 +02:00
Simon McVittie 114a778b7a If /etc/mtab exists as a file, replace it with a symlink (Closes: #746570). 2014-06-25 20:52:08 +02:00
Daniel Baumann 547f559343 Adding symlink for udeb data for jessie. 2014-06-25 20:43:07 +02:00
Richard Nelson ca941152b4 Add --apt option on frontend/cgi. 2014-06-22 12:15:39 -05:00
Kiel Christofferson 846e8a0795 Replace subprocess.call() with subprocess.check_call().
Using check_call(), a non-zero return value from the subprocess will cause the
desired behavior of an aborted build with a stack trace.
2014-06-17 13:32:37 -04:00
Daniel Baumann e8cbbb09d3 Enabling syslinux 6 support for sid. 2014-06-13 08:39:22 +02:00
Carlos Zuferri 6f8f7f96d2 Adding '--package-version' to po4a options. 2014-05-26 21:25:13 +02:00
Carlos Zuferri 446190515c Adding .po integrity check target to manpages/Makefile. 2014-05-25 14:35:55 +02:00
Daniel Baumann 4b815ee833 Also creating source stagefile in source_debian. 2014-05-07 07:59:44 +02:00
Daniel Baumann 9cbb6865c1 Releasing debian version 4.0~alpha37-1. 2014-05-07 07:01:54 +02:00
Daniel Baumann 6bfcd3689a Adding wheezy legacy handling for syslinux. 2014-05-07 05:27:23 +02:00
Daniel Baumann 604d5f1416 Only removing stage files in lb clean --stage and keep .build around in order for init to detect initialized config directories properly. 2014-05-07 05:22:30 +02:00
Daniel Baumann e84476a7e5 Adding hook to create /etc/mtab as a symlink to /proc/mtab if not already existing (Closes: #746570). 2014-05-01 17:40:11 +02:00
Daniel Baumann 7f1f542cea Updating default boot parameters for live-config 4.x. 2014-04-30 07:16:32 +02:00
Daniel Baumann 4b5d831313 Releasing debian version 4.0~alpha36-1. 2014-04-28 19:51:41 +02:00
Daniel Baumann 21ada8a348 Correcting os.chmod usage in lb init. 2014-04-28 19:48:33 +02:00
Simon McVittie eeb4680557 Truncate /etc/machine-id instead of deleting it.
If /etc/machine-id exists but is empty, systemd will do tricks
with bind-mounts to ensure that a valid transient UUID is bind-mounted
over it, which is exactly what we want for a live system.

If /etc/machine-id does not exist, systemd-journald
will just fail, which is undesirable.
2014-04-28 19:45:52 +02:00
Daniel Baumann 0c3f19cf25 Releasing debian version 4.0~alpha35-1. 2014-04-27 12:40:35 +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 10a6e8e579 Cleaning /etc/hosts as in previous live-build versions (Closes: #744939). 2014-04-27 12:30:02 +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
Daniel Baumann d3a0022d00 Calling init in build as well when automatically populating a new config tree. 2014-04-27 07:18:06 +02:00
Daniel Baumann eca7aca936 Releasing debian version 4.0~alpha34-1. 2014-04-26 08:05:32 +02:00
Daniel Baumann b30ee01e8a Abort early in installer_preseed if d-i is not included on the image (Closes: #745855). 2014-04-26 08:05:32 +02:00
Daniel Baumann 7ae8b0a130 Ensuring correct include directory permissions avoiding tainting of target system in lb init. 2014-04-26 08:05:32 +02:00
Daniel Baumann f78b2a7d25 Adjusting splash.svg filename in embedded syslinux configurations to match code (Closes: #745020). 2014-04-26 08:05:32 +02:00
Daniel Baumann 057a9097e5 Updating sha1sum for recompressed initrd images (Closes: #745205). 2014-04-26 08:05:32 +02:00
Daniel Baumann 9db58d9489 Dropping superfluous comment about recompression initrd images in chroot_hacks. 2014-04-26 08:05:32 +02:00
Simon McVittie c3bd85f0de Run hooks in sorted order (Closes: #745839).
glob.glob() returns files in filesystem order, which is unpredictable
on many modern filesystems.
2014-04-26 08:05:32 +02:00
Daniel Baumann 1867dc1e52 Using cp -a on all non-fat filesystems to copy content into the binary image (Closes: #745824). 2014-04-26 08:05:29 +02:00
Daniel Baumann d86fb1aeb4 Failing in lb config when config wasn't initialized first with lb init (Closes: #744365). 2014-04-25 21:05:37 +02:00
Daniel Baumann cce1e47ce8 Correcting required installer package determination to avoid extra packages, thanks to Benjamin Moody <benjamin.moody@gmail.com> (Closes: #739729). 2014-04-25 21:00:56 +02:00
Daniel Baumann 7a52186c1b Only automatically do replacements within syslinux configs when they are not directories (as they can be in the pxelinux.cfg case), thanks to Antony Messerli <amesserl@rackspace.com> (Closes: #745760). 2014-04-25 20:51:14 +02:00
Daniel Baumann 145418141e Releasing debian version 4.0~alpha33-1. 2014-03-31 21:48:33 +02:00
Daniel Baumann 9491fbe067 Building with dh --parallel. 2014-03-31 21:48:33 +02:00
Daniel Baumann a816109ad7 Releasing debian version 4.0~alpha32-1. 2014-03-02 06:24:45 +01:00
Kiel Christofferson 07d1ff5f9b Include "components" when detecting local scripts.
This can help facilitate development and testing during the python transition.
2014-03-02 06:22:19 +01:00
Kiel Christofferson c8daf8fcfd Allow config command without root privileges. 2014-03-02 06:22:19 +01:00
Kiel Christofferson c9a09a282c Only call shift if args are not empty.
Some shells (like dash) will exit fatally when the shift builtin is called
beyond the last option.
2014-03-02 06:22:19 +01: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
Kiel Christofferson 9240aa3d3e Only grab the latest version of kernel+initrd pair. 2014-02-21 12:56:43 -05:00
Kiel Christofferson a934c03e06 Use LB_INITRAMFS case instead of assuming "live". 2014-02-21 12:56:43 -05:00
Daniel Baumann eb336bb782 Updating copyright notices for 2014. 2014-02-08 17:47:24 +01:00
Daniel Baumann fde942d3bd Releasing debian version 4.0~alpha31-1. 2014-01-07 21:16:23 +01:00
Daniel Baumann 5733ae0fe1 Explicitly building iso images with rock ridge extension. 2013-12-29 12:03:39 +01:00
Diederik de Haas e28ec6094f Updated gitignore file with newly generated files. 2013-12-24 17:12:54 +01:00
Richard Nelson 562be14fcb Adding jessie distribution to l-b-cgi frontend. 2013-12-02 20:39:16 -06:00
Daniel Baumann 6ceaaa1e93 Silencing copying of syslinux themes since users get always distracted about syslinux 6 files not being dereferenced (which can be totally ignored if you're using syslinux 4). 2013-11-26 08:03:57 +01:00
Daniel Baumann 30d2c54194 Pre-emptively removing occurances of the short name of the Debian derivative from Canonical that cannot be named. 2013-11-10 09:33:47 +01:00
Daniel Baumann aaa3b7382f Correcting a few copy/paste errors in *-includes python stubs. 2013-11-10 08:06:45 +01:00
Daniel Baumann e9b5682936 Correcting file open modes in lb-init. 2013-11-07 08:43:33 +01:00
Daniel Baumann d28d053e8c Unfuzzing German translation of lb-binary-hooks.1 2013-11-06 21:03:32 +01:00
chals 5f7833878b Unfuzzying dates in the German translation of the manpages. 2013-11-06 10:40:27 +01:00
chals f2e31782d9 Unfuzzying dates in the Spanish translation. 2013-11-06 10:36:46 +01:00
chals 02c54df1b3 Updating, again, lb-bootstrap-debootstrap manpage, Spanish translation. 2013-11-06 10:33:56 +01:00
chals 2bb3744c42 Translating lb-source-hooks manpage into Spanish. 2013-11-06 10:13:04 +01:00
chals 4e95fffcd0 Translating lb-init manpage into Spanish. 2013-11-06 10:01:25 +01:00
chals 78543ac233 Updating Spanish translation of lb-chroot-hooks manpage. 2013-11-06 09:51:58 +01:00
chals 8cfc3a0713 Updating Spanish translation of lb-bootstrap-hooks manpage. 2013-11-06 09:43:54 +01:00
chals a8020e26e2 Updating Spanish translation of lb-bootstrap-debootstrap manpage. 2013-11-06 09:17:36 +01:00
chals 22932c7e52 Updating Spanish translation of lb-bootstrap-cdebootstrap manpage. 2013-11-06 09:15:06 +01:00
chals 5b87f05ab9 Updating dates in manpages. 2013-11-06 09:10:53 +01:00
Daniel Baumann 6dc7604be7 Adding some notes on coding style in python readme. 2013-11-06 09:52:45 +01:00
Daniel Baumann aeaaf8709e Moving live-build development disclaimer message from lb-config to lb-init. 2013-11-06 09:48:30 +01:00
Daniel Baumann 038b1fa8f6 Moving bootstrapping of derivative archive-keys from config to init. 2013-11-06 08:16:31 +01:00
chals 9f37451f92 Translating lb-source-includes.1 manpage into Spanish. 2013-11-05 21:01:26 +01:00
chals 708256bad6 Fixing copy and paste error in lb-bootstrap-includes.es.1 manpage, Spanish translation. 2013-11-05 20:43:58 +01:00
chals d293243d6b Translating lb-chroot-includes.1 manpage into Spanish. 2013-11-05 20:38:50 +01:00
chals 7f56be1bc6 Translating lb-bootstrap-includes.1 manpage into Spanish. 2013-11-05 20:28:33 +01:00
chals 538ce51a1a Translating lb-binary-includes.1 manpage into Spanish. 2013-11-05 20:16:24 +01:00
Daniel Baumann 0225cd6023 Correcting comment in bootstrap-cdebootstrap. 2013-11-05 19:43:54 +01:00
chals f5523f59f8 Updating small bits in several .po files, Spanish translation. 2013-11-05 19:38:20 +01:00
chals 20bd2904a5 Translating lb-binary-hooks.1 into Spanish. 2013-11-05 19:33:23 +01:00
chals 7a6a9cd732 Fixing typo in lb-binary-hooks.1 manpage. 2013-11-05 19:24:09 +01:00
chals b1470f5fe5 Removing obsolete po4a flag 'no-backups' from manpages/Makefile. 2013-11-05 19:22:19 +01:00
Daniel Baumann 8245c7d0fc Adding --distribution to lb-init. 2013-11-05 12:20:17 +01:00
Daniel Baumann 3a3a4bbfc9 Adding lb-init manpage. 2013-11-05 12:20:16 +01:00
Daniel Baumann 960de852b7 Adding initial stub for lb init.
In the past, we had lb config for both creating a configuration directory
and updating settings in there. With the rewrite in Python, we're now
changing this finally to the more sane 'init' (create initial 'sample'
configuration directory tree, taking most arguments that lb config did)
and 'config' which will only be a get/set program to work on top of
an already initialized configuration tree.
2013-11-05 12:20:11 +01:00
Daniel Baumann 42fb1e1976 Dropping chroot_live-packages by moving logic outside of live-build into the config directory. 2013-11-05 11:16:39 +01:00
Daniel Baumann 19cc16df3f Decrufting depends, recommends and suggests. 2013-11-05 10:52:35 +01:00
Daniel Baumann 3e0c126e2a Creating all includes directories in config. 2013-11-04 19:48:25 +01:00
Daniel Baumann 2e77f83d83 Releasing debian version 4.0~alpha30-1. 2013-11-04 19:10:13 +01:00
Daniel Baumann 6254718202 Adding lb-bootstrap-includes manpage. 2013-11-04 19:04:49 +01:00
Daniel Baumann 0495570394 Correcting error message when no includes have been found in *-includes commands. 2013-11-04 19:00:56 +01:00
Daniel Baumann 4fa62f53fa Adding bootstrap-includes. 2013-11-04 18:59:23 +01:00
Daniel Baumann 3dbe0430d9 Adding lb-source-includes manpage. 2013-11-04 18:55:15 +01:00
Daniel Baumann 8e0188c72c Adding sources-includes. 2013-11-04 18:46:56 +01:00
Daniel Baumann 3ad37ba9f8 Adding lb-binary-includes manpage. 2013-11-04 18:41:36 +01:00
Daniel Baumann 1e04939721 Rewriting binary_includes in python. 2013-11-04 18:33:48 +01:00
Daniel Baumann 0c72f37533 Completing incomplete verbose message when copying files in chroot-includes. 2013-11-04 18:31:55 +01:00
Daniel Baumann 00b2ea2d8a Correcting spelling typo in python stubs (s/optained/obtained/). 2013-11-04 18:29:12 +01:00
Daniel Baumann e9d44e95a5 Adding dependency check for cpio in chroot-includes. 2013-11-04 18:27:57 +01:00
Daniel Baumann 6115270556 Adding lb-chroot-includes manpage. 2013-11-04 18:25:13 +01:00
Daniel Baumann 941f178173 Updating program description of *-hook commands. 2013-11-04 17:51:38 +01:00
Daniel Baumann fee4e8b349 Rewriting chroot_includes in python. 2013-11-04 17:51:36 +01:00
Daniel Baumann 9987bdcc1a Updating todos in python stubs. 2013-11-04 17:21:06 +01:00
Daniel Baumann 9e3863aa8f Switching to later submodule naming scheme for python stubs. 2013-11-04 17:10:22 +01:00
Daniel Baumann f3fe376f61 Removing wrong reference to config/build in lb_*_hooks manpages. 2013-11-04 16:42:40 +01:00
Daniel Baumann 8d7c992858 Streamlineing a few comments in the python stubs. 2013-11-04 14:44:45 +01:00
Daniel Baumann 5603355e1d Handling bootstrap cache inside the bootstrap stubs itself. 2013-11-04 14:02:40 +01:00
Daniel Baumann 83dacd9b39 Stuffing bootstrapping of archive-keys for derivatives into lb_config, it's not a runtime thing and its logic should not be embedded in live-build but the config directory. 2013-11-04 13:34:43 +01:00
Daniel Baumann 35919637af Moving testroot into lb wrapper itself. 2013-11-04 13:00:12 +01:00
Daniel Baumann 600e715703 Correcting spelling typo in manpages (s/hoooks/hooks/). 2013-11-04 12:45:10 +01:00
Daniel Baumann ef20722290 Harmonizing options markup in manpages. 2013-11-04 12:42:28 +01:00
Daniel Baumann 35dbb107d0 Adding program specification to lb_bootstrap_hooks manpage. 2013-11-04 12:37:33 +01:00
Daniel Baumann e5c72654ec Adding program specification to lb_chroot_hooks manpage. 2013-11-04 12:33:12 +01:00
Daniel Baumann f5b825ee3c Adding program specification to lb_source_hooks manpage. 2013-11-04 12:26:39 +01:00
Daniel Baumann e00df1684b Adding program specification to lb_binary_hooks manpage. 2013-11-04 12:21:32 +01:00
Daniel Baumann 1a33b7a585 Simplifying package cache stanza in python bootstrap stubs. 2013-11-04 09:44:01 +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 65ae9642aa Updating filenames suffixes of example hook files. 2013-11-04 08:12:02 +01:00
Daniel Baumann 55e32d6c06 Releasing debian version 4.0~alpha29-1. 2013-11-04 07:40:05 +01:00
Daniel Baumann 7bb90e9f5f Replacing os.link calls for hooks with shutil.copy to properly dereference symlinks in python stubs. 2013-11-04 07:40:05 +01:00
Daniel Baumann a5bd371568 Manually adding --version to argparse in python stub since python 3.3 dropped the version keyword. 2013-11-04 07:16:28 +01:00
Daniel Baumann 52122b2845 Moving python stubs to their own subdirectory within the source tree. 2013-11-04 07:06:08 +01:00
Daniel Baumann afafe4628c Adding see also entries in hooks manpages. 2013-11-04 06:57:57 +01:00
Daniel Baumann 3077d77a56 Adding lb_source_hooks manpage. 2013-11-04 06:47:04 +01:00
Daniel Baumann db331a3c5a Rewriting source_hooks in python. 2013-11-04 06:43:40 +01:00
Daniel Baumann d042538e28 Adding lb_binary_hooks manpage. 2013-11-04 06:42:19 +01:00
Daniel Baumann 90fd3636a4 Rewriting binary_hooks in python. 2013-11-04 06:37:31 +01:00
Daniel Baumann e9701039f7 Updating configuration path in update-apt-file-cache.hook.chroot. 2013-11-03 21:20:33 +01:00
Daniel Baumann 1bcc449483 Automatically symlink hooks upon creation of the configuration tree. 2013-11-03 21:18:10 +01:00
Daniel Baumann 037066598a Updating file suffixes of the internal default hooks. 2013-11-03 21:17:13 +01:00
Daniel Baumann 12a20871ed Adding lb_chroot_hooks manpage. 2013-11-03 21:01:43 +01:00
Daniel Baumann cec85c5598 Rewriting chroot_hooks in python. 2013-11-03 20:51:15 +01:00
Daniel Baumann 8295826a6b Adding lb_bootstrap_hooks manpage. 2013-11-03 20:51:13 +01:00
Daniel Baumann f03f05097e Also processing config/hooks/*.hook in bootstrap_hooks, if any. 2013-11-03 20:51:12 +01:00
Daniel Baumann c9cd3af6ec Making various things in bootstrap manpages more consistent. 2013-11-03 19:48:37 +01:00
Daniel Baumann 258f506b96 Rewriting bootstrap_hooks in python. 2013-11-03 19:24:04 +01:00
Daniel Baumann fe7ee28ccd Updating to standards version 3.9.5. 2013-10-28 12:48:16 +01:00
Daniel Baumann 9ef33d083b Releasing debian version 4.0~alpha28-1. 2013-10-28 08:36:09 +01:00
Daniel Baumann d83a3d3c30 Updating rsvg calls in binary_syslinux for newer versions of librsvg2-bin, thanks to Roberto Carlos Morano <rcmorano@emergya.com> (Closes: #728030). 2013-10-28 08:31:02 +01:00
Daniel Baumann 006e38d955 Weakening mode on pts for compliance with eglibc 2.18 within containers during build. 2013-10-23 21:01:22 +02: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
Richard Nelson 5e2758b4c0 Updating files to copy for finished build on l-b-cgi frontend and the 4.x branch. 2013-10-21 20:12:00 -05:00
Daniel Baumann c7462c4043 Depending on python3, thanks to Richard Nelson <unixabg@gmail.com> (Closes: #726806) 2013-10-21 19:05:29 +02:00
Daniel Baumann be1dfb1b0b Releasing debian version 4.0~alpha27-1. 2013-10-18 09:49:35 +02:00
Daniel Baumann 3afd2fb9cb Adding note about outdated/unsupported versions in general develop-ment-version warning message. 2013-10-17 16:58:20 +02:00
Daniel Baumann 49b6f1efb2 Updating descriptions in python stubs. 2013-10-17 14:59:08 +02:00
Daniel Baumann 75df65480f Sorting todo items in python stubs. 2013-10-17 14:55:11 +02:00
Daniel Baumann 4afbc74f34 Calling parted with optimal aligning. 2013-10-17 12:27:42 +02:00
Daniel Baumann 28dba93085 Harmonize comments in python stubs. 2013-10-17 11:24:27 +02:00
Daniel Baumann d07cb888ee Updating German manpage translations. 2013-10-17 11:18:55 +02:00
Daniel Baumann d18a85705a Using 4 instead of 4.0 for unreleased 4.x versions as version number in python stubs. 2013-10-17 11:10:32 +02:00
Daniel Baumann ac880ca145 Making warning about alpha version of live-build in lb_config conditional on the internal version. 2013-10-17 09:38:54 +02:00
Daniel Baumann cfdd08c6e1 Moving /selinux to /sys/fs/selinux to accomodate newer selinux in debian. 2013-10-16 20:40:27 +02:00
Daniel Baumann d102d6060a Rewrapping control file. 2013-10-15 12:31:36 +02:00
Daniel Baumann 93c041ec4a Depending on python only for the time being, rather than python3.3. 2013-10-15 12:29:07 +02:00
Daniel Baumann b32d972a42 Adding bootstrap hooks. 2013-10-15 12:24:48 +02:00
Daniel Baumann 34baf50ab3 Replacing s390 with s390x in architecture specific defaults. 2013-10-15 12:20:42 +02:00
Daniel Baumann b63b8f182e Updating package descriptions. 2013-10-14 10:43:25 +02:00
Daniel Baumann 1a6303611b Releasing debian version 4.0~alpha26-1. 2013-09-19 09:10:20 +02:00
Daniel Baumann 4c2f7491dc Updating to python 3.3 (Closes: #723702). 2013-09-19 09:09:16 +02:00
Daniel Baumann aa7939e085 Removing unused description variable in syslinux configs. 2013-09-18 11:43:49 +02:00
Jan Blunck ddb8ad5dae Selectively remove chroot-only APT configuration and preferences instead of wiping everything. 2013-09-18 10:48:21 +02:00
Jan Blunck 4d9c77d20e Remove chroot-only configured apt sources in chroot_archives remove.
If an archive is configured with *.chroot extension remove it when
deconfiguring chroot/etc/apt/sources.list.d directory.
2013-09-18 10:36:31 +02:00
Daniel Baumann 3b332c3788 Releasing debian version 4.0~alpha25-1. 2013-09-18 10:27:15 +02:00
Daniel Baumann 1cdc2fc5b4 Making workaround for apt-get source actually working in backports-included-but-not-enabled scenarios. 2013-09-18 09:49:03 +02:00
Richard Nelson 4a5d67c5b8 Modify l-b-cgi frontend logging paths. 2013-09-17 11:42:51 -05:00
Daniel Baumann f880117b97 Releasing debian version 4.0~a24-1. 2013-09-06 20:05:53 +02:00
Daniel Baumann dcf1ff484a Updating initsystem default for progress-linux releases. 2013-09-06 20:05:07 +02:00
Daniel Baumann 0293f5d14c Releasing debian version 4.0~a23-1. 2013-09-06 18:30:20 +02:00
Daniel Baumann 5ecae6eb90 Updating hardcoded defaults for syslinux splash descriptions for progress-linux. 2013-09-06 17:18:48 +02:00
Daniel Baumann f6a51c7ec6 Updating cgi templates for current bootstrap version 3.0.0 based theme on live-systems.org. 2013-09-05 21:30:31 +02:00
Daniel Baumann 7ca77d248b Releasing debian version 4.0~a22-1. 2013-09-05 17:31:39 +02:00
Raphaël Hertzog 2d12d83527 Ensure xfsprogs and jfsutils are available in the ISO when d-i is used.
Otherwise users opting for XFS and JFS filesystems and installing without
network won't have them and the (first) boot can be interrupted due to
this.

Sponsored-by: Offensive Security
2013-08-26 19:02:20 +02:00
Daniel Baumann 1577d46064 Updating syslinux flavour detection for progress-linux. 2013-08-19 17:52:05 +02:00
Daniel Baumann 0dc87d1170 Updating binary repository prefix for progress-linux. 2013-08-19 08:57:25 +02:00
Daniel Baumann 89cf1cf609 Releasing debian version 4.0~a21-1. 2013-08-07 20:06:47 +02:00
Daniel Baumann a12212ee53 Correcting wrong installer directory moving check in progress-linux mode. 2013-08-07 20:06:47 +02:00
Daniel Baumann d75e7b75c0 Renaming some leftover pieces from binary_debian-installer to installer_debian-installer. 2013-08-07 18:14:23 +02:00
Daniel Baumann d758af1392 Removing obsolete starting of binary_debian-installer in binary. 2013-08-07 18:14:23 +02:00
Daniel Baumann afd1060395 Correcting wrong defaults setting for parent distribution in config/build. 2013-08-07 17:50:20 +02:00
Daniel Baumann 0c10bd5318 Calling bootstrap_archives with correct pass argument. 2013-08-07 16:50:47 +02:00
Daniel Baumann e94e9699b6 Stripping backports from sources.list temporarily when obtaining sources to workaround apts disregard of pinning for the cases where backports are included but not enabled. 2013-08-07 12:25:43 +02:00
Daniel Baumann af16834f28 Updating linux-image package names for 3.0 in installer_debian-installer. 2013-07-30 18:13:57 +02:00
Daniel Baumann 383d4d26b7 Expanding all variables in all syslinux configuration files, rathern than on some selected ones only. 2013-07-12 16:34:46 +02:00
Daniel Baumann 18e0a2f325 Debranding live sources. 2013-07-01 16:50:08 +02:00
Daniel Baumann b77349b8ce Moving caching out of bootstrap_{c,}debootstrap to own helper for future unification with chroot caches helper. 2013-07-01 16:27:12 +02:00
Daniel Baumann eab1da72ed Handling dist-upgrade right after bootstrap with copy of chroot_archives as bootstrap_archives in preparation for a future multi-archive bootstrap.
It is important for derivatives that the bootstrap cache is setup completely,
it is re-used in several places and thus cannot consist of the parent
distribution only.

Until there's a supportable way to bootstrap from multiple archives at the same time
(and multistrap doesn't work for that as discussed in the past), we're going to run
a lot of duplicated code here to massage the apt sources for the time being.
2013-07-01 16:24:32 +02:00
Daniel Baumann 4e9c7ee662 Removing some leftovers in chroot_archives from --archives removal. 2013-07-01 16:08:33 +02:00
Daniel Baumann 613f8cfd6d Dropping global archive definitions shipped in /usr/share/live/build/archives (same as with packagelists, hidden archive 'magic' is gone now in favour of explicit config tree configuration). 2013-06-25 09:12:03 +02:00
Daniel Baumann 86746ac72f Reorganizing frontend in source tree. 2013-06-25 09:04:42 +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 57d26a0758 Using includes.installer instead of includes.debian-installer. 2013-06-24 14:27:48 +02:00
Daniel Baumann ec01ef8e68 Adding note about live-build version in build to get the lb version into build logs. 2013-06-24 14:02:30 +02:00
Daniel Baumann 966afa2d64 Splitting out preseed handling from main installer script. 2013-06-20 11:24:12 +02:00
Daniel Baumann 001612cdc7 Breaking out installer integration into an own stage. 2013-06-20 10:57:56 +02:00
Daniel Baumann 921870160d Releasing debian version 4.0~a20-1. 2013-06-19 08:02:54 +02:00
Daniel Baumann 79af3c1580 Extending wget calls with options variable in bootstrap_archive-keys too (Closes: #712710). 2013-06-19 08:01:03 +02:00
Daniel Baumann 24cfdfc6a3 Adding hook to remove ssl-cert-snakeoil by default. 2013-06-19 08:01:03 +02:00
Richard Nelson a486a29f80 Adding set +e to l-b-cgi.cron so script will finish on errors. 2013-06-19 08:01:03 +02:00
Richard Nelson 4c6879eb33 Run build call from l-b-cgi.cron with noauto. 2013-06-19 08:01:03 +02:00
Richard Nelson 8bb8244d7a Reverting returning the error code from auto/build script, doesn't work.
This reverts commit c944301.
2013-06-19 08:00:22 +02:00
Richard Nelson c4e67c9d70 Correcting bashism in frontends/cgi/live-build-cgi 2013-05-30 13:13:10 -05: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 e44fe9ba9e Removing importet test bashism in frontends/cgi/live-build-cgi. 2013-05-27 17:13:58 +02:00
Richard Nelson 3c59c82e1d Improve reading of post data on l-b-cgi frontend. 2013-05-27 17:13:56 +02:00
Daniel Baumann 9008de3f0b Releasing debian version 4.0~a19-1. 2013-05-27 17:07:14 +02:00
Daniel Baumann f35f4c6b1d Including memtest86+ in syslinux menu. 2013-05-27 17:07:05 +02:00
Richard Nelson c944301b84 Return the error code from auto/build script. 2013-05-22 10:48:27 -05:00
Daniel Baumann d26dea3710 Sorting imports in python stubs. 2013-05-15 22:49:13 +02:00
Daniel Baumann d61c044ec0 Moving creation of chroot.files manifest in lb chroot after pseudo-filesystems have been unmounted to avoid loops, thanks to Michal Suchanek <hramrach@gmail.com>. 2013-05-15 14:56:17 +02:00
Daniel Baumann 2bad1bd9c8 Sorting kernel versions in reverse order (newest first) in syslinux configurations in consistency with normal bootloader behaviours. 2013-05-13 12:57:35 +02:00
Richard Nelson d8b79209d4 Formatting cleanup on l-b-cgi.cron wrt commit that support multiple instances of image building. 2013-05-11 09:49:39 -05:00
Richard Nelson 1e4432162c Initial commit on l-b-cgi frontend to support multiple instances of image building. 2013-05-10 23:03:19 -05:00
Richard Nelson 39cf68130e Modified l-b-cgi cron to move submitted build file to temporary build directory after reading. 2013-05-10 14:29:03 -05:00
Daniel Baumann 89d3b33f49 Adding 3.0.2-1 until 3.0.5-1 changelog entries. 2013-05-06 20:27:49 +02:00
Daniel Baumann 1c5c1441e0 Releasing debian version 4.0~a18-1. 2013-05-06 20:10:14 +02:00
Daniel Baumann b82c1349f2 Renumbering hook scripts. 2013-05-06 20:08:10 +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 ee674162da Adding ls -lR files as .files output. 2013-05-06 14:50:08 +02:00
chals 36a44c849a Changing how syslinux files are copied to make netboot images work properly. 2013-05-06 14:50:08 +02:00
Daniel Baumann 9a15cd0114 Skipping loadlin inclusion on netboot images. 2013-05-06 14:50:08 +02:00
Daniel Baumann 4155fd9641 Updating todo in python stubs. 2013-05-06 14:50:08 +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 02ebd3f0c2 Updating derivatives archive-key signature validiation to look by default at both debian and debian-maintainers keyrings. 2013-05-06 14:50:08 +02:00
Daniel Baumann ac29b32470 Releasing debian version 4.0~a17-1. 2013-05-06 14:50:08 +02:00
Daniel Baumann 39ef5a723c Writing errors to stderr in Python stubs. 2013-05-06 14:50:08 +02:00
chals f9f13cb60e Adding initial Spanish translation of two man pages. 2013-05-06 14:50:08 +02:00
Daniel Baumann d5cc7dc428 Adding files section in bootstrap_debootstrap and bootstrap_cdebootstrap manpages. 2013-05-06 14:50:08 +02:00
Daniel Baumann 73c892d114 Switching argument and configuration handling order in Python stubs. 2013-05-06 14:50:08 +02:00
Daniel Baumann 61e5e53eef Adding initial German translation for bootstrap_cdebootstrap manpage. 2013-05-06 14:50:08 +02:00
Daniel Baumann 9f32f7af78 Adding new lb_bootstrap_cdebootstrap manpage. 2013-05-06 14:50:08 +02:00
Daniel Baumann cd4119caf0 Adding initial German translation for bootstrap_debootstrap manpage. 2013-05-06 14:50:08 +02:00
Daniel Baumann b5317e34a9 Adding new lb_bootstrap_debootstrap manpage. 2013-05-06 14:50:08 +02:00
Daniel Baumann 82648922d5 Moving old manpages out of the way. 2013-05-06 14:50:07 +02:00
Daniel Baumann 2dba32f642 Adding python readme. 2013-05-06 14:50:07 +02:00
Daniel Baumann 8f293ccd9c Dropping now unused intermediate config/image. 2013-05-06 14:50:07 +02:00
Daniel Baumann 06dac65ee3 Removing bootstrap_cache, not needed anymore. 2013-05-06 14:50:07 +02:00
Daniel Baumann 680109fdad Temporary hack for lb config to produce config/build until stuff is cleaned up properly. 2013-05-06 14:50:07 +02:00
Daniel Baumann b2cb25942d Adding depends to python3.2. 2013-05-06 14:50:07 +02:00
Daniel Baumann caff6e6f1a Excluding Python scripts from shell script tests in top-level Makefile. 2013-05-06 14:50:07 +02:00
Daniel Baumann 4a41852f82 Updating bootstrap for Python stubs. 2013-05-06 14:50:07 +02:00
Daniel Baumann c229d39dc8 Replacing bootstrap_cdebootstrap with Python stub. 2013-05-06 14:50:07 +02:00
Daniel Baumann a06eea85ad Replacing bootstrap_debootstrap with Python stub. 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
Daniel Baumann 765ae792d4 Releasing debian version 4.0~a16-1. 2013-05-06 14:50:07 +02:00
Daniel Baumann ff8e4ef6aa Unifying append options in binary_syslinux when processing configuration files. 2013-05-06 14:50:07 +02:00
Daniel Baumann 86e15f61c0 Stripping out comments in package lists. 2013-05-06 14:50:07 +02:00
Daniel Baumann 7406724344 Aborting early in chroot_package-lists if no package list is found. 2013-05-06 14:50:07 +02:00
Daniel Baumann d0bb1a3ade Cleaning up installer file locations for progress-linux. 2013-05-06 14:50:07 +02:00
Daniel Baumann f1410a0945 Replacing strings in all syslinux config files, not just certain hardcoded ones. 2013-05-06 14:50:07 +02:00
Richard Nelson 153a796b31 Converting l-b-cgi frontend to process forms with post. 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 17d85e1452 Using ntfs-3g to mount ntfs partitions. 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 feaad91d90 Adding set -e in example auto scripts. 2013-05-06 14:50:07 +02:00
Daniel Baumann 94b1dd2b65 Removing old docs. 2013-05-06 14:50:07 +02:00
Daniel Baumann 1da37c8789 Improving comment in lb about embedded live-build within config tree. 2013-05-06 14:50:07 +02:00
Daniel Baumann 0318bc79d9 Correcting grammer error in live-build description. 2013-05-06 14:50:07 +02:00
Daniel Baumann 271d4f4a3c Simplyfing live-build pseudo-command. 2013-05-06 14:50:07 +02:00
Daniel Baumann d16923e6b9 Updating fallback help message in live-build pseudo-command. 2013-05-06 14:50:07 +02:00
Daniel Baumann 2c54c44610 Adding generic live-build handle in chroot_dpkg for other live packages to act upon. 2013-05-06 14:50:07 +02:00
Daniel Baumann 5a00aa4482 Using dpkg-divert for other diversions too to handle upgrades of the diverted stuff during build. 2013-05-06 14:50:07 +02:00
Daniel Baumann 20f042f923 Using dpkg-divert in chroot_upstart script to handle upgrades of upstart during the build (Closes: #702537). 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 1083985682 Correcting typo directory when dereferencing syslinux symlinks when building chrooted, thanks to Luigi Capriotti <l.capriotti@xbmc.org>. 2013-05-06 14:50:07 +02:00
Daniel Baumann 6ce319f16d Releasing debian version 4.0~a15-1. 2013-05-06 14:50:06 +02:00
Daniel Baumann 59ce459f40 Removing all references to my old email address. 2013-05-06 14:50:06 +02:00
Daniel Baumann 29043c34fe Releasing debian version 4.0~a14-1. 2013-05-06 14:50:06 +02:00
Raphaël Hertzog 20855871d2 Fixing win32-loader.ini by including the GTK related entries.
The check protecting their addition was wrong. Also fix the actual keys
with the correct architecture instead of hardcoding i386.
2013-05-06 14:50:06 +02:00
Daniel Baumann c1a7b496bf Correcting spelling typos, thanks to Adam D. Barratt <adam@adam-barratt.org.uk>. 2013-05-06 14:50:06 +02:00
Richard Nelson 613c5984b6 Append to log file on errors and not truncate the file on l-b-cgi frontend. 2013-05-06 14:50:06 +02:00
Richard Nelson 559d7e5497 Add log information of git:://url for l-b-cgi frontend. 2013-05-06 14:50:06 +02:00
Richard Nelson 869a4229b4 Adding binary image type to config call on l-b-cgi frontend. 2013-05-06 14:50:06 +02:00
Richard Nelson 2221457b93 Removing quotes around _CGI_CONFIG_APPEND to handle multiple parameters correctly on l-b-cgi frontend. 2013-05-06 14:50:06 +02:00
Richard Nelson 8f06ab2f3f Change _CGI_CONFIG_APPEND to front of the lb config call on l-b-cgi frontend. 2013-05-06 14:50:06 +02:00
Richard Nelson 6a113f7b8e Add _CGI_CONFIG_APPEND varialbe for appending options to lb config call on l-b-cgi frontend. 2013-05-06 14:50:06 +02:00
Richard Nelson 391c903384 Add sanity check on config type to build for l-b-cgi. 2013-05-06 14:50:06 +02:00
Daniel Baumann c4b7263f13 Releasing debian version 4.0~a13-1. 2013-05-06 14:50:06 +02:00
Daniel Baumann d4f8b95cdf Adding source_hooks for hooks on source images like already supported on binary images. 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 20d3ef51ba Making some more debian source-selections conditional on certain image options. 2013-05-06 14:50:06 +02:00
Daniel Baumann 48939b9ac9 Harmonize handling of pre-existing gnupg dotfiles in chroot when handling fake signing keys for local repository. 2013-05-06 14:50:06 +02:00
Daniel Baumann 11b07e9a41 Making messages about reading system conffiles in lb config more accurate. 2013-05-06 14:50:06 +02:00
Daniel Baumann 7f972f31ce Also showing distribution in lb config initial messages. 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 7c945b05f5 Releasing debian version 4.0~a12-1. 2013-05-06 14:50:06 +02:00
Daniel Baumann 85871c7f9c Synchronise grub and grub2 splashes with internal live-build splash for syslinux bootloaders. 2013-05-06 14:50:06 +02:00
Daniel Baumann ddbaabf64e Correcting typo in grub2 config template. 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 3f3d05b2e6 Updating d-i suite symlink for wheezy release. 2013-05-06 14:50:05 +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 705df48ec5 Releasing debian version 4.0~a11-1. 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 6f39d25611 Allowing to use parted its automatic offset handling at the beginning of a disk, rather than to harcode it to first block (Closes: #647607). 2013-05-06 14:50:05 +02:00
Daniel Baumann c6c9946048 Releasing debian version 4.0~a10-1. 2013-05-06 14:50:05 +02:00
Daniel Baumann 69174bb072 Adding 3.0.1-1 changelog entries. 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 ba7535c73e Removing superfluous menu default directive in installer syslinux menues. 2013-05-06 14:50:05 +02:00
Daniel Baumann cbc4d9f736 Releasing debian version 4.0~a9-1. 2013-05-06 14:50:05 +02:00
Daniel Baumann e2ce2087b7 Adding 3.0.0-1 changelog entries. 2013-05-06 14:50:05 +02:00
Daniel Baumann f7789205d7 Removing dropped syslinux-theme config option from lb_config manpage. 2013-05-06 14:50:05 +02:00
Daniel Baumann 85e9887e0b Converting splash.svg not just splash.svg.in files as syslinux bootsplashes. 2013-05-06 14:50:05 +02:00
Daniel Baumann ea68bab304 Removing default menu marker for install entry in syslinux menu. 2013-05-06 14:50:05 +02:00
Daniel Baumann e3455ee2c9 Adding key-shortcut for advanced options in syslinux menu. 2013-05-06 14:50:05 +02:00
Daniel Baumann 7595fb6f61 Correctly remove binary contents and packages file in clean script. 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 0290d0be6b Updating binary_debian-installer for newer append replacement variables used in syslinux configs. 2013-05-06 14:50:05 +02:00
Daniel Baumann fdcebc3365 Including HDT in advanced options menu within syslinux menu. 2013-05-06 14:50:05 +02:00
Daniel Baumann 51e6e3b324 Correcting wrong debian-installer syslinux menu files. 2013-05-06 14:50:05 +02:00
Daniel Baumann e5e62f66a1 Renumbering hooks. 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 2fb4009a8c Updating syslinux configurations and handling for syslinux 5. 2013-05-06 14:50:05 +02:00
Daniel Baumann d06b25079f Adding bootrap_archive-keys to establish secure trust-chain on top of debian-keyring for derivatives. 2013-05-06 14:50:05 +02:00
Daniel Baumann 3b7335e86b Correcting vshift in syslinux themes to correct display bug with overlong lines, thanks to Thanatermesis <thanatermesis@gmail.com>. 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 d4186c841d Correcting install path in loadlins install.bat for the gtk d-i flavour. 2013-05-06 14:50:05 +02:00
Daniel Baumann 4d95bc6e79 Escaping quotes to workaround a false-positive of checkbashisms in binary_debian-installer. 2013-05-06 14:50:05 +02:00
Daniel Baumann a2f728280b Correcting spelling typos in changelog to make lintian happy. 2013-05-06 14:50:04 +02:00
Daniel Baumann 3f84bec422 Dropping dpkg compression level. 2013-05-06 14:50:04 +02:00
Daniel Baumann ecd971b76c Updating wheezy pre-release number for b4. 2013-05-06 14:50:04 +02:00
Daniel Baumann 9886b1b433 Releasing debian version 4.0~a8-1. 2013-05-06 14:50:04 +02:00
Daniel Baumann dc11169a06 Avoiding to unconditionally adding whitespace seperator to config/control for existing configs. 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
Daniel Baumann 2f0f2fbde8 Adding 3.0~b6-1 changelog entries. 2013-05-06 14:50:04 +02:00
Daniel Baumann 3e51db9a8c Adding config/control in example gitignore file. 2013-05-06 14:50:04 +02:00
Daniel Baumann 09e65e406b Applying slightly modified patch from Raphaël Hertzog <hertzog@debian.org> to fix automatic firmware inclusion when using debian-installer with live-installer and having firmware packages installed in the live system already. 2013-05-06 14:50:04 +02:00
Daniel Baumann df797b7cda Making xorriso option handling a bit more readable. 2013-05-06 14:50:04 +02:00
Daniel Baumann 07ffebc750 Correcting apt-key cleanup of local dummy signing keys when using local packages, thanks to jhcha54008 <jhcha54008@free.fr>. 2013-05-06 14:50:04 +02:00
Daniel Baumann 6d3b6b7b9b Updating samhain workaround in chroot_dpkg to work if live-build is being used with sudo or fakeroot (Closes: #698423). 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 7fa85c4ac2 Removing reference to removed --package-lists option in lb_config manpage (Closes: #698260). 2013-05-06 14:50:04 +02:00
Daniel Baumann 3159507f7f Correcting spelling typo in html footer of the cgi, thanks to Jean-Christophe Saint-Marc <jchristophe.stmarc@free.fr>. 2013-05-06 14:50:04 +02:00
Daniel Baumann 2429425202 Updating footer in cgi html template. 2013-05-06 14:50:04 +02:00
Daniel Baumann a91bf2c870 Updating for twitter-bootstrap usage on live.debia.net in the cgi html templates. 2013-05-06 14:50:04 +02:00
Daniel Baumann 63a747b0c2 Cleaning up binary_loadlin. 2013-05-06 14:50:04 +02:00
Daniel Baumann fda209b29c Updating footer link to 'legal information' in cgi html template. 2013-05-06 14:50:04 +02:00
Daniel Baumann 46dc41a701 Using cat instead of echo to workaround incompatible and conflicting uses in escaping of \t in dash and bash, and less importantly to workaround a false-positive in checkbashisms. 2013-05-06 14:50:04 +02:00
Daniel Baumann 26bbf6e683 Updating manpage year handling for 2013. 2013-05-06 14:50:04 +02:00
Daniel Baumann d8b0ca36fe Releasing debian version 4.0~a7-1. 2013-05-06 14:50:04 +02:00
Daniel Baumann 61b4f3bf68 Adding 3.0~b5-1 changelog entries. 2013-05-06 14:50:04 +02:00
Daniel Baumann 36efad274a Dropping pre-wheezy handling for win32-loader files. 2013-05-06 14:50:04 +02:00
Daniel Baumann 7908cea0c3 Adding support for sha512 checksums. 2013-05-06 14:50:04 +02:00
Daniel Baumann fc9df81463 Removing all checksum files in lb clean. 2013-05-06 14:50:04 +02:00
Daniel Baumann 2731b83bae Correcting legacy filename for checksum files. 2013-05-06 14:50:04 +02:00
Daniel Baumann d4f5dd6df9 Updating win32-loader.ini for wheezy. 2013-05-06 14:50:04 +02:00
Daniel Baumann eaa015ed35 Only including gtk d-i in win32-loader config if available on the target image. 2013-05-06 14:50:04 +02:00
Daniel Baumann 1402ce72a9 Creating install.bat for loadlin. 2013-05-06 14:50:04 +02:00
Daniel Baumann d878fa2947 Dropping stable and unstable dist symlinks for d-i in dists for wheezy. 2013-05-06 14:50:04 +02:00
Daniel Baumann e3289119c2 Creating autorun.inf in binary_win32-loader. 2013-05-06 14:50:04 +02:00
Daniel Baumann 565b1ea291 Also ignoring legacy checksum filenames when creating checksum files. 2013-05-06 14:50:04 +02:00
Daniel Baumann 449a338ffa Correcting spelling typo in help text within the binary checksums file. 2013-05-06 14:50:04 +02:00
Daniel Baumann de261256c5 Defaulting to obsolete filenames for checksums on debian, as debians cdrom-check in d-i only supports legacy filenames (Closes: #697082). 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 07fb58ba52 Don't fail when adding symlinks for firmware in binary/firmware for debian-installer and the symlink already exists (Closes: #696688). 2013-05-06 14:50:03 +02:00
Daniel Baumann 3cc4d4f87a Updating removal of backup files in stripped example hook to also work with spaces in filenames. 2013-05-06 14:50:03 +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 5b0c5c1e5e Adding sample gitignore file in examples. 2013-05-06 14:50:03 +02:00
Daniel Baumann eba66925cc Using .cfg suffix for consistency with debian-installer on preseed files in config/preseed. 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 e08aa46019 Correcting glitch with plain chroot filesystems in binary_chroot. 2013-05-06 14:50:03 +02:00
Daniel Baumann d49278344e Removing redundant check for linux-images in binary_linux-image. 2013-05-06 14:50:03 +02:00
Daniel Baumann bcea0380c4 Splitting off chroot firmware handling into an own script. 2013-05-06 14:50:03 +02:00
Daniel Baumann 09eed369eb Simplifying exit check in chroot_linux-image. 2013-05-06 14:50:03 +02:00
Daniel Baumann d32d432678 Omitting memtest in binary if chroot filesystem is set to none. 2013-05-06 14:50:03 +02:00
Daniel Baumann a6938bb129 Omitting binary manifest creation when chroot filesystem is set to none. 2013-05-06 14:50:03 +02:00
Daniel Baumann c2531a1a51 Releasing debian version 4.0~a6-1. 2013-05-06 14:50:03 +02:00
Daniel Baumann 93c005027a Adding 3.0~b4-1 changelog entries. 2013-05-06 14:50:03 +02:00
Daniel Baumann f2f2d1bccb Removing pre-wheezy grub package from binary_debian-installer. 2013-05-06 14:50:03 +02:00
Richard Nelson 9310e69667 Unify _DEBUG variable values to be true or false for l-b-cgi. 2013-05-06 14:50:03 +02:00
Daniel Baumann 2d487b5519 Only writing out Parent-Archive-Areas field into configuration when building a derivative. 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 bcde017854 Including architecture in binary output filenames. 2013-05-06 14:50:03 +02:00
Ben Armstrong 2a666ed5d8 Improving warning wording to reflect unfinished state of code better. 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 ef1ab80c70 Using image name from configuration to name source output files. 2013-05-06 14:50:03 +02:00
Daniel Baumann 36d36414d8 Adding explicit warning for people that do not understand what stable is. 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 a189319b43 Renumbering hooks. 2013-05-06 14:50:03 +02:00
Daniel Baumann 0cdbf60bc1 Moving removal of actual backup files for apt sources into correct hook. 2013-05-06 14:50:03 +02:00
Daniel Baumann f67a2aa42e Releasing debian version 4.0~a5-1. 2013-05-06 14:50:03 +02:00
Daniel Baumann 0660de367f Adding 3.0~b3-1 changelog entries. 2013-05-06 14:50:02 +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 cee58d8779 Also removing man chache in remove-temporary-files hook. 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 c02300e297 Removing loop-aes-utils related hack for squeeze. 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 b1b7e909c7 Removing old code in chroot_hacks for tasks which are not used anymore. 2013-05-06 14:50:02 +02:00
Daniel Baumann 1226704fff Releasing debian version 4.0~a4-1. 2013-05-06 14:50:02 +02:00
Daniel Baumann 2e798394a7 Adding 3.0~b2-1 changelog entries. 2013-05-06 14:50:02 +02:00
Daniel Baumann 0d7322500b Switching from genisoimage to xorriso. 2013-05-06 14:50:02 +02:00
Richard Nelson 960d954aeb Update l-b-cgi frontend to support new git config structure. 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 e2e5636744 Avoid re-populating an already populated configuration tree when using lb config --config. 2013-05-06 14:50:02 +02:00
Daniel Baumann 5beadcd563 Adding support for live-images configs and arbitrary configuration directories in lb_config --config option. 2013-05-06 14:50:02 +02:00
Daniel Baumann cfc54e1403 Correcting spelling typo in bug script. 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 5e75d12e6d Removing not really useful symlinks example hook. 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 aa2225cf6a Releasing debian version 4.0~a3-1. 2013-05-06 14:50:02 +02:00
Daniel Baumann 25aed77422 Adding 3.0~b1-1 changelog entries. 2013-05-06 14:50:02 +02:00
Daniel Baumann 8bd5d71a3f Skipping creation of soon to be replaced config/templates directory. 2013-05-06 14:50:02 +02:00
Daniel Baumann a3d6006215 Removing local/bin by default in lb_clean too. 2013-05-06 14:50:02 +02:00
Raphaël Hertzog ea3c9ae385 Adding initial menu entries for debian-installer. 2013-05-06 14:50:02 +02:00
Daniel Baumann bc11607eb0 Releasing debian version 4.0~a2-1. 2013-05-06 14:50:01 +02:00
Daniel Baumann 9aefc3d656 Adding 3.0~a69-1 changelog entries. 2013-05-06 14:50:01 +02:00
Daniel Baumann 82a5279e14 Dropping ubuntu guards on firmware selection code, we're not enabling firmware inclusion in ubuntu mode anyway.
Also, we're not keeping this as ubuntu should just update their archive
structure for content files to match debian. Not worth keeping temporary
extra turns just for ubuntu.
2013-05-06 14:50:01 +02:00
Daniel Baumann d10aa0375e Adding proper header to build.sh include. 2013-05-06 14:50:01 +02:00
Daniel Baumann 06f0ed87ba Ensuring that functions are either sources locally or globally, but not both. 2013-05-06 14:50:01 +02:00
Daniel Baumann a70409e1f2 Adding support for local apt conf.d snippets in archive definitions (Closes: #685791). 2013-05-06 14:50:01 +02:00
Daniel Baumann bc985a6a32 Harmonizing apt configuration handling in chroot_archives. 2013-05-06 14:50:01 +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 7400939e84 Adding dropped empty-line separator in binary_debian-installer. 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 160d6bade7 Releasing debian version 3.0.5-1. 2013-04-30 10:26:25 +02:00
Daniel Baumann 4240da2b8c Skipping loadlin inclusion on netboot images. 2013-04-30 09:44:40 +02:00
Daniel Baumann b7ce440b3b Releasing debian version 3.0.4-1. 2013-04-29 12:54:19 +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 70bb553f2b Releasing debian version 3.0.3-1. 2013-04-25 17:39:44 +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 b19795614f Releasing debian version 3.0.2-1. 2013-04-25 12:42:42 +02:00
Daniel Baumann ea0a65be4c Updating bootstrap mirror for progress-linux. 2013-04-19 10:33:04 +02:00
Daniel Baumann da914efba4 Updating derivatives archive-key signature validiation to look by default at both debian and debian-maintainers keyrings. 2013-04-11 19:28:46 +02:00
Daniel Baumann 4b92e02754 Stripping out comments in package lists. 2013-04-09 05:54:39 +02:00
Daniel Baumann c4c9c02d9b Cleaning up installer file locations for progress-linux. 2013-04-09 05:54:30 +02:00
Richard Nelson a979cdf163 Converting l-b-cgi frontend to process forms with post. 2013-04-09 05:54:28 +02:00
Daniel Baumann b37b97b5b6 Adding set -e in example auto scripts. 2013-04-09 05:54:27 +02:00
Daniel Baumann bcc87559f8 Correcting grammer error in live-build description. 2013-04-09 05:54:26 +02:00
Daniel Baumann 77150ccf4d Updating fallback help message in live-build pseudo-command. 2013-04-09 05:54:24 +02:00
Daniel Baumann 1a4fdf132d Adding generic live-build handle in chroot_dpkg for other live packages to act upon. 2013-04-09 05:54:23 +02:00
Daniel Baumann 6106e81b85 Using dpkg-divert for other diversions too to handle upgrades of the diverted stuff during build. 2013-04-09 05:54:22 +02:00
Daniel Baumann 34dd4a6c70 Using dpkg-divert in chroot_upstart script to handle upgrades of upstart during the build (Closes: #702537). 2013-04-09 05:54:08 +02:00
Daniel Baumann da153c6526 Correcting typo directory when dereferencing syslinux symlinks when building chrooted, thanks to Luigi Capriotti <l.capriotti@xbmc.org>. 2013-04-09 05:52:09 +02:00
Raphaël Hertzog 13bfa69cbf Fixing win32-loader.ini by including the GTK related entries.
The check protecting their addition was wrong. Also fix the actual keys
with the correct architecture instead of hardcoding i386.
2013-04-09 05:52:09 +02:00
Daniel Baumann c366502ec1 Correcting spelling typos, thanks to Adam D. Barratt <adam@adam-barratt.org.uk>. 2013-04-09 05:52:09 +02:00
Richard Nelson 8e7470a31a Append to log file on errors and not truncate the file on l-b-cgi frontend. 2013-04-09 05:52:09 +02:00
Richard Nelson 5874c3f0ea Add log information of git:://url for l-b-cgi frontend. 2013-04-09 05:52:09 +02:00
Richard Nelson 72b0a43dab Adding binary image type to config call on l-b-cgi frontend. 2013-04-09 05:52:09 +02:00
Richard Nelson a8d0ae85c1 Removing quotes around _CGI_CONFIG_APPEND to handle multiple parameters correctly on l-b-cgi frontend. 2013-04-09 05:52:09 +02:00
Richard Nelson edcb3c9208 Change _CGI_CONFIG_APPEND to front of the lb config call on l-b-cgi frontend. 2013-04-09 05:52:09 +02:00
Richard Nelson 8d777f7a65 Add _CGI_CONFIG_APPEND varialbe for appending options to lb config call on l-b-cgi frontend. 2013-04-09 05:52:08 +02:00
Richard Nelson c84dfffe31 Add sanity check on config type to build for l-b-cgi. 2013-04-09 05:52:08 +02:00
Daniel Baumann 0e5cfdb747 Adding source_hooks for hooks on source images like already supported on binary images. 2013-04-09 05:52:08 +02:00
Daniel Baumann a40fc3b92a Making some more debian source-selections conditional on certain image options. 2013-04-09 05:40:16 +02:00
Daniel Baumann 4259fcac5d Harmonize handling of pre-existing gnupg dotfiles in chroot when handling fake signing keys for local repository. 2013-04-09 05:40:16 +02:00
Daniel Baumann dd6f9b7cfa Making messages about reading system conffiles in lb config more accurate. 2013-04-09 05:40:15 +02:00
Daniel Baumann 1c3bfa405c Also showing distribution in lb config initial messages. 2013-04-09 05:40:15 +02:00
Daniel Baumann ab3d2eae25 Removing non-existent --apt-indices none references. 2013-04-09 05:40:12 +02:00
Daniel Baumann 0474057217 Synchronise grub and grub2 splashes with internal live-build splash for syslinux bootloaders. 2013-04-09 05:27:42 +02:00
Daniel Baumann dbbb50f5dc Correcting typo in grub2 config template. 2013-04-09 05:23:21 +02:00
Daniel Baumann f180ad0747 Updating d-i suite symlink for wheezy release. 2013-04-09 05:22:44 +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 09067bbbf8 Allowing to use parted its automatic offset handling at the beginning of a disk, rather than to harcode it to first block (Closes: #647607). 2013-04-09 05:22:12 +02:00
Daniel Baumann bb69c170ae Releasing debian version 3.0.1-1. 2013-02-14 19:31:36 +01:00
Daniel Baumann 35d6dbda83 Dropping German manpage translations stubs for the release. 2013-02-14 19:22:55 +01: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 052b308147 Removing superfluous menu default directive in installer syslinux menues. 2013-02-12 05:23:51 +01:00
Daniel Baumann 49e1810ecd Releasing debian version 3.0.0-1. 2013-02-09 00:18:28 +01:00
Daniel Baumann 30109cf530 Removing dropped syslinux-theme config option from lb_config manpage. 2013-02-09 00:15:32 +01:00
Daniel Baumann f4c54334a4 Converting splash.svg not just splash.svg.in files as syslinux bootsplashes. 2013-02-09 00:04:20 +01:00
Daniel Baumann 01eda54457 Removing default menu marker for install entry in syslinux menu. 2013-02-08 23:21:48 +01:00
Daniel Baumann 45f6d3af53 Adding key-shortcut for advanced options in syslinux menu. 2013-02-08 23:21:46 +01:00
Daniel Baumann 1f673d6f6b Correctly remove binary contents and packages file in clean script. 2013-02-08 23:13:24 +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 cfb9b190e1 Updating binary_debian-installer for newer append replacement variables used in syslinux configs. 2013-02-08 22:46:48 +01:00
Daniel Baumann fb4d939559 Including HDT in advanced options menu within syslinux menu. 2013-02-08 22:44:00 +01:00
Daniel Baumann 574c96a037 Correcting wrong debian-installer syslinux menu files. 2013-02-08 22:43:58 +01:00
Daniel Baumann f4b264d474 Renumbering hooks. 2013-02-08 21:40:28 +01:00
Daniel Baumann 4da218e858 Adding hook to remove systemd machine-id. 2013-02-08 21:40:28 +01:00
Daniel Baumann bc08ea0115 Updating syslinux configurations and handling for syslinux 5. 2013-02-08 21:40:28 +01:00
Daniel Baumann 628c93f923 Adding bootrap_archive-keys to establish secure trust-chain on top of debian-keyring for derivatives. 2013-02-08 21:40:27 +01:00
Daniel Baumann 74dbadf2ff Correcting vshift in syslinux themes to correct display bug with overlong lines, thanks to Thanatermesis <thanatermesis@gmail.com>. 2013-01-25 13:00:02 +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 4df36c9407 Correcting install path in loadlins install.bat for the gtk d-i flavour. 2013-01-24 00:26:29 +01:00
Daniel Baumann 84af3683bd Escaping quotes to workaround a false-positive of checkbashisms in binary_debian-installer. 2013-01-24 00:08:07 +01:00
Daniel Baumann ea1ac9f269 Correcting spelling typos in changelog to make lintian happy. 2013-01-23 23:50:04 +01:00
Daniel Baumann 86343b95f7 Dropping dpkg compression level. 2013-01-23 14:07:22 +01:00
Daniel Baumann 35b88189b6 Updating wheezy pre-release number for b4. 2013-01-20 15:13:07 +01:00
Daniel Baumann 02bc99517f Releasing debian version 3.0~b6-1. 2013-01-20 10:18:08 +01:00
Daniel Baumann cca9934da6 Applying slightly modified patch from Raphaël Hertzog <hertzog@debian.org> to fix automatic firmware inclusion when using debian-installer with live-installer and having firmware packages installed in the live system already. 2013-01-20 08:55:05 +01:00
Daniel Baumann 715adcfc8e Falling back to use genisoimage when building squeeze iso-hybrid images. 2013-01-19 18:04:52 +01:00
Daniel Baumann 9ec95b51a7 Correcting apt-key cleanup of local dummy signing keys when using local packages, thanks to jhcha54008 <jhcha54008@free.fr>. 2013-01-19 12:50:03 +01:00
Daniel Baumann 357c2e0399 Updating samhain workaround in chroot_dpkg to work if live-build is being used with sudo or fakeroot (Closes: #698423). 2013-01-19 12:46:40 +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 ebb6fd8874 Removing reference to removed --package-lists option in lb_config manpage (Closes: #698260). 2013-01-16 07:48:21 +01:00
Daniel Baumann 7424ed263d Correcting spelling typo in html footer of the cgi, thanks to Jean-Christophe Saint-Marc <jchristophe.stmarc@free.fr>. 2013-01-11 12:24:21 +01:00
Daniel Baumann 30a2f49651 Updating footer in cgi html template. 2013-01-09 14:40:22 +01:00
Daniel Baumann b4e96f8c9d Updating for twitter-bootstrap usage on live.debia.net in the cgi html templates. 2013-01-09 14:03:18 +01:00
Daniel Baumann 7f0662cd50 Cleaning up binary_loadlin. 2013-01-06 23:30:49 +01:00
Daniel Baumann 24463f688f Updating footer link to 'legal information' in cgi html template. 2013-01-06 21:02:30 +01:00
Daniel Baumann 8607b231d6 Using cat instead of echo to workaround incompatible and conflicting uses in escaping of \t in dash and bash, and less importantly to workaround a false-positive in checkbashisms. 2013-01-04 19:13:23 +01:00
Daniel Baumann 12506ec1c6 Updating wheezy beta-release number. 2013-01-04 16:10:04 +01:00
Daniel Baumann 7c98f332f6 Updating manpage year handling for 2013. 2013-01-02 12:58:03 +01:00
Daniel Baumann cfc99ce105 Releasing debian version 3.0~b5-1. 2013-01-02 11:45:42 +01:00
Daniel Baumann 8d31e413f8 Dropping pre-squeeze handling for win32-loader files. 2013-01-02 11:42:18 +01:00
Daniel Baumann 369a600509 Adding support for sha512 checksums. 2013-01-02 11:27:05 +01:00
Daniel Baumann bffc19e3a2 Removing all checksum files in lb clean. 2013-01-02 11:25:48 +01:00
Daniel Baumann 33eb0dfd91 Correcting legacy filename for checksum files. 2013-01-02 11:23:08 +01:00
Daniel Baumann 71cb88de17 Updating win32-loader.ini for wheezy. 2013-01-02 11:19:50 +01:00
Daniel Baumann 6eb4e2236a Only including gtk d-i in win32-loader config if available on the target image. 2013-01-02 11:19:20 +01:00
Daniel Baumann fd5c4609e9 Creating install.bat for loadlin. 2013-01-02 11:09:11 +01:00
Daniel Baumann d2940edc0f Dropping stable and unstable dist symlinks for d-i in dists for wheezy. 2013-01-02 11:05:17 +01:00
Daniel Baumann e8fd91ee05 Creating autorun.inf in binary_win32-loader. 2013-01-02 11:00:05 +01:00
Daniel Baumann e724421fee Also ignoring legacy checksum filenames when creating checksum files. 2013-01-02 10:51:01 +01:00
Daniel Baumann a6b1521567 Correcting spelling typo in help text within the binary checksums file. 2013-01-02 10:51:01 +01:00
Daniel Baumann a39bfcb512 Defaulting to obsolete filenames for checksums on debian, as debians cdrom-check in d-i only supports legacy filenames (Closes: #697082). 2013-01-02 10:38:53 +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 7f50113e74 Don't fail when adding symlinks for firmware in binary/firmware for debian-installer and the symlink already exists (Closes: #696688). 2013-01-02 10:22:20 +01:00
Daniel Baumann b570e7f8e6 Updating removal of backup files in stripped example hook to also work with spaces in filenames. 2013-01-01 08:43:59 +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 4835bc52fe Adding sample gitignore file in examples. 2012-12-31 23:51:06 +01:00
Daniel Baumann e366eae5c3 Using .cfg suffix for consistency with debian-installer on preseed files in config/preseed. 2012-12-31 10:18:45 +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 52262ab8f9 Correcting glitch with plain chroot filesystems in binary_chroot. 2012-12-30 14:19:02 +01:00
Daniel Baumann 27f9ebb269 Removing redundant check for linux-images in binary_linux-image. 2012-12-30 13:14:36 +01:00
Daniel Baumann bd0ccc992b Omitting memtest in binary if chroot filesystem is set to none. 2012-12-30 12:58:31 +01:00
Daniel Baumann 2ef5a2bfe1 Omitting binary manifest creation when chroot filesystem is set to none. 2012-12-30 12:51:18 +01:00
Daniel Baumann 8541893e7c Releasing debian version 3.0~b4-1. 2012-12-23 10:50:53 +01:00
Daniel Baumann a03aa6e812 Removing grub package from binary_debian-installer for wheezy. 2012-12-22 19:31:51 +01:00
Richard Nelson 386488c833 Unify _DEBUG variable values to be true or false for l-b-cgi. 2012-12-20 07:36:57 +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 54fee83777 Renumbering hooks. 2012-12-19 06:44:52 +01:00
Daniel Baumann 9a72741066 Moving removal of actual backup files for apt sources into correct hook. 2012-12-19 05:54:16 +01:00
Daniel Baumann 1574964a24 Releasing debian version 3.0~b3-1. 2012-12-17 20:30:06 +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 1426c7780e Also removing man chache in remove-temporary-files hook. 2012-12-17 00:00:11 +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 8618786d5f Marking loop-aes-utils related hack as squeeze only. 2012-12-16 23:51:07 +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 f2d57e26ed Removing old code in chroot_hacks for tasks which are not used anymore. 2012-12-16 23:43:48 +01:00
Daniel Baumann 654c867490 Releasing debian version 3.0~b2-1. 2012-12-16 21:57:52 +01:00
Daniel Baumann bae505eb97 Switching from genisoimage to xorriso. 2012-12-16 21:41:42 +01:00
Richard Nelson 470494d92d Update l-b-cgi frontend to support new git config structure. 2012-12-15 10:52:43 +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 4e65bcbb5b Avoid re-populating an already populated configuration tree when using lb config --config. 2012-12-13 19:04:14 +01:00
Daniel Baumann 8353cbb301 Adding support for live-images configs and arbitrary configuration directories in lb_config --config option. 2012-12-13 18:52:15 +01:00
Daniel Baumann b24909368d Correcting spelling typo in bug script. 2012-12-13 18:24:08 +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 f55ff084be Removing not really useful symlinks example hook. 2012-12-11 20:34:57 +01:00
Daniel Baumann 134c9f5cbe Updating wheezy release number. 2012-12-10 22:31:26 +01:00
Daniel Baumann 55eb6494dd Releasing debian version 3.0~b1-1. 2012-12-10 20:39:08 +01:00
Daniel Baumann 2ea65fdcc9 Skipping creation of soon to be replaced config/templates directory. 2012-12-10 20:37:49 +01:00
Daniel Baumann d4ba252197 Removing local/bin by default in lb_clean too. 2012-12-10 20:35:50 +01:00
Raphaël Hertzog 5830520ecb Adding initial menu entries for debian-installer. 2012-12-10 20:23:10 +01:00
Daniel Baumann 33118cc3f3 Releasing debian version 3.0~a69-1. 2012-12-06 21:09:25 +01:00
Daniel Baumann b46eefce94 Adding back legacy filtering for firmware packages on squeeze when contrib or non-free is not enabled. 2012-12-06 20:59:35 +01:00
Daniel Baumann ca42266824 Dropping ubuntu guards on firmware selection code, we're not enabling firmware inclusion in ubuntu mode anyway.
Also, we're not keeping this as ubuntu should just update their archive
structure for content files to match debian. Not worth keeping temporary
extra turns just for ubuntu.
2012-12-06 20:47:27 +01:00
Daniel Baumann 4804793d9a Adding proper header to build.sh include. 2012-12-04 12:49:15 +01:00
Daniel Baumann 19d695c05a Ensuring that functions are either sources locally or globally, but not both. 2012-12-04 12:47:40 +01:00
Daniel Baumann 6a206425e8 Adding support for local apt conf.d snippets in archive definitions (Closes: #685791). 2012-12-04 12:07:51 +01:00
Daniel Baumann dabe28bdd3 Harmonizing apt configuration handling in chroot_archives. 2012-12-04 12:04:47 +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 1855adbbd0 Adding dropped empty-line separator in binary_debian-installer. 2012-12-01 01:56:41 +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 bbf1634782 Also avoiding to use xz compression for squashfs for kubuntu. 2012-11-30 15:29:24 +01:00
Daniel Baumann d306246697 Releasing debian version 3.0~a68-1. 2012-11-30 15:10:13 +01:00
Daniel Baumann fce9502aad Replicating same qemu support within bootstrap_debootstrao for bootstrap_cdebootstrap too (Closes: #694102). 2012-11-30 15:09:22 +01:00
Daniel Baumann 2df809705d Using hash rather than pipe as sed separator for writing boot parameters into bootloader configurations (Closes: #694723). 2012-11-30 15:06:57 +01:00
Daniel Baumann 8affdd79d0 Adding dpkg-source local options. 2012-11-29 21:36:38 +01:00
Daniel Baumann bbbe6a66df Using four letter digit prefixes for hooks like for consistency with all other live packages. 2012-11-29 21:18:28 +01:00
Daniel Baumann f7ba1350f8 Adding default hook to remove linux-image backup files. 2012-11-28 17:43:29 +01:00
Daniel Baumann f225840b96 Updating note about integrity check boot parameter within checksum files. 2012-11-28 09:31:29 +01:00
Daniel Baumann ade11a8ebb Marking comments in checksum files as such to avoid harmless but anoying warning messages during live-boots medium integrity check. 2012-11-28 09:30:46 +01:00
Richard Nelson b7d0742e0a Correct another typo on commit 11d97a6a5f 2012-11-22 15:32:27 -06:00
Richard Nelson 1d0113a70b Correct typo on commit 11d97a6a5f 2012-11-22 15:05:42 -06:00
Daniel Baumann 3ca8e64d0f Adding default-preseeding for non-free firmware only when non-free is actually included, to avoid cluttering debconf db by default on all systems. 2012-11-22 17:11:00 +01:00
Daniel Baumann 11d97a6a5f Adding backwards compatible handling for squeeze and the ubuntus for old-style Contents files in the archive. 2012-11-22 17:07:49 +01:00
Richard Nelson 8f90c22f7d Increased the maxlenth of the entry field cgipackages.list.chroot on l-b.cgi (Closes: #693732). 2012-11-19 20:28:32 -06:00
Richard Nelson b7ac34da65 Update git paths for cgi form. 2012-11-19 20:05:22 -06:00
Daniel Baumann e7a6543499 Correcting a typo in chroot_apt when re-configuring apt preferences, found by Thanatermesis <thanatermesis@gmail.com> (Closes: #685924). 2012-11-19 16:21:19 +01:00
Daniel Baumann 3138b1a4fa Correcting copying of archive specific apt preferences files, thanks to Thanatermesis <thanatermesis@gmail.com> (Closes: #693250). 2012-11-14 21:54:42 +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 7b2b860d72 Releasing debian version 3.0~a67-1. 2012-11-02 12:29:08 +01:00
Daniel Baumann ce36fd703f Workarounding recent archive changes wrt/ content files until #692111 is fixed. 2012-11-02 11:57:41 +01:00
Daniel Baumann 0863d00128 Correcting typos in aptitude-options name in lb config, thanks to Frank Gard <frank@familie-gard.de> (Closes: #691930). 2012-11-01 06:49:33 +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 3718d0db96 Also supporting the other way around: removing systemd from a bootstrap and switching to sysvinit for those distributions that default to systemd. 2012-10-31 07:48:26 +01:00
Daniel Baumann 5021fd2313 Making sysvinit removal on systemd systems conditional, newer bootstraps might not always pull in sysvinit packages anymore. 2012-10-31 07:45:55 +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 5e20937df4 Removing sysvinit when building images with systemd. 2012-10-29 19:45:17 +01:00
Daniel Baumann b7abcb0c01 Shortening initsystem specific hacks for wheezy, systemd on squeeze never was really supported anyway. 2012-10-28 11:46:01 +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 74c6a77e5a Removing cruft line breaks in bailout messages for bootstrap tools. 2012-10-27 23:06:52 +02:00
Daniel Baumann 2eaa6eeb71 Removing workaround for #657560 where we had to temporarily include bzip2 into the bootstrapped chroot to avoid sids apt failing on mirrors with bzip2 indices only. 2012-10-26 10:58:54 +02:00
Daniel Baumann 9a33f681fa Removing unecessary removal of apt preferences.
When we rebuild an image with changed local archives,
we would preferably remove the already existing preferences files.
However, there's no way to make sure that we remove enough or too
much, hence we don't remove any at all and stay with the dogma:

  "If you change something in the config tree affecting $stage,
   you need to rebuild that stage from scratch."

So for pinning changes for local archives, this means, since it's
affecting the chroot stage, we'll have to rebuild the chroot stage:

  "lb clean --chroot && lb chroot"
2012-10-25 14:00:36 +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
chals 743cf9775d Addin missing comma in the long debootstrap-options that caused an unrecognized option message. 2012-10-24 14:18:26 +02:00
Daniel Baumann 175f6d4bdc Releasing debian version 3.0~a66-1. 2012-10-22 20:45:11 +02:00
Daniel Baumann bb86b31b7b Renaming config/includes.binary_debian-installer to simply config/includes.debian-installer. 2012-10-22 20:43:21 +02:00
Daniel Baumann b7c3e69b0d Renaming config/binary_rootfs to simply config/rootfs. 2012-10-22 20:41:40 +02:00
Daniel Baumann f8d11f4698 Avoid creating old left-over directory for custom syslinux splash handing from within the config tree in lb_config. 2012-10-22 20:36:25 +02:00
Daniel Baumann 46de5bb96c Removing support for local grub/grub2 splash image and config manipulations, custom templates should be used instead.
Rather than doing all the heavy lifting in live-build that nobody really
uses and which is quite inflexible, users should (in line with the syslinux
handling) either stick with the default grub configurations, or, supply
a custom one to live-build, rather than partial/single files only.
2012-10-22 20:34:14 +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 fe3333bcb6 Renaming config/chroot_apt to simply config/apt.
Eventually lb_chroot_apt will be folded into chroot_archives
but that's left for after wheezy.
2012-10-22 20:27:15 +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 6caf65efee Removing local/functions functionality, it's not really usefull anyway. 2012-10-22 19:18:06 +02:00
Daniel Baumann ff115e5a88 Removing some left-overs from bootstrap-copy removal in lb config. 2012-10-22 19:14:01 +02:00
Daniel Baumann a35277259c Releasing debian version 3.0~a65-1. 2012-10-08 20:47:10 +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 65bc289e9b Correcting variable handling for --bootappend-live-failsafe in lb config. 2012-10-08 19:51:23 +02:00
Daniel Baumann bf918b8584 Releasing debian version 3.0~a64-1. 2012-10-05 09:23:53 +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 5e1b463cf6 Adding note about experimental in cgi frontend package description. 2012-10-03 16:00:51 +02:00
Daniel Baumann 995de1ae9e Updating package descriptions. 2012-10-03 15:58:44 +02:00
Michal Suchanek 057d7439ac Allowing to include multiple kernel images but menu entry is generated only for one. 2012-10-03 14:22:47 +02:00
Daniel Baumann 36d3b1a510 Removing ubuntu natty support, EOL. 2012-10-03 13:49:25 +02:00
Daniel Baumann 80f3c62290 Removing unsupported and unsupportable bootstrap_copy. 2012-10-03 13:46:22 +02:00
Daniel Baumann 3f84ba14ce Releasing debian version 3.0~a63-1. 2012-10-02 21:24:43 +02:00
Daniel Baumann fd445ce765 Booting by default with 'quiet' and 'splash' parameters. 2012-10-01 13:11:40 +02:00
Daniel Baumann 97de0e925e Add missing whitespace when concatenating multiple live.cfg syslinux files. 2012-10-01 05:36:09 +02:00
Daniel Baumann 687d2abf6c Releasing debian version 3.0~a62-1. 2012-10-01 05:02:51 +02:00
Daniel Baumann 711d6504f1 Using menu default only once when populating syslinux configurations for more than one kernel flavour (Closes: #682957). 2012-10-01 05:01:18 +02:00
Daniel Baumann 5b8cfdc193 Clearing the screen when exiting syslinux menu. 2012-10-01 04:46:41 +02:00
Daniel Baumann 69df65a5db Removing superfluous menu default directive in syslinux configuration files. 2012-10-01 04:44:23 +02:00
Daniel Baumann fd73a68615 Simplify internal replacement strings when processing syslinux configuration files. 2012-10-01 04:43:14 +02:00
Daniel Baumann c9def02d74 Using linux rather than kernel directive in syslinux configuration files. 2012-10-01 04:39:27 +02:00
Daniel Baumann 803266d886 Also use .contents suffix for file list of sources images like for binary images, rather than the old .list suffix. 2012-10-01 03:42:20 +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
Daniel Baumann b7396abd13 Avoiding warnings when checking for arguments in clean. 2012-09-30 20:29:55 +02:00
Daniel Baumann 26f2278a23 Supporting parent distribution as a variable field in archive definitions. 2012-09-30 20:14:05 +02:00
Daniel Baumann ad31a98bf0 Supporting parent distribution as a variable field in syslinux splashes. 2012-09-30 20:13:42 +02:00
Daniel Baumann 64664bb475 Only producing zsync files for iso and iso-hybrid images. 2012-09-30 17:34:08 +02:00
Daniel Baumann efe7090bdb Simplyfing clean option in lb config. 2012-09-30 15:13:42 +02:00
Daniel Baumann f735d984cf Releasing debian version 3.0~a61-1. 2012-09-30 09:47:22 +02:00
Daniel Baumann 880e6e0736 Adding slightly modified patch from Adam Conrad <adconrad@ubuntu.com> to remove resolvconf artifacts. 2012-09-30 09:43:58 +02:00
Colin Watson 5e4f7742c5 Fixing execution of binary hooks. 2012-09-30 09:40:01 +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
Daniel Baumann 2046ad7fdd Don't turn on xz compression in mksquashfs for ubuntu builds according to Adam Conrad <adconrad@ubuntu.com>. 2012-09-30 09:33:06 +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 b693418459 Using dedicated initrd line in syslinux configurations rather than stuffing everything in one line. 2012-09-30 08:30:06 +02:00
Daniel Baumann 68331c3f97 Correcting 'not-enough-arguments' check in Packages grep-aptavail helper. 2012-09-29 15:42:38 +02:00
Daniel Baumann 8cd449e67c Releasing debian version 3.0~a60-1. 2012-09-29 14:08:52 +02:00
Daniel Baumann 9b81e07886 Updating to standards version 3.9.4. 2012-09-29 13:51:36 +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 6b12a3fb7d Updating win32-loader inclusion handling. 2012-09-29 13:08:14 +02:00
Daniel Baumann 3e72045807 Removing virtual-hdd image type.
Rather than a half broken image type, we'll bet our money on having proper
partman recipies support implemented for hdd image types.

Even if we don't make it for wheezy, it's better to not have virtual-hdd
in there and tell users to use the jessie version for proper hdd images.
2012-09-26 15:36:44 +02:00
Daniel Baumann 218094cff2 Releasing debian version 3.0~a59-1. 2012-09-26 14:48:45 +02:00
Daniel Baumann d86d6cd72c Removing intel-microcode special handling in chroot_linux-image, microcode packages are already included automatically anyway. 2012-09-26 14:43:17 +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 017ce07eb4 Correcting cdebootstraps-options typo in getopt, thanks to chals <chals@altorricon.com>. 2012-08-31 15:07:29 +02:00
Daniel Baumann 360621922c Updating base-files hack for plymouth in progress mode. 2012-08-30 08:51:51 +02:00
Richard Nelson 5d8ff42064 frontend/cgi correctly reference netboot binary-images in form.html. 2012-08-29 21:20:29 -05: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 55f6d94398 Releasing debian version 3.0~a58-1. 2012-08-27 16:33:24 +02:00
Daniel Baumann 341bd2a096 Setting default progress distribution from artax to baureo. 2012-08-27 16:23:27 +02:00
Daniel Baumann a0a5bbfd1c Dropping lb prefix from live-build scripts, not needed anymore.
Previously, we needed to keep the lb_* prefix as the scripts
could also be executed standalone. Since the lb wrapper is
mandatory since squeeze, we can drop this now.
2012-08-27 16:05:49 +02:00
Daniel Baumann d6e45a3437 Making build.sh sourcing more robust (Closes: #684896). 2012-08-27 16:05:48 +02:00
Daniel Baumann de27a82a67 Correcting printf call cosmetically in central wrapper when prepending date and time for each command to not choke upon multiple arguments. 2012-08-27 16:05:48 +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 b6da4aec04 Removing old LB= hack when wrapper was not mandatory. 2012-08-27 15:16:09 +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 365e4c81c5 Adding some comments about the different locations of live-build in the central lb wrapper. 2012-08-27 14:54:20 +02:00
Daniel Baumann 80bfaf9f0a Exposing --debootstrap-options and --cdebootstrap-options publicly. 2012-08-27 14:47:10 +02:00
Daniel Baumann d7064dfb27 Applying patch from Colin Watson <cjwatson@ubuntu.com> to correct chroot hooks execution (Closes: #685534). 2012-08-27 14:43:27 +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 6cb824c187 Improving check for missing apt-ftparchive to check for the actual file, rather than to check for a possible missleading bootstrap flavour. 2012-08-27 14:07:34 +02:00
Richard Nelson 8c17b89ad9 frontend/cgi cleanup remarked line of common function source from last commit on l-b-c.cron. 2012-08-24 11:38:25 +02:00
Richard Nelson ee0b2d2c1e frontend/cgi cleanup and support for clone, config, and build on cron job. 2012-08-24 11:38:25 +02:00
Richard Nelson 2499a57101 frontend/cgi only source /usr/lib/live/build.sh 2012-08-24 11:38:25 +02:00
Richard Nelson ff91282039 frontend/cgi rename BINARY_INDICES to APT_INDICES 2012-08-24 11:38:25 +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 d8d5366a6c Using /etc/live/build/*.conf instead of /etc/live/build.d/*.conf for consistency reasons. 2012-08-24 11:38:24 +02:00
Daniel Baumann 9820490ca6 Switching back to use the more common ${@} instead of ${*}, it's not required in current lb_clean anymore. 2012-08-24 11:38:13 +02:00
Daniel Baumann dd31503960 Correcting wrong path to syslinux configuration files when using live-build from a local git clone, thanks to Raphael Hertzog <hertzog@debian.org> (Closes: #684893). 2012-08-14 15:36:38 +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 2023579e88 Correcting typo in binary_syslinux when writing the flavour name to the config files (Closes: #684865). 2012-08-14 10:50:20 +02:00
Richard Nelson aef6a70f51 Remove frontend/cgi unofficial custom binary and custom bootstrap options. 2012-08-13 21:33:09 -05:00
Daniel Baumann c68e06fb6b Simplyfing sourcing of build.sh and getting away with the broken subshell construct. 2012-08-13 12:23:34 +02:00
Daniel Baumann 31d966cb49 Releasing debian version 3.0~a57-1. 2012-08-10 22:42:58 +02:00
Daniel Baumann 59785f19f6 Adding cron to recommends for live-build-cgi. 2012-08-09 13:33:31 +02:00
Daniel Baumann 670df4e9df Adding live-build to depends for live-build-cgi. 2012-08-09 13:33:22 +02:00
Daniel Baumann bfd14cf38d Also removing binary.netboot.tar.xz before re-creating it in binary_netboot. 2012-08-07 06:57:21 +02:00
Richard Nelson abc4f98acf Remove settings that should be handled by --config git option. 2012-08-04 20:06:50 -05:00
Richard Nelson b589256e88 Initial work to support --config git option. 2012-08-04 20:00:05 -05:00
Daniel Baumann 12a2f17ea7 Removing manpage stubs for second-level commands.
We don't have proper manpages for lb_*_* commands yet,
rather than having a useless stub for it that's just a
boilerplate and nothing more, let's remove them for now,
and add them back one by one but with full reference content.
2012-08-02 18:56:07 +02:00
Daniel Baumann 9635371d5e Updating lb config --config manpage option to reflect that any Git Id can be specified, not just branches. 2012-08-02 18:54:03 +02:00
Daniel Baumann 281e42d267 Concentrating all parted calls within lb_binary_hdd into one place in order to make things simpler. 2012-07-31 19:30:59 +02:00
Daniel Baumann b2eb7a885b Releasing debian version 3.0~a56-1. 2012-07-30 21:56:34 +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 1eabc72682 Removing chroot_local-patches, too much overhead for just applying patches (notably, with -p1 enforced), hooks are more flexible anyway. 2012-07-30 18:19:28 +02:00
Daniel Baumann 508510e097 Updating GPL standard header in all files. 2012-07-30 18:19:27 +02:00
Daniel Baumann 913c6037af Adding shortcut helper for dctrl-tools.
This 'Packages' shortcut helper can be used for simplified
usage of grep-aptavailable from dctrl-tools.

Rather than needing to specify the following explicit command:

  ! grep-aptavail -n -sPackage -FPriority standard

in package lists, the following shortcut can be used:

  ! Packages Priority standard
2012-07-30 18:19:23 +02:00
Daniel Baumann a48c974c9c Avoid showing message in lb config running the second time through auto on git repository based config trees. 2012-07-30 01:19:05 +02:00
Daniel Baumann da30397e4b Automatically update auto/config when using --config with extra options. 2012-07-30 00:33:33 +02:00
Daniel Baumann e2b2441d86 Adding messages about performing git operations when using --config. 2012-07-30 00:28:10 +02:00
Daniel Baumann ecc1d7a0c2 Adding possibility to specify a git branch when using lb config --config. 2012-07-29 23:26:31 +02:00
Daniel Baumann 227ae768e6 Releasing debian version 3.0~a55-1. 2012-07-29 02:03:11 +02:00
Daniel Baumann cdf1bca486 Optimizing chroot package-lists handling for the cases where it's not used. 2012-07-29 00:36:49 +02:00
Daniel Baumann 94fc62e2ff Also checking for dctrl-tools when assembling binary package lists. 2012-07-29 00:35:30 +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 e81b1c6f7a Removing chroot_task-lists, obsoleted by package lists. 2012-07-29 00:01:19 +02:00
Daniel Baumann d360b3dc34 Handling dctrl-tools temporary installation in chroot during package-lists expansion. 2012-07-28 23:55:22 +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 f84a979906 Removing debian-junior list, same as with debian-science, see 9ad58f0d. 2012-07-28 21:05:55 +02:00
Daniel Baumann 154f822592 Removing unused debian-live package lists. 2012-07-28 21:04:38 +02:00
Daniel Baumann 62d8488a75 Removing minimal package list, not needed anymore.
live-boot pulls in eject and file through recommends,
live-config pulls in user-setup and sudo through recommends,
gnupg is pulled in as include during bootstrap on ubuntu.

We don't need these packages by default, and if users are
building with recommends disabled, then they have to make
sure these are pulled in too.

This is the more consistent handling than to explicitly
force all of these in all live images.
2012-07-28 21:02:12 +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 2bffb6eaf3 Adding git to suggests. 2012-07-28 20:51:32 +02:00
Daniel Baumann bb6462ce88 Removing unmaintained gnustep package list. 2012-07-28 20:38:57 +02:00
Daniel Baumann 28cd477e7e Showing a message about ignoring --config when the current directory already is a git repository. 2012-07-28 20:37:19 +02:00
Daniel Baumann 189ea002e4 Reordering auto/config in lb_config to work with bootstrapping config tree from a git repository. 2012-07-28 20:04:36 +02:00
Daniel Baumann e8a9169e26 Allowing to specify a git repository to lb_config in order to bootstrap a config tree. 2012-07-28 19:17:53 +02:00
Daniel Baumann 0ba1c532f8 Moving off rescue package list to its own git repository for the config tree. 2012-07-28 19:09:43 +02:00
Daniel Baumann 0ea1faca82 Dropping globale package lists for the desktop environments.
For the default images, we're maintaining their config trees in
git repositories now. So they're not needed anymore.

For people wanting to build e.g. a GNOME image in a 'quick&dirty'
way, in the past, they used something like 'lb config -p gnome'.

Since we do want to get away with all automagics like this where
we need to maintain the package list eventhough tasksel is already
doing that (and more), we're now needing people to create a package
list, e.g.

  # echo 'task-gnome-desktop' > config/package-lists/gnome-desktop.list.chroot

This is consistent with the package handling where we dropped the
'lb config --packages' in favour for the same mechanism for package lists.

With dropping global package lists finally, we'll have consistency
and same workflow for everything soon.
2012-07-28 18:59:28 +02:00
Daniel Baumann cd4a3eddc0 Dropping global binary includes and moving binary local-includes to includes, just as with chroot includes and local-includes. 2012-07-28 18:57:40 +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 8587b8c65f Releasing debian version 3.0~a54-1. 2012-07-20 04:48:07 +02:00
Daniel Baumann e74bc6a73f Correcting accidentally reverted check for rsvg in binary_syslinux when building non-chrooted. 2012-07-19 21:12:03 +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 6c0ddb7d6d Making sure target directory for syslinux theme files exists when building non-chrooted. 2012-07-19 18:13:13 +02:00
Daniel Baumann d4999431b8 Releasing debian version 3.0~a53-1. 2012-07-19 04:18:13 +02:00
Daniel Baumann b5dc28d1aa Removing leftover maintainer scripts from cron removals. 2012-07-19 04:13:14 +02:00
Daniel Baumann e8a9743b37 Correcting spelling typo in 3.0~a52-1 changelog entry. 2012-07-19 04:12:25 +02:00
Daniel Baumann 3fadd7c436 Adding missing copyright fields in copyright file. 2012-07-19 04:11:49 +02:00
Daniel Baumann a4996ee015 Removing ubuntu-cloud and ubuntu-cloud-desktop package lists.
This package list has had a spelling typo since its initial
commit. Nobody has ever reported that and the official
live-build package in ubuntu does not ship these lists either.
Apparently nobody uses them, so we can remove them to improve
quantity/quality ratio.
2012-07-19 03:59:39 +02:00
Daniel Baumann 64cd868fbc Removing warning from minimal package list about minimal hook, which isn't the case anymore. 2012-07-19 03:53:50 +02:00
Daniel Baumann 9ad58f0d5a Removing debian-science package list, there's science-tasks and #513296 to do this in proper. 2012-07-19 03:52:19 +02:00
Daniel Baumann a6cdc3f9d3 Installing examples into the correct location in /usr/share/doc. 2012-07-19 03:35:11 +02:00
Daniel Baumann 65470edffa Removing debian-live-pxe-server.chroot example hook, not usefull in this way. 2012-07-19 03:33:28 +02:00
Daniel Baumann 394fb6ab23 Removing localepurge.chroot example hook, should be done solely through preseeding. 2012-07-19 03:32:00 +02:00
Daniel Baumann bf8d8afab0 Removing kernel-purge.chroot example hook, not usefull anymore. 2012-07-19 03:32:00 +02:00
Daniel Baumann 1470c95200 Removing losetup-lukshome.chroot example hook, obsoleted by live-boots new persistence implementation. 2012-07-19 03:32:00 +02:00
Daniel Baumann f1de9370cc Removing sysvinit.chroot example hook, not useful on modern systems anymore. 2012-07-19 03:32:00 +02:00
Daniel Baumann b5fdc31759 Removing virtualbox.chroot example hook, not required anymore with current virtualbox versions. 2012-07-19 03:32:00 +02:00
Daniel Baumann d78619d404 Removing update-initramfs.chroot example hook, obsoleted by live-builds own hacks. 2012-07-19 03:32:00 +02:00
Daniel Baumann 3812292d80 Removing udev-generators.chroot example hook, obsoleted by live-builds own hacks. 2012-07-19 03:32:00 +02:00
Daniel Baumann deedd8aa31 Removing sun-java6.chroot example hook, obsoleted by openjdk. 2012-07-19 03:31:59 +02:00
Daniel Baumann c4f6771ed7 Removing rt2570-modules.chroot example hook, obsoleted out-of-tree module. 2012-07-19 03:31:59 +02:00
Daniel Baumann 607c5a497a Removing okular-nodrm.chroot example hook, would need update for recent kde4 versions and I don't care about that. 2012-07-19 03:31:59 +02:00
Daniel Baumann e5ed7f6ce3 Removing live-build-inclusion.binary example hook, too broken way to do it. 2012-07-19 03:31:36 +02:00
Daniel Baumann 6d45398edd Removing linux-modules.chroot example hook, this can be done by kmods conf.d directories directly. 2012-07-19 03:20:08 +02:00
Daniel Baumann 998584f2af Removing hal-automount.chroot example hook, not needed anymore. 2012-07-19 03:19:13 +02:00
Daniel Baumann fed66eda2a Removing debian-installer-banner.binary example hook, this can be done through config/includes.binary_debian-installer directly. 2012-07-19 03:17:12 +02:00
Daniel Baumann d0788d8dd8 Renaming example hooks to the newer filename patter that is required by live-build since a while. 2012-07-19 03:16:03 +02:00
Daniel Baumann 2d16c7e258 Moving scripts from /usr/share/live to /usr/lib/live for consistency with all debian-live packages. 2012-07-19 02:59:55 +02:00
Daniel Baumann 5816e7afe0 Moving main executables away from scripts subdirectory. 2012-07-19 02:53:28 +02:00
Daniel Baumann ad4a519ccc Removing leftover creation of /var/log in toplevel makefile from the cron removals. 2012-07-19 02:49:13 +02:00
Daniel Baumann f271c83674 Releasing debian version 3.0~a52-1. 2012-07-18 22:49:41 +02:00
Daniel Baumann 4abb4a4045 Enabling security archives on wheezy. 2012-07-18 22:44:30 +02:00
Daniel Baumann 14a43495ca Correcting some distribution specific checks to make them derivatives compliant. 2012-07-18 22:44:05 +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 44fd76f5a0 Correcting freudian typo in package check for chroot filesystems dependencies in binary_rootfs. 2012-07-18 22:30:15 +02:00
Daniel Baumann daf7a8909d Adding extlinux bootloader configuration files. 2012-07-18 22:30:13 +02:00
Daniel Baumann 2086f8eeed Slightly updating strings in splash.svg for better organization of the information presented. 2012-07-18 22:30:11 +02:00
Daniel Baumann 526943c099 Also removing zsync files in lb clean. 2012-07-18 21:55:08 +02:00
Daniel Baumann 3776a96b20 Correcting live-build and live-boot versions for splash.svg post-processing. 2012-07-18 21:55:08 +02:00
Daniel Baumann c07a76f649 Decrufting version flag. 2012-07-18 21:55:08 +02:00
Daniel Baumann 36d4a6672f Updating splash.svg handling for unchrooted and chrooted builds. 2012-07-18 21:55:07 +02:00
Daniel Baumann 600275fcf9 Adding support for pinning preferences files in config/archives/*.pref{.chroot,.binary}. 2012-07-18 21:03:20 +02:00
Daniel Baumann 0a553d2a32 Handle multiple version numbers when having more than one linux flavours for splash.svg post-processing. 2012-07-18 20:44:05 +02:00
Daniel Baumann 56465f7f46 Removing spurious lb_source_netboot, there's not such thing as a netboot specific source tarball anyway. 2012-07-18 20:12:35 +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 23bf55a73c Applying patch from Steven Shiau <steven@nchc.org.tw> to conditionally copy /etc/apt/secring.gpg* files. 2012-07-18 17:45:52 +02:00
Daniel Baumann b34c10519d Using clamav-data for squeeze and clamav-freshclam for wheezy/sid in rescue list. 2012-07-12 22:40:13 +02:00
Daniel Baumann 574af08130 Marking ddrescue as squeeze-only in rescue list. 2012-07-12 22:37:44 +02:00
Daniel Baumann a666ebe6cf Marking libguytools1 as squeeze only in rescue package list. 2012-07-12 20:49:48 +02:00
Daniel Baumann c936cae79f Updating dhcp packages in rescue package list to avoid transitional packages for squeeze and up. 2012-07-12 20:48:01 +02:00
Daniel Baumann 223b81fb28 Removing discontinued live-build-cron autobuilder (Closes: #672379). 2012-07-09 18:22:14 +02:00
Daniel Baumann 3cd505f7d4 Truncating udev persistent net rules in remove-udev-persistent-rules.chroot hook rather than to remove them (Closes: #680763).
This allows to have non-persistent net devices with persistence properly,
see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680763#10 for more information.
2012-07-08 19:23:15 +02:00
Daniel Baumann cfc14171c4 Adding dynamic informations into the splash and creating the png export at build time. 2012-07-08 19:18:31 +02:00
Daniel Baumann e605cf964e Adding svg splash for syslinux bootloaders. 2012-07-08 01:14:00 +02:00
Daniel Baumann f2c37f226b Improving error message in lb wrapper to show the command in case of a missing command. 2012-07-03 16:05:31 +02:00
Daniel Baumann e448d1e92a Releasing debian version 3.0~a51-1. 2012-06-27 14:39:02 +02:00
Daniel Baumann cc17c2aa8f Switching to xz compression in source and binary packages. 2012-06-27 14:35:58 +02:00
Daniel Baumann 6b506cb7ba Switching from smbfs to cifs-utils (Closes: #679240). 2012-06-27 14:34:10 +02:00
Daniel Baumann 54c3f9a098 Removing alpha and hppa stub support, both architectures have been dropped for wheezy in debian. 2012-06-26 19:35:49 +02:00
Daniel Baumann 060a94eb09 Redirecting rmdir output in postrm for live-build-cron properly (Closes: #676102). 2012-06-25 20:10:50 +02:00
Daniel Baumann 788455780b Automatically include intel-microcode when building with firmware and non-free enabled. 2012-06-12 13:38:20 +02:00
Daniel Baumann 52bdb68d18 Changing default binary.list filename to binary.contents to make it more explicit and not to be confused with package lists. 2012-06-12 10:08:58 +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 0451545abb Releasing debian version 3.0~a50-1. 2012-06-06 20:01:17 +02:00
Hector Oron 8d9de19390 Dont assume bash when configuring chroot with QEMU.
Currently running second stage with QEMU on a chroot without bash fails.
The following patch teaches chroot to use /bin/sh instead default /bin/bash.
2012-06-06 19:59:15 +02:00
Daniel Baumann e94ba20dab Removing old/non-working graph-helper. 2012-06-06 19:59:15 +02:00
Daniel Baumann 8ccfefbf23 Dropping different debian cgi templates and use only the one used on live-build.debian.net. 2012-06-06 19:59:15 +02:00
Daniel Baumann f74ac47691 Removing unmaintained l10n handling. 2012-06-06 19:59:15 +02:00
Daniel Baumann 46f13db55a Updating l10n stuff before removing it. 2012-06-06 19:59:15 +02:00
Daniel Baumann 2c5004a358 Re-arranging frontends in source tree. 2012-06-06 19:59:13 +02:00
Daniel Baumann e906e78462 Defaulting to SHA256 live-media checksums. 2012-06-05 17:42:07 +02:00
Daniel Baumann a5a651f08d Updating live-media checksum names for newer live-boot. 2012-06-05 17:40:52 +02:00
Daniel Baumann 52c602459d Automatically translate date formats in po files. 2012-06-05 13:46:52 +02:00
Daniel Baumann 59ec07d99a Removing grub-efi from d-i packages for the time being, it doesn't work correctly yet. 2012-06-05 12:59:53 +02:00
Daniel Baumann 4db854d39e Correcting cron.d directory removal in postrm. 2012-06-05 12:59:01 +02:00
Daniel Baumann 67167af1da Updating auto example scripts. 2012-06-04 21:40:39 +02:00
Daniel Baumann 6e10198b6a Releasing debian version 3.0~a49-1. 2012-06-04 12:15:54 +02:00
Daniel Baumann 328222f8c7 Moving local includes from auto/{functions,scripts} to local/{functions,scripts} where they belong. 2012-06-04 11:55:22 +02:00
Daniel Baumann 434307c22d Updating cache directory names to consistent naming scheme. 2012-06-04 11:55:22 +02:00
Daniel Baumann ead507b47c Making firmware package assembling a bit more robust. 2012-06-04 11:55:18 +02:00
Daniel Baumann 4007e00a56 Adding grub-efi to static list of packages for the d-i pool for amd64. 2012-06-04 11:54:14 +02:00
Daniel Baumann aa0c0fb107 Renaming internal .stage to .build for consistency within the configuration tree. 2012-06-03 22:42:41 +02:00
Daniel Baumann 4c903bab69 Removing some more configuration files on purge (Closes: #672379). 2012-06-03 21:36:58 +02:00
Ben Armstrong 5de395751e Adding default for --debian-installer-preseedfile. 2012-06-03 10:50:25 -03:00
Daniel Baumann a666a80a4f Renaming config/binary_debian-installer-includes to config/includes.binary_debian-installer for consistency with the other include directories. 2012-06-03 08:27:16 +02:00
Daniel Baumann 5953d2c948 Don't bother supporting firmware on ubuntu, they seem to have a different archive structure. 2012-06-03 08:24:31 +02:00
Daniel Baumann 10c79ed504 Removing pre-squeeze XORG_CONFIG variable from the chroot environment. 2012-05-31 13:19:36 +02:00
Daniel Baumann 75a671efca Allowing to use comments in config/environment.{binary,chroot}. 2012-05-31 13:16:19 +02:00
Daniel Baumann 7ce43cfc16 Allowing to inject variables through config/environment.binary into the binary environment. 2012-05-31 13:15:18 +02:00
Daniel Baumann 3eb2b243cc Cleaning http_proxy and ftp_proxy settings in chroot, people using apt proxies set them throught the apt pseudo-proxy options, and people using real proxies use config/environment.{chroot,binary} to set them. 2012-05-31 13:12:13 +02:00
Daniel Baumann dc6b3d90da Moving firmware symlink creation to the end of binary_debian-installer in order to ensure to take only the latest packages into account that get into the image, regardless if they come from the archive or are localy included. 2012-05-31 13:04:55 +02:00
Daniel Baumann 5e91eadadc Naming resulting binary isohybrid image binary.hybrid.iso from now on for consistency with the different hdd images later on. 2012-05-25 19:25:38 +02:00
Daniel Baumann 626b9923f7 Correcting renaming of syslinux files in progress mode to actually work. 2012-05-25 19:13:20 +02:00
Daniel Baumann 3a864f6ddd Releasing debian version 3.0~a48-1. 2012-05-25 08:26:30 +02:00
Daniel Baumann cb3d6ca77f Allowing to inject variables through config/environment.chroot into the chroots environment. 2012-05-24 09:41:27 +02:00
Daniel Baumann 69194996f7 Using /boot on live media instead of /isolinux or /syslinux in progress mode. 2012-05-23 07:22:51 +02:00
Daniel Baumann f759856a78 Correcting typo in binary_rootfs to restore 'plain' live filesystem support. 2012-05-23 07:19:19 +02:00
Tails developers 4baf92dcb4 Fixing typo in rescue package list. 2012-05-14 19:19:51 +02:00
Daniel Baumann 224a2304c8 Adding failsafe entries for syslinux bootloaders in embedded configs. 2012-04-29 09:30:50 +02:00
Daniel Baumann ad8e313e7a Updating release list for ubuntu. 2012-04-28 09:40:32 +02:00
Daniel Baumann 58cb79b8cd Transforming failsafe boot parameter into an own option. 2012-04-27 20:31:49 +02:00
Daniel Baumann 4b333fb980 Releasing debian version 3.0~a47-1. 2012-04-27 12:05:38 +02:00
Daniel Baumann 0af78a1f67 Slight reordering in lb_binary_debian-installer. 2012-04-27 00:20:40 +02:00
Daniel Baumann 678f2c1cfb Adding symlinks in /firmware for debian-installer on live media. 2012-04-26 23:37:56 +02:00
Daniel Baumann 1315e5b1f5 Unconditionally including firmware in all images by default. This is safe since only firmware available within the configured archive area is included automatically, see manpage. 2012-04-26 23:11:25 +02:00
Daniel Baumann 4eec1db12f Updating static list of live specific packages that get unconditionally added and included in the source images. 2012-04-26 23:08:15 +02:00
Daniel Baumann 53898caf1f Also include firmware-linux meta package if non-free is enabled.
While the actual firmware packages are automatically detected,
it is handy to have the firmware-linux meta package included
if non-free is enabled. That way, future upgrades to newer kernels
will keep having all available firmware packages pulled in too.
2012-04-26 23:02:53 +02:00
Daniel Baumann 4a182167c7 Automatically preseed some known firmware packages. 2012-04-26 22:56:57 +02:00
Daniel Baumann 5787c78ff0 Adding entries about the firmware options in lb_config manpage. 2012-04-26 22:39:37 +02:00
Daniel Baumann b8bf4da08f Adding support for including firmware packages automatically within the live system. 2012-04-26 22:39:36 +02:00
Daniel Baumann add95845d9 Removing 'frozen' symlink in d-i dists, the other suitnames can probably go to. 2012-04-26 22:28:50 +02:00
Daniel Baumann ee4838878f Generating package indices for the detected sections within binary pool, needed for proper firmware package placement. 2012-04-26 22:28:50 +02:00
Daniel Baumann e5b2325f2c Installing packages into their detected sections within binary pool, needed for proper firmware package placement. 2012-04-26 22:28:50 +02:00
Daniel Baumann bbd9c284e4 Adding support for including firmware packages automatically within debian-installer. 2012-04-26 22:28:48 +02:00
Daniel Baumann d2be2946db Updating defaults for linux-latest metapackages in wheezy. 2012-04-23 12:35:10 +02:00
Daniel Baumann 1361d324e1 Adding memtest to the list of options appended in fail-safe mode. 2012-04-21 10:47:13 +02:00
intrigeri f3b93ad321 Adding nosplash to the list of options appended in fail-safe mode. 2012-04-18 16:24:56 +02:00
Daniel Baumann 5cfd66788e Correcting destination directory for extraction of the gfxboot-theme in ubuntu mode. 2012-04-17 21:52:07 +00:00
Daniel Baumann 02a0e0b64f Temporarily including bzip2 manually when bootstrapping until #657560 has been fixed in unstable. 2012-04-11 09:01:24 +02:00
Daniel Baumann 73682ba57a Correcting regression in the form of a wrong path in binary_syslinux for syslinux theme packages. 2012-04-10 10:53:22 +02:00
Daniel Baumann 788e5d6dac Making extraction of the manpage section in manpages/Makefile work with multiple dots in the filename. 2012-04-08 22:53:18 +02:00
Daniel Baumann f3f9ad8bde When removing fstab for live-installer also touch an empty file for it to avoid other packages failing on non-existing fstab. 2012-04-06 12:10:04 +02:00
Daniel Baumann 982e2fb0a9 Releasing debian version 3.0~a46-1. 2012-04-05 10:34:15 +02:00
Daniel Baumann 805cebe2e4 Prefering default modules in initrd even on netboot images (Closes: #667594). 2012-04-05 10:24:40 +02:00
Daniel Baumann 544bde3039 Moving kernel and initrd into tftpboot directory for netboot images. 2012-04-04 21:19:15 +02:00
Daniel Baumann 5a89cf1c0e Moving pxelinux.cfg to pxelinux.cfg/default in pxelinux bootloader configs. 2012-04-04 21:19:15 +02:00
Daniel Baumann c3a1b3cdae Updating release list for ubuntu. 2012-03-19 16:27:09 +01:00
Daniel Baumann 3f200da939 Updating release list for progress. 2012-03-19 16:26:31 +01:00
Daniel Baumann 4e8d6a7093 Adding Italian debconf translations from Beatrice Torracca <beatricet@libero.it> (Closes: #663428). 2012-03-11 22:24:08 +01:00
Daniel Baumann 40a8a8ee75 Excluding console-common in standard list for ubuntu as console-common is in universe. 2012-03-11 14:55:07 +01:00
Daniel Baumann 8fa786ba89 Avoid calling update-initrd in lb_chroot_hacks if the target system has no initrd, thanks to Hector Oron <zumbi@debian.org>. 2012-03-07 18:12:26 +01:00
Daniel Baumann 98192da0b9 Switching default bootstrap mirror from ftp.de.debian.org to ftp.debian.org, now that ftp.debian.org has upgraded hardware and bandwith. 2012-03-04 21:05:37 +01:00
Daniel Baumann 36cd2a3efe Removing references to not existing --language option in lb_config manpage. 2012-03-03 21:02:48 +01:00
Daniel Baumann d4d4265357 Excluding security and volatile archives for ubuntu precise for the the time being. 2012-03-03 13:37:16 +01:00
Daniel Baumann e5f5af6525 Adding architecture to the output message when running lb_config. 2012-03-03 13:05:29 +01:00
Daniel Baumann 11821eb8d6 Marking lde in rescue list as squeeze only, thanks to Michal Suchanek <hramrach@centrum.cz>. 2012-02-29 16:54:18 +01:00
Daniel Baumann b075cba9e9 Updating to standards version 3.9.3. 2012-02-26 21:14:10 +01:00
Daniel Baumann e92cc08f59 Updating copyright file machine-readable format version 1.0. 2012-02-26 21:14:08 +01:00
Daniel Baumann 7809c0ef96 Removing --username cruft, live-config bootparameters should be used via --bootappend-live. 2012-02-26 19:55:28 +01:00
Daniel Baumann ea22359fa6 Removing --hostname cruft, live-config bootparameters should be used via --bootappend-live. 2012-02-26 19:50:49 +01:00
Richard Nelson 545abd3b7f Set parent distribution, parent debian installer, and mode, also disable backports on l-b.cgi 2012-02-20 21:44:51 -06:00
Daniel Baumann 47e8fa8c2a Removing full path from chroot calls in chroot function.
Temporarily, we had /usr/share/live/build/scripts/build/lb_* named
without the lb_* prefix which made calling chroot being called with
full path in order to diffrentiate between lb chroot and /usr/sbin/chroot
when usling live-build from a local source tree.
2012-02-20 14:12:10 +01:00
Daniel Baumann ce18a6b9bd Excluding guymager for wheezy in rescue package list. 2012-02-20 07:29:23 +01:00
Daniel Baumann 3186684228 Including thttpd for squeeze only in rescue package list. 2012-02-20 07:28:12 +01:00
Daniel Baumann 62ceed1cbb Excluding honeyd for wheezy in rescue package list (Closes: #660601). 2012-02-20 07:27:18 +01:00
Daniel Baumann bd78d8698b Releasing debian version 3.0~a45-1. 2012-02-16 21:48:16 +01:00
Daniel Baumann 07d9902fc4 Adding Polish debconf translations from Michal Kulach <michalkulach@gmail.com> (Closes: #660003). 2012-02-16 21:47:00 +01:00
Daniel Baumann 84c185055f Add forgotten fallback for mode setting if lsb_release is not installed. 2012-02-16 21:40:18 +01:00
Ben Armstrong 33f4cacefd Removing menu as it adds an unwanted menu to some DEs/WMs which prefer to do without. 2012-02-16 09:16:20 -04:00
Daniel Baumann cc5e2ad304 Correcting typo in ubuntu default distribution name, thanks to Marco Lechner <marco.lechner@fossgis.de> (Closes: #659823). 2012-02-14 05:35:26 +01:00
Daniel Baumann 636a416717 Correcting typo in defaults for backports mirror. 2012-02-13 21:01:28 +01:00
Daniel Baumann 2d4cf57c98 Releasing debian version 3.0~a44-1. 2012-02-12 22:09:16 +01:00
Daniel Baumann 35b472b948 Adding lintian overrides for symlink-should-be-relative (bootloader configs need to use absolute symlinks on purpose to allow chrooted builds). 2012-02-12 22:06:27 +01:00
Daniel Baumann 4ba46d7ee4 Adding a workaround in rules to stop dh_link converting absolute symlinks to relative symlinks for bootloader configs. 2012-02-12 21:57:12 +01:00
Daniel Baumann b7a0d88db0 Removing warning about resolvconf package, not be needed anymore. 2012-02-07 13:31:41 +01:00
Daniel Baumann 7f91738540 Correcting destination path for uuid.conf when using casper in binary_disk, thanks to Luigi Capriotti <l.capriotti@xbmc.org> (Closes: #658995). 2012-02-07 10:12:52 +01:00
Daniel Baumann 17b425e9bd Correcting lzcat call in binary_disk to not bail out due to non-standard file extension (unknown suffix -- unchanged), thanks to Luigi Capriotti <l.capriotti@xbmc.org> (Closes: #658995). 2012-02-07 10:11:31 +01:00
Daniel Baumann 314d573298 Adding Dutch debconf translations from Jeroen Schot <schot@a-eskwadraat.nl> (Closes: #657470). 2012-02-07 10:08:37 +01:00
Daniel Baumann 1af6b3d089 Adding updated Spanish debconf translations from Javier Fernández-Sanguino Peña <jfs@computer.org> (Closes: #656404). 2012-02-07 10:07:11 +01:00
Daniel Baumann b1c3aecd28 Handling /etc/resolv.conf even if it's a dangling symlink like with resolv.conf, thanks to Stephane Graber <stgraber@ubuntu.com> (Closes: #657640). 2012-02-07 10:04:51 +01:00
Daniel Baumann 6c98972988 Releasing debian version 3.0~a43-1. 2012-02-06 23:24:53 +01:00
Daniel Baumann 3004ef6851 Shortening kernel and initrd filenames in /live again similar to what we did with in lenny.
Unfortunately, syslinux as of wheezy and newer apparently does not support
long filenames anymore. Therefore, we do have to shorten the filenames
from:

	/live/vmlinuz-3.2.0-1-amd64
	/live/initrd.img-3.2.0-1-amd64

to:

	/live/vmlinuz
	/live/initrd.img

In case more than one kernel flavour is used, the files are being
numbered, starting with vmlinuz1 and initrd1.img.
2012-02-06 23:17:23 +01:00
Daniel Baumann 3f62ac0a3d Cleaning up handling of apt preferences when building in progress mode. 2012-02-06 23:15:13 +01:00
Daniel Baumann bd9b635a0a Simplyfing automatic pinning in derivative modes. 2012-02-06 23:15:13 +01:00
Daniel Baumann d9a0202d1b Dereferencing potential symlinked apt preference files in chroot_apt/*.pref. 2012-02-06 23:15:13 +01:00
Daniel Baumann 7e1fc7431c Avoid removing populated apt preferences file in derivative mode. 2012-02-06 23:15:13 +01:00
Daniel Baumann 5605701973 Adding opt-in hook to remove all sources.list files, as it's desirable in some setups. 2012-02-06 23:15:13 +01:00
Daniel Baumann db4b354436 Improve backports handling in derivatives mode.
If LB_BACKPORTS=true, then backports are configured in sources.list,
however, not enabled.

If backports are enabled depends on pinning, either manually through
apt/preferences.d snipplets in local includes/chroot_apt, or,
depending on distribution (e.g. building artax-backports enables
pinning automatically).
2012-02-06 23:15:13 +01:00
Daniel Baumann 9c9cdbbb33 Removing useless top-comment for /etc/apt/preferences.d/progress.pref. 2012-02-06 23:15:13 +01:00
Daniel Baumann 822dc2c028 Updating year in copyright notices for 2012. 2012-02-06 23:15:12 +01:00
Daniel Baumann 335b5d0352 Using /etc/apt/sources.list.d/debian.list instead of /etc/apt/sources.list in derivative mode. 2012-02-06 23:15:11 +01:00
Daniel Baumann cc9fb10e25 Removing removal of bootstrap-base udeb in binary_debian-installer.
If both bootstrap-base and live-installer are available on the installer,
live-installer is prefereded by d-i (because of the live specific .disk info).

If live-installer is included, can be disabled with live-installer/enable=false
and d-i will use bootstrap-base in order to debootstrap the base system on
/target.
2012-02-06 23:15:11 +01:00
Daniel Baumann d2944e4341 Renaming forgotten binary_packagelists to binary_package-lists to match the rest of lb. 2012-02-06 23:15:11 +01:00
Daniel Baumann 2bcb8b67e4 Avoid warning messages in binary_packagelists for not existing local lists. 2012-02-06 23:15:11 +01:00
Daniel Baumann 0b6d68ce73 Adding note about 404 errors that are on purpose when fetching udebs in derivative mode. 2012-02-06 23:15:11 +01:00
Daniel Baumann eff9c23843 Updating squeeze point release number. 2012-02-06 23:15:11 +01:00
Daniel Baumann 7b99b1a9e9 Giving a note about what mode we are configuring, now that mode is determined automatically based on the host system. 2012-02-06 23:15:11 +01:00
Daniel Baumann 43105e7a2d Autodetecting mode depending on which distribution we're building. 2012-02-06 23:15:11 +01:00
Daniel Baumann 98932c4edf Correcting typo in security chroot mirror variable assembling. 2012-02-06 23:15:11 +01:00
Daniel Baumann ee58b8ab8d Applying patch from Ivailo Monev to remove stage files for pseudo-filesystems helpers in exit function. 2012-02-06 23:15:10 +01:00
Daniel Baumann db064f3787 Adding embedded copies for syslinux bootloaders (Closes: #622838, #635933, #636217, #645406, #646387, #646799, #651520, #652437). 2012-02-06 23:15:08 +01:00
Daniel Baumann 4e2a532f37 Updating lb_binary_syslinux for embedded syslinux themes. 2012-02-06 17:02:58 +01:00
Daniel Baumann 07ca41c280 Setting default mirror for progress to cdn.archive.progress-linux.org. 2012-01-18 23:06:21 +01:00
Richard Nelson d33c099ede l-b.cgi - Add pending build(s) to be processed ahead of your request. 2012-01-16 19:22:47 -06:00
Daniel Baumann fe93b01571 Updating to debhelper version 9. 2012-01-15 20:46:06 +01:00
Daniel Baumann 1e9e38c7fe Releasing debian version 3.0~a42-1. 2012-01-15 19:25:55 +01:00
Daniel Baumann cac0cdd5e4 Adding reference to --parent-archive-areas in lb_config manpage (Closes: #646797). 2012-01-15 19:22:27 +01:00
Colin Watson 3a75594b8c Print the current time before starting a command with the lb wrapper script (Closes: #630089). 2012-01-12 22:22:57 +01:00
Daniel Baumann df0721e87a Switching priorities of mirror defaults (which mirror default is used from which previously set mirror default etc.) to the way it was intendet to be.
If not building a derivative with two seperate repositories,
users should only need to bother about setting the
--mirror*|LB_MIRROR* options, the --parent-mirror*|LB_PARENT_MIRROR*
does get set automatically correctly now.
2012-01-12 13:19:24 +01:00
Daniel Baumann dce7b385ba Using syslinux payload as fallback in lb_binary_syslinux if no destinct image type could be deduced (Closes: #655562). 2012-01-12 12:34:53 +01:00
Daniel Baumann 2eab8fec68 Correcting wrong and incompatible loop for casper initrds in binary_disk. 2012-01-12 11:57:45 +01:00
Daniel Baumann 1ff06c2f81 Adding armhf kernel defaults, thanks for Ying-Chun Liu <paulliu@debian.org> for bringing it up (Closes: #655557). 2012-01-12 11:42:09 +01:00
Matthijs Kooijman 93a18b9cad Unmount chroot/root/config when running lb_clean. 2012-01-10 21:54:58 +01:00
Matthijs Kooijman 02b9dc3ea9 Unmount /root/config in case of error.
When there is an error, the Exit() handler unmounts filesystems within
the chroot. This adds /root/config to the list used when /proc/mounts is
not available.
2012-01-10 21:54:58 +01:00
Matthijs Kooijman 58209e8bd8 Use a two-stage mount again for mounting config inside chroot in lb_chroot_hooks.
This reverts part of cacf9b6e34 (but also adds a "bind" option to the
remount command, as documented in mount(8)).

Apparently, doing "mount -o bind,ro" doesn't work. It outputs:

	mount: warning: chroot/root/config seems to be mounted read-write.

and mounts read-write instead of read-only. This behaviour is
documented in mount(8). Newer kernels do seem to allow
combining bind with the read-only option (see mount(2)), but this does
not seem to work (possibly because mount is trying to be smart).
2012-01-10 21:54:58 +01:00
Matthijs Kooijman 7f9cfe3551 Fix path in 001-update-apt-file-cache.chroot.
The path included /chroot/, but hooks are called from within the chroot,
so that part should be removed. This hook probably never worked.
2012-01-10 21:54:58 +01:00
Matthijs Kooijman e7ecf56be3 Make the config available to all hooks.
Previously, the config was bindmounted inside the chroot only for hooks
from the config dir, now it is done earlier so it is available for all
hooks.

Note that it is now also done if there are no hooks, but this is
probably enough of an exception case to not warrant the extra plumbing
required to detect the case (and doing an extra bindmount shouldn't
really hurt anyway...).
2012-01-10 21:54:58 +01:00
Matthijs Kooijman ea491a1a1a Fix pathname for running hooks in lb_chroot_hooks.
lb_chroot_hooks would copy the hooks to run to
chroot/root/lb_chroot_hooks, but then try to run them from chroot/root
(which obviously fails). This means lb_chroot_hooks has not been working
for hooks from /usr/share/live/build/hooks since lb_chroot_hooks was
added in revision e4793268. Running hooks from the config directory was
unaffected.
2012-01-10 21:54:58 +01:00
Matthijs Kooijman dbe6a82bc0 Make lb_chroot_hooks work with dash.
Apparently, dash doesn't expand shell patterns within a quoted string,
whereas bash does. We can't remove the quoting entirely, though, since
that would cause problems when $LB_BASE or $_HOOK contains spaces (note
that $_HOOK can probably never contain spaces, but let's handle it just
in case). Only quoting the expansion of $LB_BASE and $_HOOK, but not the
shell pattern should make the hooks work with both bash and dash again.
2012-01-10 21:54:58 +01:00
Daniel Baumann 65f256f893 Releasing debian version 3.0~a41-1. 2012-01-08 02:24:43 +01:00
Daniel Baumann b266a5f959 Adding updated Swedish debconf translations from Martin Bagge <brother@bsnet.se> (Closes: #651345). 2012-01-08 00:32:19 +01:00
Daniel Baumann 1017d40993 Adding updated Portuguese debconf translations from Miguel Figueiredo <elmig@debianpt.org> (Closes: #654966). 2012-01-08 00:25:00 +01:00
Daniel Baumann ecbcdaa784 Using xz compression for squashfs only on wheezy and sid for the moment, not artax-backports. 2012-01-07 20:25:54 +01:00
Daniel Baumann 6bb4a22152 Adding temporary hack with pinning to avoid squashfs-tools mismatch for artax-backports. 2012-01-07 20:18:43 +01:00
Daniel Baumann e05fa004ff Correcting assembling of automatic pinning in progress mode. 2012-01-07 19:59:55 +01:00
Daniel Baumann e3c9db7a2b Fix unconditional overwriting of /etc/apt/preferences.d/progress.pref in progress mode. 2012-01-07 19:59:55 +01:00
Daniel Baumann ac004b56d2 Adding support for apt preference.d in config/chroot_apt. 2012-01-07 19:59:53 +01:00
Matthijs Kooijman 4581e49d4e Fixing lb_binary_rootfs leaving the chroot without archives files. 2012-01-03 21:08:34 +01:00
Daniel Baumann f57757371b Enabling contrib and non-free by default for progress. 2011-12-30 09:41:31 +01:00
Richard Nelson 58ba7df9ad l-b.cgi remove mirror operations which should be handled in /etc/live/build.conf 2011-12-28 23:00:15 -06:00
Richard Nelson adb3aec706 l-b.cgi rename 686-bigmem to 686-pae on forms. 2011-12-28 18:50:56 -06:00
Richard Nelson f4ee97726c l-b.cgi modify old --packages param to become cgipackages.list.chroot 2011-12-23 19:58:31 -06:00
Richard Nelson b16617d8c1 l-b.cgi correct virtual-hdd option form.html 2011-12-22 00:20:19 -06:00
Richard Nelson 94499db401 l-b.cgi update form.html to current --binary-images 2011-12-22 00:12:12 -06:00
Richard Nelson ef3f321d1b l-b.cgi update to form.html to current --package-lists 2011-12-21 23:24:16 -06:00
Richard Nelson b6b53dbc9e l-b.cgi cleanup trailing whitespace in l-b.cgi.cron 2011-12-21 13:05:39 -06:00
Richard Nelson 6d242b47c0 l-b.cgi cleanup build.html to use LB_BINARY_INTICES. 2011-12-21 12:32:39 -06:00
Richard Nelson 197e7c813b l-b.cgi cleanup cron.d operations. 2011-12-21 12:08:09 -06:00
Richard Nelson d5a9fc8006 l-b.cgi add option for amd64 to --architectures. 2011-12-21 11:08:49 -06:00
Richard Nelson 03e381eb85 l-b.cgi correct naming of --architectures 2011-12-21 10:41:17 -06:00
Daniel Baumann 030436dd70 Releasing debian version 3.0~a40-1. 2011-12-04 10:14:54 +01:00
Daniel Baumann 5c9e50bfef Adding updated French debconf translations from Julien Patriarca <patriarcaj@gmail.com> (Closes: #650655). 2011-12-04 10:09:36 +01:00
Daniel Baumann 615ce631b5 Adding updated Russian debconf translations from Yuri Kozlov <yuray@komyakino.ru> (Closes: #650870). 2011-12-04 10:08:09 +01:00
Daniel Baumann 2e27c8f2f6 Adding updated Czech debconf translations from Michal Simunek <michal.simunek@gmail.com> (Closes: #649110). 2011-12-04 10:05:53 +01:00
Daniel Baumann e57e3a2bac Creating progress specific disk info files in progress mode. 2011-11-29 16:28:17 +01:00
Daniel Baumann c9a7e8b3f6 Inverting logic for defaults or archive-areas wrt/ parent and derivatives. 2011-11-29 13:06:11 +01:00
Daniel Baumann f7462cb7b2 Adding libasound2-plugins to standard-x11 package list, thanks to Nik Lutz <nik.lutz@gmail.com>. 2011-11-24 17:20:08 +01:00
Daniel Baumann 40653e8000 Releasing debian version 3.0~a39-1. 2011-11-14 12:50:25 +01:00
Daniel Baumann ede38f171b Updating and completing German debconf translations. 2011-11-14 12:45:19 +01:00
Daniel Baumann 061394c287 Adding initial German debconf translations from Holger Wansing <linux@wansing-online.de> (Closes: #648381). 2011-11-14 12:32:32 +01:00
Daniel Baumann c56c4a1ae8 Adding initial Telugu debconf translations from Praveen Illa <mail2ipn@gmail.com> (Closes: #648693). 2011-11-14 12:30:37 +01:00
Daniel Baumann f4bdf828cf Adding initial Swedish debconf translations from Martin Bagge <brother@bsnet.se> (Closes: #648377). 2011-11-14 12:25:44 +01:00
Daniel Baumann 0f6b5d77ec Adding initial Russian debconf translations from Yuri Kozlov <yuray@komyakino.ru> (Closes: #647993). 2011-11-14 12:24:24 +01:00
Daniel Baumann 96783e00f9 Adding initial Portuguese debconf translations from Miguel Figueiredo <elmig@debianpt.org> (Closes: #648484). 2011-11-14 12:23:13 +01:00
Daniel Baumann ee01749670 Adding initial French debconf translations from Julien Patriarca <patriarcaj@gmail.com> (Closes: #647820). 2011-11-14 12:21:37 +01:00
Daniel Baumann 1dcda695ec Adding initial Spanish debconf translations from Gildardo Adrián Maravilla Jácome <gilmjc@gmail.com> and Francisco Javier Cuadrado <fcocuadrado@gmail.com> (Closes: #648463). 2011-11-14 12:16:04 +01:00
Daniel Baumann 697f8d9dad Adding initial Danish debconf translations from Joe Dalton <joedalton2@yahoo.dk> (Closes: #648346). 2011-11-14 12:13:26 +01:00
Daniel Baumann 9ef5f89aad Adding initial Czech debconf translations from Michal Simunek <michal.simunek@gmail.com> (Closes: #648457). 2011-11-14 12:12:00 +01:00
Daniel Baumann ff334ed4d5 Applying some of the suggestions from the reviewed template file from debian-l10n-english. 2011-11-14 12:07:48 +01:00
Daniel Baumann 479c02995f Applying some of the suggestions from the reviewed control file from debian-l10n-english (Closes: #643957). 2011-11-14 12:07:23 +01:00
Daniel Baumann e92e0b7f4a Also setting 5% margin for ext4 images, thanks to Neil Wilson <neil@aldur.co.uk> for spotting it (Closes: #647601). 2011-11-04 13:45:37 +01:00
Daniel Baumann cbd12a5efb Sorting overrides in rules alphabetically. 2011-11-04 11:32:37 +01:00
Daniel Baumann 4272857617 Removing --tasks leftovers in lb_config. 2011-11-02 13:10:54 +01:00
Daniel Baumann fda0dfab52 Adding temporary manual setting of d-i urls for progress. 2011-10-30 09:49:41 +01:00
Daniel Baumann c8ff8120d5 Releasing debian version 3.0~a38-1. 2011-10-30 08:47:49 +01:00
Daniel Baumann d4563b9202 Correcting defaults d-i mirror for progress. 2011-10-30 08:46:02 +01:00
Daniel Baumann 171207435f Adding precise in releases list. 2011-10-28 14:31:36 +02:00
Daniel Baumann ae5cef81b2 Adding expire date for oneiric in releases list. 2011-10-28 14:29:58 +02:00
Daniel Baumann 2c1c76edcf Bail out early in lb_source if source is disabled (Closes: #646807). 2011-10-27 21:58:16 +02:00
Daniel Baumann 98a4daa708 Renumbering hooks. 2011-10-22 18:06:54 +02:00
Daniel Baumann 6d7dbfbee9 Adding hook to remove dbus machine id. 2011-10-22 18:06:03 +02:00
Daniel Baumann 06faa01004 Updating symlinks for Ubuntu releases in debian-cd includes. 2011-10-21 00:17:04 +02:00
Daniel Baumann cf3e1d8911 Disable backports forcefully when building artax-backports images direcly. 2011-10-16 09:02:09 +02:00
Daniel Baumann 0c8bad24ea Releasing debian version 3.0~a37-1. 2011-10-13 20:03:12 +02:00
Daniel Baumann 9e2f545557 Correcting typo in defaults for system variable. 2011-10-13 19:50:48 +02:00
Daniel Baumann 0da0a10a95 Also strip out source archives from local archive definitions when using --apt-source-archives false. 2011-10-13 17:44:00 +02:00
Daniel Baumann 5053d95fe0 Releasing debian version 3.0~a36-1. 2011-10-13 15:57:54 +02:00
Daniel Baumann e9a5afc6cc Deal with non-existing preseed files in config tree. 2011-10-13 09:38:32 +02:00
Daniel Baumann b0454ad434 Correcting wrong location when looking for local preseed files in config tree, thanks to Eugenio Paolantonio <me@medesimo.eu> (Closes: #645116). 2011-10-13 09:38:32 +02:00
Daniel Baumann 92c56ca826 Updating squeeze point release number. 2011-10-13 09:38:32 +02:00
Daniel Baumann 84d1873aaa Using compression level 9 also for binary packages. 2011-10-13 09:38:30 +02:00
Daniel Baumann f2132fcacd Releasing debian version 3.0~a35-1. 2011-10-08 10:58:34 +02:00
Ben Howard d90c311ef9 Adding foreign bootstrap via qemu for cross arch building. 2011-10-05 07:38:53 +02:00
Ben Howard 9e5218ec75 Adding Ubuntu Cloud images packages lists. 2011-10-05 07:35:17 +02:00
Daniel Baumann 5ec41753cc Adding bug number to comments when moving top-level sources.list. 2011-10-03 12:38:59 +02:00
Daniel Baumann e7e4ba3259 Marking ntfsprogs as squeeze only in rescue list, thanks to Michael Milligan <mmilligan@astro.umn.edu>. 2011-10-02 12:14:56 +02:00
Daniel Baumann 06558c0cb6 Updating ettercap entries in rescue list for wheezy, thanks to Michael Milligan <mmilligan@astro.umn.edu>. 2011-10-02 12:14:11 +02:00
Ben Howard 0b654837bb Adding check for missing mtab during chrooted binary rootfs stage. 2011-10-01 08:04:57 +02:00
Daniel Baumann 7aec8962c3 Marking tct in debian-forensics package list as squeeze only, thanks to Michael Milligan <mmilligan@astro.umn.edu> (Closes: #643926). 2011-10-01 07:49:46 +02:00
Daniel Baumann fc0d34a31b Making top sources.list conditional, not everyone necessarily always uses that. 2011-09-30 15:42:51 +02:00
Daniel Baumann cf4f1c8ace Treating sources.list top-level file specially to workaround bug in apt that makes sources.list.d sources to be never prefered over main sources.list when using pinning (Closes: #573054). 2011-09-30 15:26:34 +02:00
Daniel Baumann d59ecb4ae2 Releasing debian version 3.0~a34-1. 2011-09-30 14:51:58 +02:00
Daniel Baumann 88b090e59c Removing EOL Ubuntu dapper from release information. 2011-09-30 12:11:03 +02:00
Daniel Baumann b89413a11e Setting default ubuntu release to oneric. 2011-09-30 12:11:03 +02:00
Colin Watson e6140b821a Defaulting to ubuntu-oneiric syslinux theme on Ubuntu. 2011-09-30 12:11:03 +02:00
Adam Conrad ab40254d0e Using the correct mirror locations for Ubuntu ports. 2011-09-30 12:11:03 +02:00
Colin Watson 5b7adeab62 Copying gfxboot theme when building for Ubuntu. 2011-09-30 12:10:58 +02:00
Daniel Baumann 96e86b96d8 Adding --system option to define the resulting image type to be a live system or a normal, non-live system. 2011-09-30 00:56:49 +02:00
Ben Howard 6b8183c277 Setting default armel linux flavour for Ubuntu. 2011-09-30 00:26:06 +02:00
Daniel Baumann 94e610f2e5 Renaming virtual-hdd-root-size to hdd-size in preparation of merging virtual-hdd into hdd. 2011-09-28 11:39:40 +02:00
Daniel Baumann 957cdb7cfe Using 'none' instead of 'plain' when specifying that no chroot filesystem should be used. 2011-09-28 11:17:47 +02:00
Daniel Baumann da0801ebf4 Correcting indenting glitch in lb_binary_chroot. 2011-09-28 11:12:00 +02:00
Daniel Baumann 432402e32b Renaming and reworking previous chroot_local-preseed into chroot_preseed, now looking for config/preseed/*.preseed{,.chroot} files. 2011-09-28 10:11:50 +02:00
Daniel Baumann fbc5aa8291 Removing unused global chroot_preseed. 2011-09-28 09:46:09 +02:00
Daniel Baumann f2b6f46f94 Releasing debian version 3.0~a33-1. 2011-09-28 07:35:00 +02:00
Daniel Baumann c2b7c107a5 Correcting check for debian-installer-distribution when using daily images in non-derivatives mode. 2011-09-28 07:26:02 +02:00
Daniel Baumann 0b08f4529e Releasing debian version 3.0~a32-1. 2011-09-27 22:56:41 +02:00
Yaroslav Halchenko 42afd95203 Fixing left-over uses of --packages-lists in cron scripts and examples. 2011-09-27 22:47:33 +02:00
Yaroslav Halchenko 8a43927c04 Fixing left-over uses of --binary-indices in templates/cgi. 2011-09-27 22:46:25 +02:00
Daniel Baumann 4b990a72eb Correcting typo in config/includes.chroot creating in lb_config, thanks to Stanislav Bogatyrev <realloc@realloc.spb.ru> for reporting it. 2011-09-27 22:41:56 +02:00
Yaroslav Halchenko 365a0c2062 Enclosing shell variables for iso-* defaults in escaped double-quotes while evaluating for the length to allow using parentheses (Closes: #642463). 2011-09-22 21:11:31 +02:00
Daniel Baumann 3eeac2e0be Removing leftovers from usb-hdd to hdd removal in lb_binary_hdd and lb_source_hdd. 2011-09-20 12:27:33 +02:00
Daniel Baumann dcfbfc8f8b Correcting incomplete checks for local packages in lb_binary_debian-installer. 2011-09-14 21:44:04 +02:00
Daniel Baumann 358b865e48 Renaming forgotten lb_binary_usb and lb_source_usb to lb_binary_hdd resp. lb_source_hdd. 2011-09-14 21:30:34 +02:00
Daniel Baumann 7b9ecc7976 Switching away from cdn.debian.net as default mirrors for progress, too unreliable outside of Europe. 2011-09-14 21:18:15 +02:00
Daniel Baumann b1cfba42e7 Making sure that volatile for the parent distribution is still included in derivatives mode. 2011-09-14 21:02:17 +02:00
Daniel Baumann 893e1ac5c4 Temporarily removing live-tools from standard package list, doesn't work for derivatives yet. 2011-09-14 21:00:53 +02:00
Daniel Baumann ad269a6b71 Updating volatile handling in chroot_archives for derivatives when using foo-backports distribution scheme. 2011-09-14 20:43:20 +02:00
Daniel Baumann f38ef7f469 Renaming usb-hdd binary image type to simply hdd.
This is the first step in conglomerating code for all hdd-ish
image types, independent of the partitioning scheme being used,
and adding future hdd-ish image types for virtualiziation software.
2011-09-13 09:10:30 +02:00
Daniel Baumann 6f55ec4fb1 Correcting syntax error in tr command used in default for hdd-label in progress mode. 2011-09-13 08:58:30 +02:00
Daniel Baumann bb718340e2 Adding option for setting filesystem label on usb-hdd images. 2011-09-12 09:19:30 +02:00
Daniel Baumann 80fa0406d9 Correcting wrong spelling of cache in exit function, thanks to David Endler for spotting it. 2011-09-07 20:00:40 +02:00
Daniel Baumann 468a41fdec Releasing debian version 3.0~a31-1. 2011-09-07 17:41:42 +02:00
Daniel Baumann c2633d2405 Correcting syntax error in local package handling. 2011-09-07 17:37:37 +02:00
Daniel Baumann 9119f24831 Also respect config/packages for packages to be installed in both chroot and binary. 2011-09-07 17:33:53 +02:00
Daniel Baumann f8a313ac93 Updating lb_config for config/packages.binary. 2011-09-07 16:41:40 +02:00
Daniel Baumann 04f93bf254 Using config/packages.binary instead of config/binary_local-udebs. 2011-09-07 16:39:37 +02:00
Daniel Baumann d218383d83 Using config/packages.binary instead of config/binary_local-debs. 2011-09-07 16:37:58 +02:00
Daniel Baumann 039df15831 Using config/includes.binary rather than config/binary_local-includes. 2011-09-07 16:33:53 +02:00
Daniel Baumann 7a1350fcc0 Adding link to live-build homepage and version information in cgi footer template. 2011-09-07 16:22:31 +02:00
Daniel Baumann 11ba7716f3 Removing spurious version information in cgi form template. 2011-09-07 16:22:29 +02:00
Daniel Baumann c1169e2491 Setting origin in apt release files for local packages to config/packages.chroot. 2011-09-07 16:02:03 +02:00
Daniel Baumann 0a32c8b6c0 Renaming lb_chroot_packagelists to lb_chroot_package-lists so that helper matches directory. 2011-09-07 16:00:52 +02:00
Daniel Baumann e82aa25134 Renaming config/chroot_packages to config/packages.chroot. 2011-09-07 15:59:48 +02:00
Daniel Baumann 65f626fe9c Improve message when skipping a helper because it is already run. 2011-09-07 15:53:50 +02:00
Daniel Baumann 805fc35877 Improving messages when saving and restoring stage caches (Closes: #589728). 2011-09-07 15:52:23 +02:00
Daniel Baumann fae160f87a Copying chroot.packages.live to binary.packages. 2011-09-07 15:35:37 +02:00
Daniel Baumann 046095cffa Renaming lb_chroot_local-includes into lb_chroot_includes and check for includes in config/includes.chroot. 2011-09-07 15:16:23 +02:00
Daniel Baumann dd853aa5d9 Renaming forgotten lb_binary_local-packagelists to lb_binary_packagelists. 2011-09-07 15:10:09 +02:00
Daniel Baumann fa0ba13de6 Renaming binary.packages list files (that contain what package is installed in the chroot) to chroot as they are build during chroot stage, this fixes some rebuild issues. 2011-09-07 15:08:14 +02:00
Daniel Baumann ed5212022c Completing the restoring of the outer chroot when building in chrooted to not taint subsequent rebuilds of the binary stage with leftovers from the initial lb_binary_rootfs (Closes: #620953). 2011-09-07 14:48:25 +02:00
Daniel Baumann dfaa4a67b5 Doing uuid.conf extraction from initrd with the correct decompression utility (Closes: #637979). 2011-09-07 14:16:05 +02:00
Daniel Baumann ef53525970 Automatically using an embedded live-build copy from within the config tree at local/live-build, if existing.
This allows to ship (an almost) self contained config tree.
2011-09-01 09:27:29 +02:00
Daniel Baumann 3cf8c4bb22 Silencing rmdir calls in makefile. 2011-08-31 11:17:13 +02:00
Daniel Baumann dfde086f35 Only calling udevadm in losetup function when udev is installed on the host system. 2011-08-27 20:50:19 +02:00
intrigeri 76a6831e0f Fixing typos brought in by ext4 support patch. 2011-08-26 00:23:09 +02:00
Daniel Baumann 5d2fbf5d5a Adding support for ext4 for binary and chroot filesystem, including partial patch from Ben Howard <ben.howard@canonical.com> (Closes: #639298). 2011-08-25 23:47:30 +02:00
Daniel Baumann 40a843bddd Including live-tools in standard package list. 2011-08-25 07:13:38 +02:00
Daniel Baumann 7dd4473d5a Renaming --apt-source to --apt-source-archives. 2011-08-24 23:30:22 +02:00
Daniel Baumann 72ec4c30be Avoiding magic defaults for --apt-indices option when using minimal or stripped packagelist. 2011-08-24 23:16:13 +02:00
Daniel Baumann ad518cce94 Setting apt-source to false in progress mode. 2011-08-24 22:59:46 +02:00
Daniel Baumann 3ceb68b7d4 Introducing --apt-sources option to control if the live system should have deb-src entries in sources.list. 2011-08-24 22:46:32 +02:00
Daniel Baumann 9d73420afc Renumbering hooks. 2011-08-24 20:27:40 +02:00
Daniel Baumann bd9d0f185f Releasing debian version 3.0~a30-1. 2011-08-24 19:37:36 +02:00
Daniel Baumann 88befb1766 Moving removal of udev persistent rules from chroot_hacks to a hook, that way it can be easily skipped if desired. 2011-08-23 17:13:45 +02:00
Daniel Baumann 9a59c0a2d6 Moving removal of openssh-server host keys from chroot_hacks to a hook, that way it can be easily skipped if desired. 2011-08-23 17:10:38 +02:00
Daniel Baumann 535e9a5d94 Using lightdm instead of gdm3 in xfce package for wheezy and newer. 2011-08-22 15:22:49 +02:00
Daniel Baumann 78b10b2bd2 Merging in last bit of lb_chroot_local-packages into lb_chroot_archives (Closes: #635046). 2011-08-16 20:55:47 +02:00
Daniel Baumann 2af22aa1c4 Unifying lb_chroot_packagelists and lb_chroot_local-packagelists. 2011-08-16 20:49:36 +02:00
Ben Armstrong cecbaf84b7 Removing old syslinux switches from lb_config manpage (Closes: #637939). 2011-08-16 12:35:33 +02:00
Daniel Baumann fd344cdbed Correcting wrong variables in volatile handling for derivatives. 2011-08-16 08:40:27 +02:00
Daniel Baumann febcb6bbf4 Enabling volatile suite for progress itself in progress mode. 2011-08-13 09:08:04 +02:00
Daniel Baumann 89a66b4ce0 Releasing debian version 3.0~a29-1. 2011-08-13 08:07:24 +02:00
Daniel Baumann 557e4c365b Also guarding key additions for local configured archives to not fail if no key is supplied. 2011-08-09 13:05:29 +02:00
Richard Nelson 73d237a9bc Rename references of live-build.cgi to live-build-cgi 2011-08-08 23:39:06 -05:00
Richard Nelson ee09790f6d Correcting path to VERSION file. 2011-08-08 22:53:49 -05:00
Daniel Baumann 9a94a6d6d9 Using global version file rather than using copied information in functions/common.sh. 2011-08-08 21:19:44 +02:00
Daniel Baumann be6a22556b Releasing debian version 3.0~a28-1. 2011-08-08 21:13:15 +02:00
Daniel Baumann d0663f3cbd Since all (false positives for) bashisms are gone, making the test target fail on bashisms. 2011-08-08 21:04:20 +02:00
Daniel Baumann 1566a511b0 Limiting test target to actual scripts in cron subdirectory. 2011-08-08 20:59:02 +02:00
Daniel Baumann 9e1f55bc82 Removing some false-positive bashisms from live-build-cgi. 2011-08-08 20:44:18 +02:00
Daniel Baumann ca8baa892f Renaming cgi files within the sources to consistently use the name live-build-cgi. 2011-08-08 20:32:14 +02:00
Daniel Baumann 5b9c2c23df Adding share/hooks to toplevel makefile so that it's included in the test suite. 2011-08-08 20:27:39 +02:00
Daniel Baumann eedfa8e5ce Guarding archives handling with an additional check to prevent ugly message about files not existing. 2011-08-08 12:39:43 +02:00
Daniel Baumann 636155709a Releasing debian version 3.0~a27-1. 2011-08-08 08:10:11 +02:00
Daniel Baumann fabdcdcd13 Removing left-over mentioning of lb_binary_local-hooks instead of lb_binary_hooks in lb_binary. 2011-08-08 08:10:10 +02:00
Daniel Baumann 724f5b4dc8 Also using definition files without suffix (so that e.g. foo.list is used for both chroot and binary stage). 2011-08-08 08:10:07 +02:00
Daniel Baumann 8a0da57266 Reverse keywords in suffix of the package list files for consistency.
Previously, config/package-lists/foo.{binary,chroot}.list was used,
now we use config/package-lists/foo.list.{binary,chroot}.

That way, we're using the same single suffix for all files to make
them specific for either binary and chroot, rather than having
an exception to the rule for package list files.
2011-08-05 08:40:03 +02:00
Daniel Baumann a51393f49b Reverse keywords in suffix of the archive definition files for consistency.
Previously, config/archives/foo.{binary,chroot}.{key,list} was used,
now we use config/archives/foo.{key,list}.{binary,chroot}.

That way, we're using the same single suffix for all files to make
them specific for either binary and chroot, rather than having
an exception to the rule for archive definitions.
2011-08-05 08:28:45 +02:00
Daniel Baumann 6167d107f6 Releasing debian version 3.0~a26-1. 2011-08-04 21:53:37 +02:00
Daniel Baumann b6825361ef Correcting indentiation in hook defaults assignment. 2011-08-04 21:49:46 +02:00
Daniel Baumann 18e092e835 Adding missing 'set -e' in remove-python-py.chroot hook. 2011-08-04 21:49:00 +02:00
Daniel Baumann b79dce2155 Renumbering hook files. 2011-08-04 21:48:32 +02:00
Daniel Baumann f3fd3dc2a9 Adding hook to update apt-file cache (Closes: #636440). 2011-08-04 21:47:46 +02:00
Daniel Baumann a56cc98f12 Removing -r from short options in lb_config (Closes: #636208). 2011-08-04 21:32:02 +02:00
intrigeri d8ac62a9ec Cleaning up temporary directories at the same time as other cruft. 2011-08-04 19:46:35 +02:00
Daniel Baumann 1deaeb04e5 Adjusting check for target directory in live-build-cron scripts to fail if non-directories are used, thanks to Ben Armstrong <synrg@debian.org>. 2011-08-04 13:19:37 +02:00
Daniel Baumann a7a2aa23c6 Correcting cross-references to live-boot and live-config in lb_config manpage. 2011-08-04 13:16:21 +02:00
Ben Armstrong 195156dd93 Fixing/adding cross-references for live-boot and live-config. 2011-08-03 07:30:22 -03:00
Daniel Baumann ac4b9c5296 Removing debian-instaler-distribution selection from live-build-cron-images for the time being. 2011-07-30 15:47:47 +02:00
Daniel Baumann 6a577d37f6 Setting default kernel flavours for armel to all available flavour due to the nature of armel images (single rootfs image, multiple kernel images). 2011-07-29 15:27:18 +02:00
Daniel Baumann cba1c05b33 Handle package-lists parameter for lb_config in live-build-cron-images script for both lb version 2.x and 3.x. 2011-07-29 11:30:53 +02:00
Daniel Baumann b181612222 Adding virtual-hdd in lb_config manpage as binary image type. 2011-07-28 16:23:23 +02:00
Daniel Baumann 17283e776f Correcting typo in lb_config for program variable, thanks to intrigeri <intrigeri@boum.org>. 2011-07-26 14:49:29 +02:00
Daniel Baumann a255d1bbc7 Updating TODO for live-build-cron. 2011-07-26 14:46:46 +02:00
Daniel Baumann 62aa7b970c Correcting debconf variables. 2011-07-26 14:32:24 +02:00
Daniel Baumann f062be7276 Removing unmaintained studio package lists. 2011-07-25 22:20:08 +02:00
Daniel Baumann cacf9b6e34 Simplify bind mounting of the config tree during local hooks are run by using read-only bind mounts. 2011-07-25 18:05:40 +02:00
Daniel Baumann 6b63effdff Using 'live' rather than 'incomplete' for cd_type in .disk on images that include debian-installer with live-installer udeb. 2011-07-25 17:15:17 +02:00
Daniel Baumann 2a5263cb39 Updating grub packages list in binary_debian-installer. 2011-07-25 17:13:32 +02:00
Daniel Baumann 046e32b5b0 Add forgotten handling of already set chroot_hooks in defaults. 2011-07-24 09:28:49 +02:00
Daniel Baumann cfd7f3103b Adding mdadm manually to extra packages for binary pool for being used by debian-installer (Closes: #607225). 2011-07-24 09:19:42 +02:00
Daniel Baumann 143e793eb7 Updating derivatives handling for d-i mirror defaults to better match the reality that by default, most derivatives are not going to actually rebuild d-i. 2011-07-21 18:44:22 +02:00
Cody A.W. Somerville 50816947a7 Making config tree available to chroot hooks. 2011-07-21 18:35:56 +02:00
Cody A.W. Somerville e01424a1f2 Adding paths for remote debian-installer images on armel. 2011-07-21 17:58:21 +02:00
Daniel Baumann de6a971029 Setting default compression levels to -6 for gzip, bzip, lzip and lzma tarballs. 2011-07-21 17:48:17 +02:00
Daniel Baumann 8316bd2d98 Correcting uuid extraction from initrds in ubuntu mode to work from within binary so that it is cleaned up by lb_clean on failed builds. 2011-07-21 17:24:08 +02:00
Daniel Baumann 0aab94aac9 Calling mkdir with -p to avoid build failures with multiple kernels on disk info in ubuntu mode, thanks to Cody A.W. Somerville <cody.somerville@canonical.com>. 2011-07-21 17:06:54 +02:00
Cody A.W. Somerville 0d2cc22efc Adding function for more resilient detachment of loopback devices. 2011-07-21 17:00:54 +02:00
Cody A.W. Somerville ebc7a72501 Setting partition flags in source_usb after creating the filesystem in order to avoid bug in parted that makes them forget the flags. 2011-07-20 18:39:09 +02:00
Daniel Baumann 346397d2e0 Adding a comment to the chroot calls in excludes handling of binary_chroot whey the chroot function is not used. 2011-07-20 18:24:32 +02:00
Daniel Baumann b7f70c339f Avoid to hijack root-command with linux32, rather set use it in the chroot function only. 2011-07-20 18:10:39 +02:00
Daniel Baumann 6a844f1bb2 Reworking debconf stuff of merging former live-autobuild-manual and live-autobuild-images into a single live-build-cron. 2011-07-20 11:05:27 +02:00
Daniel Baumann b3e6ff2e14 Compacting copyright file. 2011-07-20 10:33:28 +02:00
Daniel Baumann 4c08b4f17b Updating cron scripts. 2011-07-20 10:29:57 +02:00
Cody A.W. Somerville 968be1f426 Appending 'linux32' to LB_ROOT_COMMAND if 'uname -m' is x86_64 and LB_ARCHITECTURE is i386. 2011-07-20 08:54:54 +02:00
Cody A.W. Somerville 651c8aebd2 Updating lb_binary_linux-image to only copy over kernel and initrd if LB_LINUX_PACKAGES doesn't equal 'none'. 2011-07-20 08:48:07 +02:00
Cody A.W. Somerville 31445ed7be Fixing corruption of usb binary images caused by trying to modify flags in partition table when image is mounted with offset. 2011-07-20 08:46:11 +02:00
Daniel Baumann fb2bc99fd5 Reworking binary hooks helper. 2011-07-19 19:03:01 +02:00
Daniel Baumann b70ec215ab Correcting comments in chroot_hooks to match usage. 2011-07-19 16:45:36 +02:00
Daniel Baumann a90294ff53 Calling dpkg-divert with --quiet in chroot_dpkg. 2011-07-19 12:39:47 +02:00
Daniel Baumann e4793268a3 Enabling hooks based on the mode we're building for. 2011-07-19 11:57:21 +02:00
Daniel Baumann eb2a305a5f Saving packages in cache even when failing or interrupting a build (Closes: #586929). 2011-07-19 11:13:17 +02:00
Daniel Baumann 691b06f7a6 Numbering embedded hooks. 2011-07-19 10:59:15 +02:00
Daniel Baumann ac6147adb7 Consolidating local hooks for chroot and binary into config/hooks/*.{chroot,binary}. 2011-07-19 10:57:02 +02:00
Daniel Baumann ef2752faab Adding kubuntu mode in order to have different defadefault hooks enabled for ubuntu and kubuntu (needed for #630088). 2011-07-19 10:51:20 +02:00
Daniel Baumann b22984f698 Also unmounting /run in lb_clean eventhough it's not really needed anyway but let's be on the caucious side (Closes: #633052). 2011-07-19 10:19:18 +02:00
Daniel Baumann 57ab082265 Using --no-check-gpg option when using debootstrap >= 1.0.30 and apt secure is disabled, thanks to Eugenio Paolantonio <me@medesimo.eu> (Closes: #633356). 2011-07-19 10:13:10 +02:00
Daniel Baumann 37e1c24e22 Adding hook to remove python py files, thanks to Colin Watson <cjwatson@ubuntu.com> (Closes: #631281). 2011-07-19 10:08:24 +02:00
Daniel Baumann cff7687442 Adding hook for removing gnome icon cache, thanks to Colin Watson <cjwatson@ubuntu.com> (Closes: #630088). 2011-07-19 10:04:45 +02:00
Daniel Baumann 285f8d50fd Adding hook for calling update-apt-xapian-index, thanks to Colin Watson <cjwatson@ubuntu.com> (Closes: #627716). 2011-07-18 15:47:37 +02:00
Daniel Baumann 9a6ae81a07 Adding hook for calling update.mlocate, thanks to Colin Watson <cjwatson@ubuntu.com> (Closes: #627332). 2011-07-18 15:47:35 +02:00
Daniel Baumann 19be4e1287 Correcting filename of live.debian.net archive file. 2011-07-18 15:27:29 +02:00
Daniel Baumann a9159eb2dc Moving archives meta data arround in source tree. 2011-07-18 15:10:24 +02:00
Daniel Baumann 330d06708d Skipping binary_linux-image if no kernel was choosen to be installed deliberately, thanks to Adam Conrad <adconrad@ubuntu.com>. 2011-07-16 10:08:42 +02:00
Richard Nelson 1f431a739b Update VERSION in common.sh to match last release. 2011-07-15 15:39:20 -05:00
Daniel Baumann e0205ecb1a Releasing debian version 3.0~a25-1. 2011-07-15 20:38:42 +02:00
Daniel Baumann 7e4c34b6f2 Adding initial live-build-cron package. 2011-07-15 20:38:39 +02:00
Daniel Baumann e24497b723 Adding live-manual to recommends. 2011-07-15 08:05:25 +02:00
Daniel Baumann 10b0b77f0f Using updated kernel default flavours for sid also for wheezy. 2011-07-14 08:24:33 +02:00
Daniel Baumann 41d0208ae0 Releasing debian version 3.0~a24-1. 2011-07-13 10:42:47 +02:00
Daniel Baumann c175ad039c Adding live-config-doc to recommends. 2011-07-13 03:30:37 +02:00
Daniel Baumann 8f5ff0c34f Adding live-boot-doc to recommends. 2011-07-13 03:15:00 +02:00
Daniel Baumann 28fdbba38c Adding extlinux to rescue package list. 2011-07-11 11:08:03 +02:00
Daniel Baumann 3a44d9acbd Correct gdm/gdm3 handling, prefere gdm for squeeze as before and use gdm3 for everything else. 2011-07-08 18:41:54 +02:00
Richard Nelson ecd8dca2ba Remove lxde test on LB_TASKS for gdm so we now get gdm3. 2011-07-04 18:40:44 -05:00
Richard Nelson a750adb2c6 Move lxde package-lists to use gdm3 instead of gdm. 2011-07-04 10:21:40 -05:00
Daniel Baumann 3bf765da2b Releasing debian version 3.0~a23-1. 2011-06-29 07:58:23 +02:00
Daniel Baumann 42cfa2bf03 Correcting wrong chroot call in chroot_archives, only affecting derivatives. 2011-06-29 07:51:41 +02:00
Daniel Baumann d7b042aa03 Releasing debian version 3.0~a22-1. 2011-06-29 06:20:23 +02:00
Daniel Baumann 869914c578 Making help message about missing po4a in manpages makefile distribution neutral. 2011-06-21 09:12:38 +02:00
Daniel Baumann f68ecad438 Making copyright headers distribution neutral. 2011-06-21 09:11:49 +02:00
Daniel Baumann 38c3390ca8 Making copyright file distribution neutral. 2011-06-21 09:10:44 +02:00
Daniel Baumann bfadca3225 Correct keyring packages temporary workaround to not fail when aptitude is selected (Closes: #630919). 2011-06-18 23:10:39 +02:00
Daniel Baumann 75f87204da Removing forgotten reference to chroot_packages in lb_chroot. 2011-06-17 12:03:33 +02:00
Daniel Baumann 63560ff0b0 Adjust name of archives directory in config tree. 2011-06-17 11:25:52 +02:00
Daniel Baumann ff528d09db Correct rmdir call in top-level Makefiles uninstall target to not fail if there was no prior live-build installation. 2011-06-16 22:24:12 +02:00
Colin Watson e0a1da6aba Fix default for LB_PARENT_ARCHIVE_AREAS (Closes: #630604). 2011-06-15 22:30:36 +02:00
Daniel Baumann b86f9c6380 Since we don't have global packages anymore, renaming lb_chroot_local-packages to lb_chroot_packages and config/chroot_local-packages to config/chroot_packages. 2011-06-15 22:08:44 +02:00
Daniel Baumann cfb6ecedfa Since we don't have global tasks anymore, renaming lb_chroot_local-tasklists to lb_chroot_task-lists. 2011-06-15 22:01:51 +02:00
Daniel Baumann e26d3be01a Moving config/chroot_local-tasklists/*.list to config/task-lists/*.chroot.list, analogue to config/package-lists. 2011-06-15 21:52:45 +02:00
Daniel Baumann db4943c415 Moving internal global package lists from 'lists' to 'package-lists'. This is not a user visible change. 2011-06-15 21:47:45 +02:00
Daniel Baumann 9d905734e5 Unifying config/chroot_local-packagelists and config/binary_local-packagelists.
Rather than using config/chroot_local-packagelists/*.list and
config/binary_local-packagelists/*.list, we're simply using
config/package-lists/*.chroot.list and
config/package-lists/*.binary.list.
2011-06-15 21:37:10 +02:00
Daniel Baumann 36ecab10d3 Using .list suffix in config/archives. 2011-06-15 21:27:29 +02:00
Daniel Baumann 2312f18ef1 Changing archives key suffix from .gpg to .key. 2011-06-15 21:25:14 +02:00
Daniel Baumann 535051e43d Setting default distribution to wheezy (at least until #622838 is handled). 2011-06-15 21:14:23 +02:00
Daniel Baumann a2551605c0 Unifying config/chroot_archives and config/archives, now only using config/archives.
Previously, we had config/chroot_sources (or config/chroot_archives)
that allowed local configuration for third-party repositories but we
also had config/archives (or config/repositories) that did the very
same, but also alled to use 'variables' (e.g. @DISTRIBUTION@ or
@ARCHIVE_AREAS@ to be used) that got replaces automatically.

Now, we have only config/archives that can do both. This gets rid
of the unecessary double handling of the same thing in two places.
2011-06-15 21:05:09 +02:00
Daniel Baumann 2cf5daeaef Renaming chroot_sources script to chroot_archives for consistency with debian-policy terminology. 2011-06-15 20:48:56 +02:00
Daniel Baumann a6988b188f Renaming repositories option to archives for consistency with debian-policy terminology.
In order to be consistent with terminology used in debian-policy,
we've always tried to use the same names for the same things.

The repository option is one of the last things that were too
late in squeeze release cycle to be renamed in time.
2011-06-15 20:40:18 +02:00
Colin Watson 65ac1c651c Make --architectures armel only fail if --linux-flavours was not passed (Closes: #630464). 2011-06-14 12:14:22 +02:00
Daniel Baumann 21dfadb622 Using -wildcards option when calling mksquashfs with an excludes file. 2011-06-13 21:05:05 +02:00
Daniel Baumann f42443464a Releasing debian version 3.0~a21-1. 2011-06-13 20:43:25 +02:00
Colin Watson 5d228a8e3e Add --initramfs-compression option (Closes: #627677). 2011-06-13 20:38:44 +02:00
Colin Watson d5510c9910 Divert flash-kernel aside while building the chroot (Closes: #630350). 2011-06-13 20:33:28 +02:00
Colin Watson abcc4ca9bf Add --swap-file-path and --swap-file-size options (Closes: #629637). 2011-06-13 20:08:34 +02:00
Daniel Baumann f342cd85b8 Correct lb cleans source removals. 2011-06-12 09:21:28 +02:00
Daniel Baumann 5b4e20599d Removing now unecessary stagefile check in lb_source. 2011-06-11 20:19:57 +02:00
Daniel Baumann df7b3d934f Moving installation of live packages to second pass. 2011-06-11 19:36:46 +02:00
Daniel Baumann 48e2af1ab9 Obtaining the live passes package selection information at the latest point to catch all other modifications in the package selection. 2011-06-11 19:18:15 +02:00
Daniel Baumann 5fa597a92d Releasing debian version 3.0~a20-1. 2011-06-11 17:50:15 +02:00
Daniel Baumann 238ae93f41 Allow to optionally run package installation in two passes. Eventually, this allows to have media containing a 'bigger' live system that what they end up installing (Closes: #627439). 2011-06-11 17:26:47 +02:00
Daniel Baumann 65b7eb99f8 Updating and simplyfing conditionals in package lists. 2011-06-11 16:14:35 +02:00
Daniel Baumann 14a3d468dc Adding support for 'nif' in package lists. 2011-06-11 16:03:16 +02:00
Daniel Baumann 9f4b5f3dd0 Using locales-all instead of locales in standard list for progress. 2011-06-11 16:01:07 +02:00
Daniel Baumann 1fc15b55ee Creating chroot_local-tasklists directory in config. 2011-06-11 15:54:43 +02:00
Daniel Baumann f06a2e3d37 Reworking chroot_tasks into chroot_local-tasklists, now packages and tasks are (almost) handled identical and through local lists only. 2011-06-11 15:54:40 +02:00
Colin Watson 0633d3bc96 Fix incorrect Ubuntu defaults for security and volatile mirrors (Closes: #630080). 2011-06-11 13:37:15 +02:00
Daniel Baumann 01a5160847 Always disable dpkg sync, we only support squeeze and newer anyway. 2011-06-11 13:35:05 +02:00
Daniel Baumann 521bd38d69 Correcting indenting for dpkg sync configuration file. 2011-06-11 13:32:51 +02:00
Colin Watson 7b84bf9498 Use dpkg --force-unsafe-io if available (Closes: #630043). 2011-06-11 13:31:18 +02:00
Daniel Baumann dc0775d7ae Correct indenting in powerpc kernel defaults. 2011-06-11 13:27:35 +02:00
Colin Watson eb6242e98e Use powerpc and powerpc64-smp kernel flavours by default for Ubuntu, as there is no powerpc64 flavour (Closes: #630032). 2011-06-11 13:26:31 +02:00
Daniel Baumann ae6ed7d84a Removing unmaintained chroot_localization script.
The chroot_localization script did two things:

  * contain a hardcoded list for a couple of packages->l10n-packages
  * (supposed) to set the locales boot parameter correct.

While the first was totally outdated and is a thing that needs to be
constantly updated for changes in debian (and nobody wants to do that)
and it's a broken approach anyway, the second is useless since we're
using syslinux-themes packages anyway.
2011-06-11 13:15:06 +02:00
Daniel Baumann b3ad2f412a Dropping handling of --packages in order to simply things handle packages scheduled for installation through package lists only. 2011-06-11 11:37:37 +02:00
Daniel Baumann cf8f6cee93 Releasing debian version 3.0~a19-1. 2011-06-11 11:04:36 +02:00
Daniel Baumann 25f7152e5e Don't try to install standard task on anything but ubuntu. 2011-06-11 11:00:42 +02:00
Richard Nelson 2b2e0fb1bf Add progress as an option for --mode in lb_config manpage. 2011-06-08 18:44:54 -05:00
Colin Watson 6bcb29a25c Make --initramfs none work more consistently (Closes: #627887). 2011-06-08 10:07:26 +02:00
Colin Watson 8b05781dbc Use mkfs.ext2/mkfs.ext2 instead of genext2fs (Closes: #629533). 2011-06-08 10:02:10 +02:00
Daniel Baumann a951e84c4f Updating default kernel flavour for debian on i386. 2011-06-05 11:15:17 +02:00
Daniel Baumann 91ae1c5366 Updating default kernel flavour for progress on i386. 2011-06-05 11:14:21 +02:00
Daniel Baumann 3895e41600 Updating packages in sun-java6 example hook. 2011-06-05 10:47:40 +02:00
Richard Nelson 3fb41b9663 Update VERSION in common.sh to match last release. 2011-06-03 21:02:48 -05:00
Daniel Baumann b9ddc38afb Releasing debian version 3.0~a18-1. 2011-06-03 12:00:09 +02:00
Daniel Baumann 69f2cc5ee5 Updating grub paths for d-i files (Closes: #627695). 2011-06-03 11:56:42 +02:00
Daniel Baumann 338ebe5e6b Correcting wrong task defaults. 2011-06-03 11:47:08 +02:00
Daniel Baumann e4928dc223 Removing unused and not really usefull bootstrap-script option (Closes: #603114).
This option was not used anyway, and, it's actually not much of the
business of live-build anyway. People for custom distributions that
can not use the debian default scripts ship their own patched
debootstrap, and then you don't need the option anymore.
2011-06-03 11:10:38 +02:00
Daniel Baumann daa0dbb9de Removing accidentally twice included English files when installing manpages (Closes: #628897). 2011-06-03 10:55:03 +02:00
Colin Watson 7b92318f64 Fixing ext2/ext3 case in lb_binary_rootfs to work with --build-with-chroot false (Closes: #627902). 2011-06-03 10:44:25 +02:00
Daniel Baumann 348cb4b391 Moving 'default' hooks for minimal and stripped to example hooks, they will have to be enabled manually now (Closes: #627183).
Previously, there were a couple of hooks that were automatically run
for some image flavours. This came back from the old days when we
had to deconfigure gdm and enable kdm explicitly for kde images.

After lenny, this hack was not needed anymore, and there's not much
sense to keep the mechanism in place at all. Better, let's treat all
images the same way wrt/ hooks and don't do special automagics.

The only images that is of concern of are minimal and stripped
which we don't build by default anyway. This also stopps confusing
others.
2011-06-03 10:39:45 +02:00
Daniel Baumann b8eff5a2f2 Restoring excludes functionality for mksquashfs. This was present some time ago but then got removed. 2011-06-03 00:38:09 +02:00
Daniel Baumann 3cd5375fbd Correcting accidentally unconditional default for linux-flavours in progress mode. 2011-06-02 22:55:18 +02:00
Colin Watson 3f36f6ba4b Fix duplicate deconfiguration of apt, upstart, and sysv-rc if build-with-chroot is false (Closes: #627406). 2011-05-21 10:50:31 +02:00
Daniel Baumann 26ad091b3e Releasing debian version 3.0~a17-1. 2011-05-18 19:52:17 +02:00
liandro sg 11eeea6f6c Be more careful with subshells (Closes: #623356). 2011-05-18 19:42:51 +02:00
Daniel Baumann ceefa557a9 Correcting top-level makefile to automatically get all the supported languages, rather than defining a static list. 2011-05-18 19:38:12 +02:00
Daniel Baumann fa0f468408 Completing files section in live-build manpage (Closes: #626367). 2011-05-18 19:37:51 +02:00
Daniel Baumann c492cd4928 Updating to standards version 3.9.2. 2011-05-18 19:35:42 +02:00
Daniel Baumann 57e2fac99b Switching to apt as tasksel for all distributions, except Debian squeeze. 2011-05-16 22:11:26 +02:00
Colin Watson 454043122d Allow installing tasks using apt-get, and do so by default for Ubuntu (Closes: #626940). 2011-05-16 22:11:15 +02:00
Daniel Baumann c5df1371f8 Removing defaults for the alpha architecture, not supported by debian anymore. 2011-05-16 14:59:38 +02:00
Daniel Baumann 85ef0adafb Correcting comments about which ubuntu release is LTS and which not in releases list. 2011-05-16 13:40:47 +02:00
Daniel Baumann cd6820dd7a Correcting wrongly attributed -m switch to --mirror-bootstrap, thanks to Colin Watson <cjwatson@ubuntu.com> (Closes: #626905). 2011-05-16 12:13:47 +02:00
Daniel Baumann 6d04c078db Correct derivative main sources.list entries. 2011-05-15 21:52:57 +02:00
Daniel Baumann ebc3788bf2 Avoid wrong security mirrors when building for artax-backports. 2011-05-15 20:56:26 +02:00
Daniel Baumann a657b49ea2 Don't add security repository for wheezy. 2011-05-15 20:53:24 +02:00
Ben Armstrong 4d8ae158c2 Using gdm3 for wheezy instead of gdm. 2011-05-15 08:43:29 +02:00
Daniel Baumann 860310465d Updating url for debian-installer daily-images. 2011-05-12 12:19:12 +02:00
Daniel Baumann 65fef6b528 Enabling xz compression by default for artax-backports. 2011-04-29 00:01:45 +02:00
Daniel Baumann efc4903772 Updating ubuntu releases. 2011-04-28 15:08:47 +02:00
Daniel Baumann 7cdb76932e Updating squeeze point release number. 2011-04-28 15:06:01 +02:00
Daniel Baumann 201989e6dd Releasing debian version 3.0~a16-1. 2011-04-23 19:27:51 +02:00
Daniel Baumann 23d03462e7 Moving installation of tasks behind package and package lists installation; the tasks should only 'fill-up' with what has not already been provided by packages or package lists. 2011-04-23 18:58:36 +02:00
Daniel Baumann b494afa384 Moving apt pinning workaround to the correct place. 2011-04-23 18:58:34 +02:00
Daniel Baumann f4370639f9 Making apt calls a bit more consistent over the different scripts. 2011-04-23 17:44:01 +02:00
Daniel Baumann 890a6e5fb3 Removing kernel-img.conf handling for lenny and older. 2011-04-23 17:37:36 +02:00
Daniel Baumann fb1e45aaeb Adding workaround for apt not respecting pinning on the fly. 2011-04-23 17:27:05 +02:00
Daniel Baumann 745ffde6ff Releasing debian version 3.0~a15-1. 2011-04-22 23:12:06 +02:00
Daniel Baumann 873d77490b Adding temporary hack for progress until multistrap can be used for bootstrapping. 2011-04-22 21:55:52 +02:00
824 changed files with 35817 additions and 165479 deletions

View File

@ -2,9 +2,9 @@
SHELL := sh -e
LANGUAGES = de
LANGUAGES = $(shell cd manpages/po && ls)
SCRIPTS = cgi/* functions/* examples/*/*.sh examples/auto/* scripts/*.sh scripts/*/*
SCRIPTS = frontend/* functions/* examples/auto/* examples/hooks/*.chroot examples/hooks/reproducible/*.chroot scripts/*.sh scripts/*/* share/bin/* share/hooks/*/*
all: build
@ -19,18 +19,17 @@ test:
@echo " done."
@# We can't just fail yet on bashisms (FIXME)
@echo -n "Checking for bashisms"
@if [ -x /usr/bin/checkbashisms ]; \
then \
for SCRIPT in $(SCRIPTS); \
do \
checkbashisms -f -x $${SCRIPT} || true; \
checkbashisms -f -x $${SCRIPT}; \
echo -n "."; \
done; \
else \
echo "WARNING: skipping bashism test - you need to install devscripts."; \
echo "WARNING: Skipping bashism test - you need to install devscripts."; \
fi
@echo " done."
@ -41,15 +40,20 @@ build:
install:
# Installing shared data
mkdir -p $(DESTDIR)/usr/share/live/build
cp -r cgi data examples functions scripts hooks includes lists repositories templates $(DESTDIR)/usr/share/live/build
cp -r data functions $(DESTDIR)/usr/share/live/build
sed -e 's/.*(\(.*\)).*/\1/; s/^[0-9]://; q' debian/changelog >$(DESTDIR)/usr/share/live/build/VERSION
cp -r share/* $(DESTDIR)/usr/share/live/build
# Installing executables
mkdir -p $(DESTDIR)/usr/bin
mv $(DESTDIR)/usr/share/live/build/scripts/build/lb $(DESTDIR)/usr/share/live/build/scripts/build/live-build $(DESTDIR)/usr/bin
cp -a frontend/* $(DESTDIR)/usr/bin
mkdir -p $(DESTDIR)/usr/lib/live
cp -a scripts/* $(DESTDIR)/usr/lib/live
# Installing documentation
mkdir -p $(DESTDIR)/usr/share/doc/live-build
cp -r COPYING docs/* $(DESTDIR)/usr/share/doc/live-build
cp -r COPYING examples $(DESTDIR)/usr/share/doc/live-build
# Installing manpages
for MANPAGE in manpages/en/*; \
@ -67,13 +71,10 @@ install:
done; \
done
# Installing logfile
mkdir -p $(DESTDIR)/var/log
uninstall:
# Uninstalling shared data
rm -rf $(DESTDIR)/usr/share/live/build
rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/live
rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/live > /dev/null 2>&1 || true
# Uninstalling executables
rm -f $(DESTDIR)/usr/bin/lb $(DESTDIR)/usr/bin/live-build
@ -102,3 +103,5 @@ clean:
distclean:
reinstall: uninstall install
.PHONY: all test build install uninstall clean distclean reinstall

View File

@ -1 +0,0 @@
3.0~a14

View File

@ -1,19 +0,0 @@
# Makefile
install:
install -D -m 0755 cgi $(DESTDIR)/usr/lib/cgi-bin/live-build
install -D -m 0755 cron $(DESTDIR)/etc/cron.d/live-build.cgi
install -D -m 0644 default $(DESTDIR)/etc/default/live-build.cgi
install -D -m 0644 logrotate $(DESTDIR)/etc/logrotate.d/live-build.cgi
install -d -m 0755 $(DESTDIR)/var/log
touch $(DESTDIR)/var/log/live
chown www-data:www-data $(DESTDIR)/var/log/live
uninstall:
rm -f $(DESTDIR)/usr/lib/cgi-bin/live-build
rm -f $(DESTDIR)/etc/cron.d/live-build.cgi
rm -f $(DESTDIR)/etc/default/live-build.cgi
rm -f $(DESTDIR)/etc/logrotate.d/live-build.cgi
reinstall: uninstall install

226
cgi/cgi
View File

@ -1,226 +0,0 @@
#!/bin/sh
## live-build(7) - System Build Scripts
## Copyright (C) 2006-2011 Daniel Baumann <daniel@debian.org>
##
## live-build comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
# Including common functions
. "${LB_BASE:-/usr/share/live/build}"/scripts/build.sh
# Reading defaults
if [ -r /etc/default/live-build.cgi ]
then
. /etc/default/live-build.cgi
else
echo "E: /etc/default/live-build.cgi missing"
exit 1
fi
# Turn on debug if enabled
if [ "${_DEBUG}" = "enabled" ]
then
set -x
fi
# Sending http header
echo "Content-type: text/html"
echo
# Sending html header
cat "${_TEMPLATES}"/header.html
# CGI
if [ -z "${QUERY_STRING}" ]
then
# Sending html form
sed -e "s#LB_MIRROR_BOOTSTRAP#${LB_MIRROR_BOOTSTRAP}#" \
-e "s#LB_MIRROR_BINARY_SECURITY#${LB_MIRROR_BINARY_SECURITY}#" \
-e "s#LB_MIRROR_BINARY#${LB_MIRROR_BINARY}#" \
-e "s/VERSION/${VERSION}/" \
-e "s/DATE/`date +%Y%m%d-%H:%M`/" \
"${_TEMPLATES}"/form.html
else
# Converting spaces: sed 's/+/ /g'
# Converting '@': sed 's/%40/@/g'
# Converting ':': sed 's/%3A/:/g'
# Converting ';': sed 's/%3B/\;/g'
# Converting '/': sed 's/%2F/\//g'
# Converting '~': sed 's/%7E/\~/g'
# Converting '=': sed 's/%3D/=/g'
# Converting '+': sed 's/%2B/+/g'
# Translate parameters
QUERY_STRING=$(echo "${QUERY_STRING}" | sed -e 's/%2F/\//g' -e 's/+/ /g' -e 's/%3B/;/g' -e 's/%7E/~/g' -e 's/%3A/:/g' -e 's/%40/@/g' -e 's/%3D/=/g' -e 's/%2B/+/g')
# Debug the filtering string
# echo ${QUERY_STRING}
# Email
_EMAIL=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])email=[-0-9a-zA-Z._@]+' | cut -f 2 -d '=' | head -n1)
# Standard options
LB_BINARY_IMAGES=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])binary_images=[-a-z]+' | cut -f 2 -d '=' | head -n1)
LB_DISTRIBUTION=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])distribution=[a-z]+' | cut -f 2 -d '=' | head -n1)
LB_PACKAGE_LISTS=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])package_lists=[-0-9a-z]+' | cut -f 2 -d '=' | head -n1)
LB_TASKS=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])tasks=[-0-9a-zA-Z. _]+' | cut -f 2 -d '=' | head -n1)
LB_PACKAGES=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])packages=[-0-9a-zA-Z. _+]+' | cut -f 2 -d '=' | head -n1)
# Advanced bootstrap options
LB_ARCHITECTURES=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])architectures=[0-9a-z]+' | cut -f 2 -d '=' | head -n1)
LB_BOOTSTRAP_FLAVOUR=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])bootstrap_flavour=[a-z]+' | cut -f 2 -d '=' | head -n1)
LB_MIRROR_BOOTSTRAP=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])mirror_bootstrap=[-0-9a-zA-Z.~:/_]+' | cut -f 2 -d '=' | head -n1)
LB_MIRROR_BINARY=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])mirror_binary=[-0-9a-zA-Z.~:/_]+' | cut -f 2 -d '=' | head -n1)
LB_MIRROR_BINARY_SECURITY=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])mirror_binary_security=[-0-9a-zA-Z.~:/_]+' | cut -f 2 -d '=' | head -n1)
LB_ARCHIVE_AREAS=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])archive_areas=[a-z]+' | cut -f 2 -d '=' | head -n1)
# Advanced chroot options
LB_CHROOT_FILESYSTEM=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])chroot_filesystem=[0-9a-z]+' | cut -f 2 -d '=' | head -n1)
LB_LINUX_FLAVOURS=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])linux_flavours=[-0-9a-z]+' | cut -f 2 -d '=' | head -n1)
LB_SECURITY=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])security=[a-z]+' | cut -f 2 -d '=' | head -n1)
# Advanced binary options
LB_BINARY_INDICES=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])binary_indices=[a-z]+' | cut -f 2 -d '=' | head -n1)
LB_BOOTAPPEND_INSTALL=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])bootappend_install=[-0-9a-zA-Z. _+=:/]+' | cut -f2- -d '=' | head -n1)
LB_BOOTAPPEND_LIVE=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])bootappend_live=[-0-9a-zA-Z. _+=:/]+' | cut -f2- -d '=' | head -n1)
LB_BOOTLOADER=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])bootloader=[a-z]+' | cut -f 2 -d '=' | head -n1)
LB_DEBIAN_INSTALLER=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])debian_installer=[a-z]+' | cut -f 2 -d '=' | head -n1)
LB_ISO_APPLICATION=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])iso_application=[-0-9a-zA-Z. ~;:/_]+' | cut -f 2 -d '=' | head -n1)
LB_ISO_PREPARER=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])iso_preparer=[-0-9a-zA-Z. ~;:/_]+' | cut -f 2 -d '=' | head -n1)
LB_ISO_PUBLISHER=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])iso_publisher=[-0-9a-zA-Z. ~;:/_@]+' | cut -f 2 -d '=' | head -n1)
LB_ISO_VOLUME=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])iso_volume=[-0-9a-zA-Z. ~;:/_]+' | cut -f 2 -d '=' | head -n1)
LB_MEMTEST=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])memtest=[0-9a-z+]+' | cut -f 2 -d '=' | head -n1)
LB_NET_ROOT_PATH=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])net_path=[-0-9a-zA-Z._/]+' | cut -f 2 -d '=' | head -n1)
LB_NET_ROOT_SERVER=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])net_server=[0-9.]+' | cut -f 2 -d '=' | head -n1)
# Advanced source options
LB_SOURCE=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])source=[a-z]+' | cut -f 2 -d '=' | head -n1)
LB_SOURCE_IMAGES=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])source_images=[a-z]+' | cut -f 2 -d '=' | head -n1)
# Unofficial options
_CUSTOM_BOOTSTRAP=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])custom_bootstrap=[-0-9a-zA-Z.~:/_]+' | cut -f 2 -d '=' | head -n1)
_CUSTOM_BINARY=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])custom_binary=[-0-9a-zA-Z.~:/_]+' | cut -f 2 -d '=' | head -n1)
# FIXME: filter invalid options
unset QUERY_STRING
if [ -z "${_EMAIL}" ]
then
echo "<h2><div style='color: red;'>Error: No email address specified.</div></h2>"
sed -e "s#LB_MIRROR_BOOTSTRAP#${LB_MIRROR_BOOTSTRAP}#" \
-e "s#LB_MIRROR_BINARY_SECURITY#${LB_MIRROR_BINARY_SECURITY}#" \
-e "s#LB_MIRROR_BINARY#${LB_MIRROR_BINARY}#" \
-e "s/VERSION/${VERSION}/" \
-e "s/DATE/`date +%Y%m%d-%H:%M`/" \
"${_TEMPLATES}"/form.html
exit
fi
# Getting build identifier
_BUILD=$(date +%Y%m%d.%H%M%S.%N)
#echo "${QUERY_STRING}"
# Sending html confirmation
# Note: On each string remember to use a delimeter that is not in the string.
sed -e "s/BUILD/${_BUILD}/g" \
-e "s/EMAIL/${_EMAIL}/" \
-e "s/LB_BINARY_IMAGES/${LB_BINARY_IMAGES}/" \
-e "s/LB_DISTRIBUTION/${LB_DISTRIBUTION}/" \
-e "s/LB_PACKAGE_LISTS/${LB_PACKAGE_LISTS}/" \
-e "s/LB_TASKS/${LB_TASKS}/" \
-e "s/LB_PACKAGES/${LB_PACKAGES}/" \
-e "s/LB_ARCHITECTURES/${LB_ARCHITECTURES}/" \
-e "s/LB_BOOTSTRAP_FLAVOUR/${LB_BOOTSTRAP_FLAVOUR}/" \
-e "s#LB_MIRROR_BOOTSTRAP#${LB_MIRROR_BOOTSTRAP}#" \
-e "s#LB_MIRROR_BINARY_SECURITY#${LB_MIRROR_BINARY_SECURITY}#" \
-e "s#LB_MIRROR_BINARY#${LB_MIRROR_BINARY}#" \
-e "s/LB_ARCHIVE_AREAS/${LB_ARCHIVE_AREAS}/" \
-e "s/LB_CHROOT_FILESYSTEM/${LB_CHROOT_FILESYSTEM}/" \
-e "s/LB_LINUX_FLAVOURS/${LB_LINUX_FLAVOURS}/" \
-e "s/LB_SECURITY/${LB_SECURITY}/" \
-e "s/LB_BINARY_INDICES/${LB_BINARY_INDICES}/" \
-e "s#LB_BOOTAPPEND_INSTALL#${LB_BOOTAPPEND_INSTALL}#" \
-e "s#LB_BOOTAPPEND_LIVE#${LB_BOOTAPPEND_LIVE}#" \
-e "s/LB_BOOTLOADER/${LB_BOOTLOADER}/" \
-e "s/LB_DEBIAN_INSTALLER/${LB_DEBIAN_INSTALLER}/" \
-e "s#LB_ISO_APPLICATION#${LB_ISO_APPLICATION}#" \
-e "s#LB_ISO_PREPARER#${LB_ISO_PREPARER}#" \
-e "s#LB_ISO_PUBLISHER#${LB_ISO_PUBLISHER}#" \
-e "s#LB_ISO_VOLUME#${LB_ISO_VOLUME}#" \
-e "s/LB_MEMTEST/${LB_MEMTEST}/" \
-e "s#LB_NET_ROOT_PATH#${LB_NET_ROOT_PATH}#" \
-e "s/LB_NET_ROOT_SERVER/${LB_NET_ROOT_SERVER}/" \
-e "s#SERVER#${_SERVER}#g" \
-e "s/LB_SOURCE_IMAGES/${LB_SOURCE_IMAGES}/" \
-e "s/LB_SOURCE/${LB_SOURCE}/" \
-e "s#CUSTOM_BOOTSTRAP#${_CUSTOM_BOOTSTRAP}#" \
-e "s#CUSTOM_BINARY#${_CUSTOM_BINARY}#" \
"${_TEMPLATES}"/build.html
# Creating temporary directory
mkdir -p "${_TEMPDIR}"
# Writing build file
cat > "${_TEMPDIR}"/"${_BUILD}".build << EOF
# live-build.cgi "${VERSION}" build file
# `date -R`
_BUILD="${_BUILD}"
_EMAIL="${_EMAIL}"
REMOTE_ADDR="${REMOTE_ADDR}"
# Standard options
LB_BINARY_IMAGES="${LB_BINARY_IMAGES}"
LB_DISTRIBUTION="${LB_DISTRIBUTION}"
LB_PACKAGE_LISTS="${LB_PACKAGE_LISTS}"
LB_TASKS="${LB_TASKS}"
LB_PACKAGES="${LB_PACKAGES}"
# Advanced bootstrap options
LB_ARCHITECTURES="${LB_ARCHITECTURES}"
LB_MIRROR_BOOTSTRAP="${LB_MIRROR_BOOTSTRAP}"
LB_MIRROR_BINARY_SECURITY="${LB_MIRROR_BINARY_SECURITY}"
LB_MIRROR_BINARY="${LB_MIRROR_BINARY}"
LB_ARCHIVE_AREAS="${LB_ARCHIVE_AREAS}"
# Advanced chroot options
LB_CHROOT_FILESYSTEM="${LB_CHROOT_FILESYSTEM}"
LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS}"
LB_SECURITY="${LB_SECURITY}"
# Advanced binary options
LB_BINARY_INDICES="${LB_BINARY_INDICES}"
LB_BOOTAPPEND_INSTALL="${LB_BOOTAPPEND_INSTALL}"
LB_BOOTAPPEND_LIVE="${LB_BOOTAPPEND_LIVE}"
LB_BOOTLOADER="${LB_BOOTLOADER}"
LB_DEBIAN_INSTALLER="${LB_DEBIAN_INSTALLER}"
LB_ISO_APPLICATION="${LB_ISO_APPLICATION}"
LB_ISO_PREPARER="${LB_ISO_PREPARER}"
LB_ISO_PUBLISHER="${LB_ISO_PUBLISHER}"
LB_ISO_VOLUME="${LB_ISO_VOLUME}"
LB_MEMTEST="${LB_MEMTEST}"
LB_NET_ROOT_PATH="${LB_NET_ROOT_PATH}"
LB_NET_ROOT_SERVER="${LB_NET_ROOT_SERVER}"
# Advanced source options
LB_SOURCE_IMAGES="${LB_SOURCE_IMAGES}"
LB_SOURCE="${LB_SOURCE}"
# Unofficial options
_CUSTOM_BOOTSTRAP="${_CUSTOM_BOOTSTRAP}"
_CUSTOM_BINARY="${_CUSTOM_BINARY}"
# Other
LB_REPOSITORIES="${LB_REPOSITORIES}"
EOF
echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-build.cgi: add web build (${_BUILD}) from ${REMOTE_ADDR}." >> /var/log/live
echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-build.cgi: options ${_BUILD} |email ${_EMAIL}|binary_images ${LB_BINARY_IMAGES}|distribution ${LB_DISTRIBUTION}|package_lists ${LB_PACKAGE_LISTS}|tasks ${LB_TASKS}|packages ${LB_PACKAGES}|architectures ${LB_ARCHITECTURES}|mirror_bootstrap_security ${LB_MIRROR_BOOTSTRAP}|mirror_bootstrap ${LB_MIRROR_BOOTSTRAP}|mirror_binary_security ${LB_MIRROR_BINARY_SECURITY}|mirror_binary ${LB_MIRROR_BINARY}|archive_areas ${LB_ARCHIVE_AREAS}|chroot_filesystem ${LB_CHROOT_FILESYSTEM}|linux_flavours ${LB_LINUX_FLAVOURS}|security ${LB_SECURITY}|binary_indices ${LB_BINARY_INDICES}|bootappend_install ${LB_BOOTAPPEND_INSTALL}|bootappend_live ${LB_BOOTAPPEND_LIVE}|bootloader ${LB_BOOTLOADER}|debian_installer ${LB_DEBIAN_INSTALLER}|iso_application ${LB_ISO_APPLICATION}|iso_preparer ${LB_ISO_PREPARER}|iso_publisher ${LB_ISO_PUBLISHER}|iso_volume ${LB_ISO_VOLUME}|memtest ${LB_MEMTEST}|net_path ${LB_NET_ROOT_PATH}|net_server ${LB_NET_ROOT_SERVER}|source_images ${LB_SOURCE_IMAGES}|source ${LB_SOURCE}|custom_bootstrap ${_CUSTOM_BOOTSTRAP}|custom_binary ${_CUSTOM_BINARY}\n" >> /var/log/live
fi
sed -e "s/VERSION/${VERSION}/" "${_TEMPLATES}"/footer.html

192
cgi/cron
View File

@ -1,192 +0,0 @@
#!/bin/sh
## live-build(7) - System Build Scripts
## Copyright (C) 2006-2011 Daniel Baumann <daniel@debian.org>
##
## live-build comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
# Including common functions
. "${LB_BASE:-/usr/share/live/build}"/scripts/build.sh
# Reading defaults
if [ -r /etc/default/live-build.cgi ]
then
. /etc/default/live-build.cgi
else
echo "E: /etc/default/live-build.cgi missing"
exit 1
fi
# Exit if disabled
if [ "${_WEBBUILD}" != "enabled" ]
then
exit 0
fi
# Turn on debug if enabled
if [ "${_DEBUG}" = "enabled" ]
then
set -x
fi
# Checking lock file
if [ -f /var/lock/live-build.cgi.lock ]
then
echo "E: live-build.cgi already/still running."
exit 1
fi
# Creating lock trap
trap "test -f /var/lock/live-build.cgi.lock && rm -f /var/lock/live-build.cgi.lock; exit 0" 0 1 2 3 9 15
# Creating lock file
touch /var/lock/live-build.cgi.lock
# Cleanup old builds: cron should be run at least once per hour to take effect
if ls "${_DESTDIR}"/`date -d yesterday +%Y%m%d.%H`* > /dev/null 2>&1
then
rm -rf "${_DESTDIR}"/`date -d yesterday +%Y%m%d.%H`*
echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-build.cgi: remove web build (`date -d yesterday +%Y%m%d.%H`*)." >> /var/log/live
fi
# Ok from here spin through the live-build.cgi files we have waiting to build
#if ls "${_TEMPDIR}"/*.build > /dev/null 2>&1
if Find_files ${_TEMPDIR}/*.build
then
for _FILE in "${_TEMPDIR}"/*.build
do
# Pull in the variables we want from the config file.
# Pul in the build number
_BUILD=`awk -F\" '/^_BUILD=/{print $2}' ${_FILE}`
# Pull in the email address
_EMAIL=`awk -F\" '/^_EMAIL=/{print $2}' ${_FILE}`
# Pull in the remote address, atchitecture, and distribution
_REMOTE_ADDR=`awk -F\" '/^REMOTE_ADDR=/{print $2}' ${_FILE}`
_LB_ARCHITECTURES=`awk -F\" '/^LB_ARCHITECTURES=/{print $2}' ${_FILE}`
_LB_DISTRIBUTION=`awk -F\" '/^LB_DISTRIBUTION=/{print $2}' ${_FILE}`
_LB_PACKAGE_LISTS=`awk -F\" '/^LB_PACKAGE_LISTS=/{print $2}' ${_FILE}`
_LB_PACKAGES=`awk -F\" '/^LB_PACKAGES=/{print $2}' ${_FILE}`
# Pull in the custom bootstrap
_CUSTOM_BOOTSTRAP=`awk -F\" '/^_CUSTOM_BOOTSTRAP=/{print $2}' ${_FILE}`
# Pull in the custom binary
_CUSTOM_BINARY=`awk -F\" '/^_CUSTOM_BINARY=/{print $2}' ${_FILE}`
# Drop out some build data for information if something goes wrong.
echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-build.cgi: begin web build (${_BUILD})." >> /var/log/live
# Creating build directory which also creates the config/chroot_sources folder
mkdir -p "${_TEMPDIR}"/"${_BUILD}"/config/chroot_sources
# The next two tests are for unofficial third party repositories
if [ -n "${_CUSTOM_BOOTSTRAP}" ]
then
echo "${_CUSTOM_BOOTSTRAP}" > "${_TEMPDIR}"/"${_BUILD}"/config/chroot_sources/custom.bootstrap
fi
if [ -n "${_CUSTOM_BINARY}" ]
then
echo "${_CUSTOM_BINARY}" > "${_TEMPDIR}"/"${_BUILD}"/config/chroot_sources/custom.binary
fi
_DATE_START="`date -R`"
echo "Begin: ${_DATE_START}" > "${_TEMPDIR}"/"${_BUILD}"/log
# Generating image
cd "${_TEMPDIR}"/"${_BUILD}"
lb config -c ${_FILE} >> "${_TEMPDIR}"/"${_BUILD}"/log 2>&1
_ERRORCONFIG="${?}"
lb build >> "${_TEMPDIR}"/"${_BUILD}"/log 2>&1
_ERRORBUILD="${?}"
_DATE_END="`date -R`"
echo "End: ${_DATE_END}" >> "${_TEMPDIR}"/"${_BUILD}"/log
# Creating image directory
mkdir -p "${_DESTDIR}"/"${_BUILD}"
# Creating mail and logging.
if [ "${_ERRORCONFIG}" -eq "0" ] && [ "${_ERRORBUILD}" -eq "0" ]
then
_STATUS="maybe-successful"
echo "${_REMOTE_ADDR} - - `date +[%d/%b/%Y:%H:%m:%S\ %z]` \"${_BUILD} ${_LB_ARCHITECTURES}/${_LB_DISTRIBUTION}/${_LB_PACKAGE_LISTS}/${_LB_PACKAGES}\" 200 - \"-\" \"\"">>/var/log/live-cgi.builds
else
_STATUS="maybe-failed"
echo "${_REMOTE_ADDR} - - `date +[%d/%b/%Y:%H:%m:%S\ %z]` \"${_BUILD} ${_LB_ARCHITECTURES}/${_LB_DISTRIBUTION}/${_LB_PACKAGE_LISTS}/${_LB_PACKAGES}\" 404 - \"-\" \"\"">>/var/log/live-cgi.builds
fi
sed -e "s/BUILD/${_BUILD}/g" \
-e "s/EMAIL/${_EMAIL}/" \
-e "s/VERSION/${VERSION}/" \
-e "s/DATE_START/${_DATE_START}/" \
-e "s/DATE_END/${_DATE_END}/" \
-e "s/STATUS/${_STATUS}/" \
-e "s#SERVER#${_SERVER}#" \
"${_TEMPLATES}"/mail.txt > "${_DESTDIR}"/"${_BUILD}"/mail
cat >> "${_DESTDIR}"/"${_BUILD}"/mail << EOF
---
Here's a list of all build-options that were used to build your image:
EOF
cat "${_TEMPDIR}"/"${_BUILD}".build >> "${_DESTDIR}"/"${_BUILD}"/mail
# Moving binary image
#if ls "${_TEMPDIR}"/"${_BUILD}"/binary*.* > /dev/null 2>&1
if Find_files ${_TEMPDIR}/${_BUILD}/binary*.*
then
mv "${_TEMPDIR}"/"${_BUILD}"/binary*.* "${_DESTDIR}"/"${_BUILD}"
fi
# Moving source image
#if ls "${_TEMPDIR}"/"${_BUILD}"/source.* > /dev/null 2>&1
if Find_files ${_TEMPDIR}/${_BUILD}/source.*
then
mv "${_TEMPDIR}"/"${_BUILD}"/source.* "${_DESTDIR}"/"${_BUILD}"
fi
# Moving build
mv "${_TEMPDIR}"/"${_BUILD}".build "${_DESTDIR}"/"${_BUILD}"/build
# Moving log
mv "${_TEMPDIR}"/"${_BUILD}"/log "${_DESTDIR}"/"${_BUILD}"
# Generating md5sum
cd "${_DESTDIR}"/"${_BUILD}"
md5sum * > md5sum
cd "${OLDPWD}"
# Sending mail
cat "${_DESTDIR}"/"${_BUILD}"/mail | /usr/sbin/sendmail -t
# Unmounting devpts-live
#if ls "${_TEMPDIR}"/"${_BUILD}"/chroot/dev/pts/* > /dev/null 2>&1
if Find_files ${_TEMPDIR}/${_BUILD}/chroot/dev/pts/*
then
umount "${_TEMPDIR}"/${_BUILD}/chroot/dev/pts
fi
# Unmounting proc
if [ -f "${_TEMPDIR}"/"${_BUILD}"/chroot/proc/version ]
then
umount "${_TEMPDIR}"/"${_BUILD}"/chroot/proc
fi
# Unmounting sysfs
if [ -d "${_TEMPDIR}"/"${_BUILD}"/chroot/sys/kernel ]
then
umount "${_TEMPDIR}"/${_BUILD}/chroot/sys
fi
# Removing build directory
rm -rf "${_TEMPDIR}"/"${_BUILD}"
echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-build.cgi: end web build (${_BUILD}: ${_STATUS})." >> /var/log/live
done
fi

View File

@ -1,7 +0,0 @@
# /etc/crontab - system-wide crontab
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
*/1 * * * * root /etc/cron.hourly/live-webhelper > /dev/null 2>&1

View File

@ -1,17 +0,0 @@
# Defaults for /etc/cron.daily/live-build.cgi
_WEBBUILD="disabled"
_MODE="debian-official"
_DEBUG="disabled"
_DESTDIR="/srv/debian-live/build/www"
_TEMPLATES="/usr/share/live/build/templates/cgi/${_MODE}"
_TEMPDIR="/srv/debian-live/build/tmp"
LB_MIRROR_BOOTSTRAP="http://ftp.de.debian.org/debian/"
LB_MIRROR_BINARY="http://ftp.debian.org/debian/"
LB_MIRROR_BINARY_SECURITY="http://security.debian.org/"
_SERVER="http://live.debian.net/build"

View File

@ -1,11 +0,0 @@
# /etc/logrotate.d/live-build
/var/log/live
{
compress
copytruncate
missingok
monthly
notifempty
rotate 24
}

View File

@ -1,74 +0,0 @@
#!/usr/bin/env python
"""
live-helper simulated execution graph generator.
Copyright (C) 2007 Chris Lamb <chris@chris-lamb.co.uk>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import sys, re
import pygraphviz
groups = {
'lh_bootstrap' : 'orange',
'lh_chroot' : 'red',
'lh_source' : 'blue',
'lh_binary' : 'green',
'lh_build' : 'brown'
}
pattern = re.compile(r'^(lh_.+?) ')
def main(start):
global prev
G = pygraphviz.AGraph(directed=True)
G.graph_attr['label'] = 'Simulated execution trace for live-helper.'
def helper(filename):
global prev
for line in gen_matches(filename):
G.add_edge(prev, line)
style(G.get_node(prev), prev)
prev = line
helper(line)
prev = start
helper(start)
G.layout(prog='dot')
print G.draw(format='svg')
def style(node, name):
if name in groups.keys():
node.attr['shape'] = 'box'
node.attr['style'] = 'bold'
else:
node.attr['fontsize'] = '11'
for group_name, color in groups.iteritems():
if name.startswith(group_name):
node.attr['color'] = color
return node
def gen_matches(filename):
f = open('/usr/bin/%s' % filename, 'r')
for line in f.xreadlines():
match = pattern.match(line)
if match:
yield match.group(1)
f.close()
if __name__ == "__main__":
if len(sys.argv) == 2:
main(sys.argv[1])
else:
main('lh_build')

View File

@ -1,26 +0,0 @@
The grub splash for Debian Live was made by Daniel Baumann <daniel@debian.org>
based on the original work of Mark Riedesel.
The contribution of Daniel is hereby placed in the public domain (no rights
reserved).
---------------
http://dugnet.com/klown/pics/klowner_debboot.png
by Mark Riedesel, license same as open use logo
To create klowner.rle:
1. convert klowner.png klowner.bmp
2. bmptoppm < klowner.bmp | ppmtolss16 #FBFDFA=7 > klowner.rle
(FBFDFA is the color used for the inside of the "n" in Debian.)
---------------
Debian Open Use Logo License
Copyright (c) 1999 Software in the Public Interest
This logo or a modified version may be used by anyone to refer to the Debian
project, but does not indicate endorsement by the project.
Note: we would appreciate that you make the image a link to
http://www.debian.org/ if you use it on a web page.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

1
data/debian-cd/bookworm Symbolic link
View File

@ -0,0 +1 @@
squeeze/

1
data/debian-cd/bullseye Symbolic link
View File

@ -0,0 +1 @@
squeeze/

View File

@ -1 +0,0 @@
maverick

View File

@ -1 +0,0 @@
maverick

View File

@ -1 +0,0 @@
maverick

View File

@ -1 +0,0 @@
maverick

1
data/debian-cd/kali-dev Symbolic link
View File

@ -0,0 +1 @@
sid

View File

@ -0,0 +1 @@
sid

1
data/debian-cd/kali-rolling Symbolic link
View File

@ -0,0 +1 @@
sid

View File

@ -1 +0,0 @@
maverick

View File

@ -1 +0,0 @@
maverick

View File

@ -1,4 +0,0 @@
netcfg
ethdetect
pcmcia-cs-udeb
wireless-tools-udeb

View File

@ -1,4 +0,0 @@
netcfg
ethdetect
pcmcia-cs-udeb
wireless-tools-udeb

View File

@ -1,4 +0,0 @@
netcfg
ethdetect
pcmcia-cs-udeb
wireless-tools-udeb

View File

@ -1,4 +0,0 @@
netcfg
ethdetect
pcmcia-cs-udeb
wireless-tools-udeb

View File

@ -1 +0,0 @@
kernel-image-*

View File

@ -1,5 +0,0 @@
choose-mirror
netcfg
ethdetect
pcmcia-cs-udeb
wireless-tools-udeb

View File

@ -1,4 +0,0 @@
netcfg
ethdetect
pcmcia-cs-udeb
wireless-tools-udeb

View File

@ -1,4 +0,0 @@
netcfg
ethdetect
pcmcia-cs-udeb
wireless-tools-udeb

View File

@ -1,4 +0,0 @@
netcfg
ethdetect
pcmcia-cs-udeb
wireless-tools-udeb

View File

@ -1,4 +0,0 @@
netcfg
ethdetect
pcmcia-cs-udeb
wireless-tools-udeb

View File

@ -1,4 +0,0 @@
choose-mirror
netcfg
ethdetect
wireless-tools-udeb

View File

@ -1,3 +0,0 @@
netcfg
ethdetect
wireless-tools-udeb

View File

@ -1,4 +0,0 @@
netcfg
ethdetect
pcmcia-cs-udeb
wireless-tools-udeb

View File

@ -1,4 +0,0 @@
netcfg
ethdetect
pcmcia-cs-udeb
wireless-tools-udeb

View File

@ -1 +0,0 @@
maverick

View File

@ -1 +1 @@
squeeze
trixie

1
data/debian-cd/testing Symbolic link
View File

@ -0,0 +1 @@
trixie

View File

@ -0,0 +1,2 @@
This is a manual copy of the exclude lists is debian-cd/data
https://salsa.debian.org/images-team/debian-cd

View File

@ -1,4 +1,4 @@
choose-mirror
netcfg
ethdetect
fdisk-udeb
pcmciautils-udeb

View File

@ -1,3 +1,3 @@
netcfg
ethdetect
fdisk-udeb
pcmciautils-udeb

View File

@ -1,3 +1,3 @@
netcfg
ethdetect
fdisk-udeb
pcmciautils-udeb

View File

@ -0,0 +1,143 @@
# These udebs build the d-i cdrom initrd. As such, there is no reason
# to keep another copy of them on the CD in udeb form.
#
# This duplicates data found in the file build/pkg-lists/kernel, in d-i svn
kernel-image-*
# build/pkg-lists/base in d-i svn
archdetect
rootskel
main-menu
cdebconf-udeb
udpkg
anna
di-utils
di-utils-shell
di-utils-reboot
lowmemcheck
# build/pkg-lists/cdrom/common, in d-i svn (also included in the
# root+cd-drivers floppies)
busybox-udeb
installation-locale
localechooser
iso-3166-udeb
hw-detect
cdrom-detect
cdrom-retriever
load-cdrom
cdrom-checker
bogl-bterm-udeb
di-utils-terminfo
cdebconf-priority
cdebconf-newt-udeb
usb-discover
preseed-common
initrd-preseed
file-preseed
nano-udeb
floppy-retriever
libfribidi0-udeb
# Already on the initrd as dependencies
libdebconfclient0-udeb
libdebian-installer4-udeb
libdebian-installer-extra4-udeb
# These udebs are only useful in building the boot floppy image
busybox-floppy-udeb
rootskel-bootfloppy
# Graphical installer: common udebs included in initrd
rootskel-gtk
cdebconf-gtk-udeb
fontconfig-udeb
gtk2-engines-udeb
libatk1.0-udeb
libexpat1-udeb
libfreetype6-udeb
libglib2.0-udeb
libgtk2-engines-udeb
libpango1.0-udeb
libpcre3-udeb
libpixman-1-0-udeb
libpng*-udeb
libsdl1.2debian-udeb
mouse-modules-*
ttf-*
fbset-udeb
# Graphical installer: udebs for directfb
libdirectfb-*-udeb
libcairo-directfb2-udeb
libgtk-directfb-2.0-0-udeb
# Graphical installer: udebs for X.Org
xserver-xorg-core-udeb
xserver-xorg-input-evdev-udeb
xserver-xorg-video-fbdev-udeb
x11-xkb-utils-udeb
xkb-data-udeb
libcairo2-udeb
libdrm2-udeb
libfontenc1-udeb
libgtk-x11-udeb
libpciaccess0-udeb
libx11-6-udeb
libxau6-udeb
libxcb1-udeb
libxcursor1-udeb
libxdmcp6-udeb
libxext6-udeb
libxfixes3-udeb
libxfont1-udeb
libxft2-udeb
libxi6-udeb
libxinerama1-udeb
libxkbfile1-udeb
libxrender1-udeb
# Graphical installer: terminal support is included in initrd
cdebconf-gtk-terminal
libvte9-udeb
# Not currently used
cdebootstrap-udeb
hdparm-udeb
dhcp-client-udeb
# This package is only useful in the d-i-demo
di-utils-exit-installer
# No need for these loaders.
download-installer
load-floppy
# Only useful in the hd-media initrd
iso-scan
load-iso
# These are not really needed, the regular netcfg subsumes them
netcfg-static
# skolelinux stuff, not for the stock CDs
debian-edu-install-udeb
debian-edu-profile-udeb
debian-edu-archive-keyring-udeb
ltsp-client-builder
autopartkit
# live CD stuff
live-installer
simple-cdd-profiles
# If needed, will be on the initrd already
module-init-tools-udeb
env-preseed
rescue-check
cdebconf-text-udeb
brltty-udeb
klibc-utils-udeb
libklibc-udeb
udev-udeb
udev-gtk-udeb
ai-choosers
auto-install
libslang2-udeb
kbd-chooser
kbd-udeb
console-setup-*
# Currently unused
debian-ports-archive-keyring-udeb
emdebian-archive-keyring-udeb
nbd-client-udeb
pwgen-udeb
# Eh?
gnumach-udeb
# We only support grub these days, drop lilo and elilo
lilo-installer
elilo-installer

View File

@ -0,0 +1,42 @@
# These udebs are in the d-i cdrom initrd and the hd-media initrd.
# As such, there is no reason to keep another copy of them on the CD
# in udeb form.
console-keymaps-at
console-keymaps-usb
kbd-chooser
acpi-modules-*
ata-modules-*
cdrom-core-modules-*
core-modules-*
fat-modules-*
fb-modules-*
ide-core-modules-*
ide-modules-*
input-modules-*
isofs-modules-*
mmc-modules-*
nls-core-modules-*
parport-modules-*
pcmcia-modules-*
sata-modules-*
scsi-common-modules-*
scsi-core-modules-*
scsi-modules-*
serial-modules-*
speakup-modules-*
usb-modules-*
usb-serial-modules-*
usb-storage-modules-*
# Not used on amd64
console-keymaps-acorn
console-keymaps-amiga
console-keymaps-atari
console-keymaps-dec
console-keymaps-sun
# Not needed with the 2.6 kernel on amd64.
userdevfs
# Only needed on arches that use partconf or autopartkit.
partconf-mkfstab
# Not needed on arches that use partman
mdcfg
lvmcfg

View File

@ -0,0 +1 @@
apt-mirror-setup

1
data/debian-cd/unstable Symbolic link
View File

@ -0,0 +1 @@
sid

27
debian/NEWS vendored Normal file
View File

@ -0,0 +1,27 @@
live-build (1:20220505) unstable; urgency=medium
The support for FTP proxies has ended. You are advised to use http or https
while configuring the debian package mirror, instead of ftp.
See https://salsa.debian.org/live-team/live-build/-/merge_requests/252#note_243114
-- Roland Clobus <rclobus@rclobus.nl> Wed, 8 Sep 2021 11:55:00 +0200
live-build (1:20210329) unstable; urgency=medium
The 'filesystem.size' file is no longer created and included in the image,
as it is often incorrect and variates depending on the build environment,
breaking reproducibility. For more information see the following thread:
https://lists.debian.org/debian-live/2021/03/msg00008.html
-- Luca Boccassi <bluca@debian.org> Mon, 29 Mar 2021 10:49:43 +0100
live-build (1:20180411) unstable; urgency=medium
The live-boot mount points have been moved from /lib/live/mount to
/run/live. Since this is a backward-incompatible change, a compat
recursive bind mount point is being provided in /lib/live/mount so
that existing scripts will not break in Debian 10 (Buster).
Please note that this will be removed in Debian 11 (Bullseye) so
plan accordingly and update any required scripts.
-- Luca Boccassi <bluca@debian.org> Wed, 11 Apr 2018 12:35:19 +0100

4242
debian/changelog vendored

File diff suppressed because it is too large Load Diff

1
debian/compat vendored
View File

@ -1 +0,0 @@
8

53
debian/control vendored
View File

@ -1,33 +1,34 @@
Source: live-build
Section: misc
Priority: optional
Maintainer: Debian Live Project <debian-live@lists.debian.org>
Uploaders: Daniel Baumann <daniel@debian.org>
Build-Depends: debhelper (>= 8)
Build-Depends-Indep: gettext
Standards-Version: 3.9.1
Homepage: http://live.debian.net/devel/live-build/
Vcs-Browser: http://live.debian.net/gitweb/?p=live-build.git
Vcs-Git: git://live.debian.net/git/live-build.git
Maintainer: Debian Live <debian-live@lists.debian.org>
Uploaders: Raphaël Hertzog <raphael@offensive-security.com>,
Luca Boccassi <bluca@debian.org>
Build-Depends: debhelper-compat (= 13), devscripts, gettext, po4a
Standards-Version: 4.7.0
Rules-Requires-Root: no
Homepage: https://wiki.debian.org/DebianLive
Vcs-Browser: https://salsa.debian.org/live-team/live-build
Vcs-Git: https://salsa.debian.org/live-team/live-build.git
Package: live-build
Architecture: all
Depends: ${misc:Depends}, debootstrap | cdebootstrap | cdebootstrap-static
Recommends: cpio, gettext-base, gnu-fdisk
Suggests:
dosfstools, genisoimage, memtest86+ | memtest86, mtools, parted,
squashfs-tools | genext2fs | mtd-tools, sudo | fakeroot, syslinux | grub,
uuid-runtime, win32-loader
Description: Debian Live - System Build Scripts
live-build contains the scripts that build a Debian Live system image from a
configuration directory.
Package: live-build-cgi
Architecture: all
Depends: ${misc:Depends}
Recommends: apache2 | httpd
Description: Debian Live - System Build Scripts (cgi frontend)
live-build contains the scripts that build a Debian Live system image from a
configuration directory.
Depends: cpio, debootstrap, ${misc:Depends}
Recommends: apt-utils,
bzip2,
cryptsetup,
file,
live-boot-doc,
live-config-doc,
live-manual-html | live-manual,
rsync,
systemd-container,
wget,
xz-utils
Suggests: e2fsprogs, eatmydata, git, mtd-utils, parted
Description: Live System Build Components
The Debian Live project maintains the components to build Debian based Live
systems and the official Debian Live images themselves.
.
This package contains the cgi frontend.
live-build contains the components to build a live system from a configuration
directory.

60
debian/copyright vendored
View File

@ -1,5 +1,14 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: live-build
Upstream-Contact: Debian Live Project <debian-live@lists.debian.org>
Files: *
Copyright: (C) 2006-2011 Daniel Baumann <daniel@debian.org>
Copyright:
2016-2020 The Debian Live team
2016-2017 Raphaël Hertzog <hertzog@debian.org>
2006-2015 Daniel Baumann <mail@daniel-baumann.ch>
License: GPL-3+
License: GPL-3+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -14,52 +23,5 @@ License: GPL-3+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General Public License
The complete text of the GNU General Public License
can be found in /usr/share/common-licenses/GPL-3 file.
Files: contrib/graph-helpers
Copyright: (C) 2007 Chris Lamb <chris@chris-lamb.co.uk>
License: GPL-3+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General Public License
can be found in /usr/share/common-licenses/GPL-3 file.
Files: contrib/grub-splash/lenny
License: other
The splash for Debian Live was made by Daniel Baumann <daniel@debian.org> based
on the original work of Mark Riedesel.
.
The contribution of Daniel is hereby placed in the public domain (no rights
reserved).
.
---------------
http://dugnet.com/klown/pics/klowner_debboot.png
by Mark Riedesel, license same as open use logo
.
To create klowner.rle:
.
1. convert klowner.png klowner.bmp
2. bmptoppm < klowner.bmp | ppmtolss16 #FBFDFA=7 > klowner.rle
(FBFDFA is the color used for the inside of the "n" in Debian.)
---------------
.
Debian Open Use Logo License
.
Copyright (c) 1999 Software in the Public Interest
This logo or a modified version may be used by anyone to refer to the Debian
project, but does not indicate endorsement by the project.
.
Note: we would appreciate that you make the image a link to
http://www.debian.org/ if you use it on a web page.

55
debian/gitlab-ci.yml vendored Normal file
View File

@ -0,0 +1,55 @@
---
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
variables:
SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 1
SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1
.lb-build:
stage: test
script:
- apt-get update
- apt-get install -y "$(find . -type f -name '*.deb')"
- lb --version
# We need to stay within the maximum limit for artifacts on Salsa (250M),
# so disable a few things
- lb config --apt-indices false --apt-recommends false --firmware-chroot false --source false --distribution sid --updates false --debootstrap-options "--variant=minbase" --bootloaders grub-efi
# But do install user-setup and sudo to have a usable image
- echo "user-setup sudo" > config/package-lists/recommends.list.chroot
# xz compresses initrds much better than zstd
- echo xz-utils >> config/package-lists/live.list.chroot
- mkdir -p config/includes.chroot_after_packages/etc/initramfs-tools/conf.d/
- printf 'COMPRESS=xz\nCOMPRESSLEVEL=9\n' > config/includes.chroot_after_packages/etc/initramfs-tools/conf.d/compress
# Remove stuff not really needed to boot
- echo 'rm -rf /usr/share/doc/* /usr/share/i18n/* /usr/share/man/* /usr/share/locale/*' >> config/hooks/normal/9020-remove-man-cache.hook.chroot
# Build the ISO
- lb build
- ls -lh
- cp live-image-${BUILD_ARCH}.contents ${WORKING_DIR}
- cp live-image-${BUILD_ARCH}.hybrid.iso ${WORKING_DIR}
artifacts:
when: always
paths:
- ${WORKING_DIR}/live-image-${BUILD_ARCH}.contents
- ${WORKING_DIR}/live-image-${BUILD_ARCH}.hybrid.iso
needs:
- job: build
artifacts: true
ISO amd64:
extends:
- .lb-build
variables:
BUILD_ARCH: 'amd64'
ISO arm64:
extends:
- .lb-build
rules:
- if: $CI_PROJECT_ROOT_NAMESPACE != "rclobus-guest"
variables:
BUILD_ARCH: 'arm64'
tags:
- $SALSA_CI_ARM_RUNNER_TAG

View File

@ -1,9 +1,9 @@
Before submitting a bug report against live-build, please make sure
that you have read your guidlines for Debian Live bug reports:
that you have read your guidelines for live systems bug reports:
http://live.debian.net/manual/
https://live-team.pages.debian.net/live-manual/
By providing the required information as outlined in the guidlines makes
By providing the required information as outlined in the guidelines makes
sure that we can optimally reproduce and fix bugs, not doing so wastes a
lot of time for both the maintainers and the submitters.

View File

@ -2,11 +2,7 @@
DEFAULT_SETTINGS="/etc/live/build.conf"
# Checking depends
dpkg -l debootstrap cdebootstrap
# Checking suggests
dpkg -l dosfstools genisoimage memtest86+ memtest86 mtools parted squashfs-tools genext2fs mtd-tools sudo fakeroot syslinux grub uuid-runtime win32-loader
dpkg -l debootstrap
if [ -e "${DEFAULT_SETTINGS}" ]; then
echo "Contents of ${DEFAULT_SETTINGS}:"

6
debian/live-build.lintian-overrides vendored Normal file
View File

@ -0,0 +1,6 @@
live-build: absolute-symlink-in-top-level-folder
# Those cases are legitimate uses of direct access to the database
live-build: uses-dpkg-database-directly [usr/lib/live/build/chroot_tmpfs]
live-build: uses-dpkg-database-directly [usr/lib/live/build/clean]
live-build: uses-dpkg-database-directly [usr/share/live/build/functions/chroot.sh]
live-build: uses-dpkg-database-directly [usr/share/live/build/hooks/normal/8010-remove-backup-files.hook.chroot]

27
debian/rules vendored
View File

@ -1,27 +1,18 @@
#!/usr/bin/make -f
%:
dh ${@}
override_dh_auto_clean:
$(MAKE) -C po clean
override_dh_auto_build:
$(MAKE) -C po update-po
dh $@
override_dh_auto_install:
$(MAKE) DESTDIR=$(CURDIR)/debian/live-build install
$(MAKE) -C po DESTDIR=$(CURDIR)/debian/live-build install
# Update manual pages first
$(MAKE) -C manpages update
$(MAKE) -C manpages build
mv debian/live-build/usr/share/doc/live-build/ChangeLog.live-package debian/live-build/usr/share/doc/live-build/changelog.live-package
mv debian/live-build/usr/share/doc/live-build/ChangeLog.live-webhelper debian/live-build/usr/share/doc/live-build/changelog.live-webhelper
dh_auto_install -- DESTDIR=debian/live-build
# Removing unused files
rm -f debian/live-build/usr/share/doc/live-build/COPYING
rm -f debian/live-build/usr/share/doc/live-build/ChangeLog
# live-buld-cgi
mkdir -p debian/live-build-cgi/usr/share/live/build
mv debian/live-build/usr/share/live/build/cgi debian/live-build-cgi/usr/share/live/build
override_dh_installchangelogs:
dh_installchangelogs docs/ChangeLog
override_dh_link:
# workaround dh_link conversion of absolute symlinks to relative symlinks
dh_link -X.c32 -Xisolinux.bin -Xpxelinux.0

View File

@ -1 +1 @@
3.0 (quilt)
3.0 (native)

11
debian/source/lintian-overrides vendored Normal file
View File

@ -0,0 +1,11 @@
# Ignore those errors, it's not nice but works currently
absolute-symbolic-link-target-in-source /usr/lib/ISOLINUX/isolinux.bin [share/bootloaders/isolinux/isolinux.bin]
absolute-symbolic-link-target-in-source /usr/lib/PXELINUX/pxelinux.0 [share/bootloaders/pxelinux/pxelinux.0]
absolute-symbolic-link-target-in-source /usr/lib/syslinux/modules/bios/hdt.c32 [share/bootloaders/syslinux_common/hdt.c32]
absolute-symbolic-link-target-in-source /usr/lib/syslinux/modules/bios/ldlinux.c32 [share/bootloaders/isolinux/ldlinux.c32]
absolute-symbolic-link-target-in-source /usr/lib/syslinux/modules/bios/ldlinux.c32 [share/bootloaders/pxelinux/ldlinux.c32]
absolute-symbolic-link-target-in-source /usr/lib/syslinux/modules/bios/libcom32.c32 [share/bootloaders/syslinux_common/libcom32.c32]
absolute-symbolic-link-target-in-source /usr/lib/syslinux/modules/bios/libgpl.c32 [share/bootloaders/syslinux_common/libgpl.c32]
absolute-symbolic-link-target-in-source /usr/lib/syslinux/modules/bios/libmenu.c32 [share/bootloaders/syslinux_common/libmenu.c32]
absolute-symbolic-link-target-in-source /usr/lib/syslinux/modules/bios/libutil.c32 [share/bootloaders/syslinux_common/libutil.c32]
absolute-symbolic-link-target-in-source /usr/lib/syslinux/modules/bios/vesamenu.c32 [share/bootloaders/syslinux_common/vesamenu.c32]

View File

@ -1,2 +0,0 @@
compression = gzip
compression-level = 9

15
debian/tests/build-default-image vendored Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -eu
set -o pipefail
cd "${AUTOPKGTEST_TMP}"
# Use the default values
lb config --verbose
# Verify some values
lb config --dump | grep 'LB_DISTRIBUTION="testing"'
lb config --dump | grep 'LB_UPDATES="true"'
lb config --dump | grep 'LB_SECURITY="true"'
lb config --dump | grep 'LB_PROPOSED_UPDATES="false"'
lb build --verbose
ls -l

21
debian/tests/build-kali-image vendored Normal file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -eu
set -o pipefail
# Ensure Kali's keyring archive is installed and is always up to date
echo "Acquire::Retries 5;" > /etc/apt/apt.conf.d/live-build-ci
curl https://archive.kali.org/archive-key.asc > /etc/apt/trusted.gpg.d/kali.asc
mkdir -p /etc/apt/sources.list.d
echo "deb http://http.kali.org/kali kali-rolling main" > /etc/apt/sources.list.d/kali.list
apt-get update
apt-get install -y kali-archive-keyring
rm -f /etc/apt/trusted.gpg.d/kali.asc /etc/apt/sources.list.d/kali.list /etc/apt/apt.conf.d/live-build-ci
apt-get update
cd "${AUTOPKGTEST_TMP}"
git clone --depth 1 --no-tags https://gitlab.com/kalilinux/build-scripts/live-build-config.git
cd live-build-config
./build.sh --verbose
ls -l
ls -l images

14
debian/tests/build-stable-image vendored Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
set -eu
set -o pipefail
cd "${AUTOPKGTEST_TMP}"
# A minimal command line
lb config --verbose --distribution stable
# Verify some default values
lb config --dump | grep 'LB_UPDATES="true"'
lb config --dump | grep 'LB_SECURITY="true"'
lb config --dump | grep 'LB_PROPOSED_UPDATES="false"'
lb build --verbose
ls -l

20
debian/tests/control vendored Normal file
View File

@ -0,0 +1,20 @@
Tests: build-default-image
Depends: live-build
Restrictions: allow-stderr, needs-internet, needs-root
Tests: build-stable-image
Depends: live-build
Restrictions: allow-stderr, needs-internet, needs-root
Tests: build-kali-image
Depends: apt-utils,
bzip2,
ca-certificates,
cpio,
curl,
file,
git,
live-build,
wget,
xz-utils
Restrictions: allow-stderr, flaky, needs-internet, needs-root

View File

@ -1,9 +0,0 @@
Main Author:
* Daniel Baumann <daniel@debian.org>
Main Contributors:
* Chris Lamb <lamby@debian.org>
* Otavio Salvador <otavio@debian.org>
* Richard Nelson <unixabg@gmail.com>

View File

@ -1,64 +0,0 @@
Patches (alphabetical order):
* Alex Owen <r.a.owen@qmul.ac.uk>
* An-Cheng Huang <ancheng@vyatta.com>
* Antonio Amorim <Antonio.Amorim@sim.fc.ul.pt>
* Antonio Terceiro <terceiro@softwarelivre.org>
* Bas Wijnen <wijnen@debian.org>
* Ben Armstrong <synrg@debian.org>
* Cedric Lucantis <omer@no-log.org>
* Chris Lamb <lamby@debian.org>
* Cody A.W. Somerville <cody.somerville@canonical.com>
* Cyril Brulebois <cyril.brulebois@kerlabs.com>
* David Madore <david.madore@ens.fr>
* Erwan Le Gall <elegall@linagora.com>
* Fathi Boudra <fabo@debian.org>
* Franklin Piat <fpiat@bigfoot.com>
* Frederic Daniel Luc Lehobey <Frederic@Lehobey.net>
* Guerkan Senguen <gurkan@linuks.mine.nu>
* Hadar Weiss <whadar@gmail.com>
* Inigo Tejedor Arrondo <inigo@navarrux.org>
* Jason D. Clinton <me@jasonclinton.com>
* Jean Pierre LeJacq <jp.lejacq@quoininc.com>
* Jesse Hathaway <jesse@mbuki-mvuki.org>
* Justin Pryzby <pryzbyj@justinpryzby.com>
* Kai Hendry <hendry@webconverger.com>
* Kel Modderman <kel@otaku42.de>
* Maarten ter Huurne <maarten@treewalker.org>
* Marcelo D. Re <mdre@rectorado.unl.edu.ar>
* Marco Amadori <marco.amadori@gmail.com>
* Markus Bauer <bauer-markus@web.de>
* Mathieu Geli <mathieu.geli@gmail.com>
* Otavio Salvador <otavio@debian.org>
* Peter Holik <peter@holik.at>
* Peter Skogstroem <peter.skogstrom@bitrunner.com>
* Rene Merou <ochominutosdearco@gmail.com>
* Richard Nelson <unixabg@gmail.com>
* Scott Edwards <debian@foss.daxal.com>
* Sebastian Raveau <sebastien.raveau@epita.fr>
* Thomas Lange <lange@informatik.uni-koeln.de>
* Tiago Bortoletto Vaz <tiago@debian-ba.org>
* Trent Buck <trentbuck@gmail.com>
* Tzafrir Cohen <tzafrir.cohen@xorcom.com>
* Vladimir Stavrinov <vs@inist.ru>
Donations (alphabetical order):
* Gracie <gracie@bithawk.net>
Special thanks (alphabetical order):
* Ben Armstrong <synrg@debian.org> for his IRC support and tremendous work on
documentation.
* Jason D. Clinton <me@jasonclinton.com> for his work on netboot type.
* Otavio Salvador <otavio@debian.org> for his QA patches.
* Richard Nelson <rjent@rjent.pair.com> for live-webhelper.
* Sebastian Raveau <sebastien.raveau@epita.fr> for his work on encryption
support.
* Scott Edwards <debian@foss.daxal.com> for his work on d-i/g-i integration.
* Michael Dorrington <mike@zen.co.uk> for distracting Luk Claes on DebConf 7,
so that Luk couldn't disturb me all the time and I could finally do some
work.
...and countless other people showed up on the #debian-live IRC channel since
February 2006: thanks for all your help, ideas, and wishes.

File diff suppressed because it is too large Load Diff

View File

@ -1,474 +0,0 @@
2007-03-10 Daniel Baumann <daniel@debian.org>
* Added knoppix and knoppix-dvd package lists.
2007-03-09 Daniel Baumann <daniel@debian.org>
* Getting free loopdevice from inside the chroot, not outside.
2007-03-09 Daniel Baumann <daniel@debian.org>
* Added kbd to all !minimal lists.
* Uploaded 0.99.25.
2007-03-08 Otavio Salvador <otavio@debian.org>
* helpers/lh_configapt: Fix aptitude configuration to really avoid
recommended packages to get installed.
* src/scripts/02defaults.sh: Export LIVE_ISOLINUX_SPLASH.
2007-03-04 Daniel Baumann <daniel@debian.org>
* Replaced removal of kernel on minimal flavours with excludes on the
mksquashfs call.
* Added LIVE_INCLUDE_CHROOT to the manual exported variables as reported
by Mathieu Geli <mathieu.geli@gmail.com>.
* Exported CODENAME_* manually as reported by Cédric Lucantis
<omer@no-log.org>.
* Fixed typo s/aptiude/aptitude/ as reported by Kai Hendry
<hendry@iki.fi>.
* Uploaded 0.99.24.
2007-02-22 Daniel Baumann <daniel@debian.org>
* Added xresprobe to all x11 lists.
2007-02-22 Daniel Baumann <daniel@debian.org>
* Applied patches from Otavio Salvador <otavio@debian.org>:
- add and cleanup variable exporting in defaults.
- add LIVE_BOOTSTRAP_CONFIG to lh_debootstrap.
* Uploaded 0.99.23.
2007-02-21 Daniel Baumann <daniel@debian.org>
* Added gnome-junior, kde-junior and xfce-junior lists.
* Uploaded 0.99.22.
2007-02-19 Daniel Baumann <daniel@debian.org>
* Fixed manifest.
2007-02-15 Daniel Baumann <daniel@debian.org>
* Applied patch from Sebastian Raveau <sebastien.raveau@epita.fr> to
add support for filesystem images encrypted with loop-aes.
2007-02-13 Daniel Baumann <daniel@debian.org>
* Broken out scripts into modularized lh_* subscripts.
2007-02-12 Daniel Baumann <daniel@debian.org>
* Added some code as suggested by Alex Owen <r.a.owen@qmul.ac.uk> to
check if the depends (syslinux, memtest etc.) are intentionally
installed in the chroot, and hence, don't remove them.
* Moved some depends into the chroot.
* Uploaded 0.99.21.
2007-02-11 Daniel Baumann <daniel@debian.org>
* Added mini flavour.
2007-02-10 Daniel Baumann <daniel@debian.org>
* Added legacy code for genisoimage.
* Uploaded 0.99.20.
2007-02-09 Daniel Baumann <daniel@debian.org>
* Added usb type.
2007-02-08 Daniel Baumann <daniel@debian.org>
* Added desktop task to the *-desktop flavours.
2007-02-07 Daniel Baumann <daniel@debian.org>
* Extended cron job a bit.
* Fixed manual pruning in minimal flavour as suggested by Bas Wijnen
<wijnen@debian.org>
2007-02-02 Daniel Baumann <daniel@debian.org>
* Added "--without-daemons".
2007-02-01 Daniel Baumann <daniel@debian.org>
* Added "--tasks".
* Added desktop-base to all desktop package lists.
2007-01-31 Daniel Baumann <daniel@debian.org>
* Changed vars in autobuilding script to be able to source
make-live.conf.
* Uploaded 0.99.19.
2007-01-30 Daniel Baumann <daniel@debian.org>
* Added cron job for autobuilding images.
2007-01-25 Daniel Baumann <daniel@debian.org>
* Added additional pruning to minimal flavour.
* Using interactive frontend while processing --hook.
* Uploaded 0.99.18.
2007-01-24 Daniel Baumann <daniel@debian.org>
* Applied patches from Otavio Salvador <otavio@debian.org>:
- adding "--keyring" flag.
- adding LIVE_DISK_VOLUME.
- adding start-stop-daemon wrapper to avoid daemons to be started.
- adding workaround to prevent binfmt locking /proc.
- adding LIVE_ISOLINUX_SPLASH.
* Uploaded 0.99.17.
2007-01-19 Daniel Baumann <daniel@debian.org>
* Replacing mkisofs with genisoimage.
2007-01-18 Daniel Baumann <daniel@debian.org>
* Cleanups.
* Uploaded 0.99.16.
2007-01-16 Daniel Baumann <daniel@debian.org>
* Switched default distribution back to unstable, as unstable is usable
again from the kernel point of view.
* Added file to the minimal package list.
* Uploaded 0.99.15.
2007-01-04 Daniel Baumann <daniel@debian.org>
* Added workaround for new xorg packages by including
xserver-xorg-input-all and xserver-xorg-video-all in all X11 package
lists. See #405639 for more information.
* Added xdebconfigurator to all X11 package lists.
* Adding workaround for initrd backup files.
2006-11-06 Daniel Baumann <daniel@debian.org>
* Uploaded 0.99.14.
2006-11-05 Daniel Baumann <daniel@debian.org>
* Applied patch from Markus Bauer <bauer-markus@web.de>:
- fixing script sourcing to exclude files in .svn
2006-11-03 Daniel Baumann <daniel@debian.org>
* Fixed typo in the policy-rc.d hack.
2006-11-02 Daniel Baumann <daniel@debian.org>
* Using aptitude instead of apt-get.
* Added '--with-recommends' and '--without-recommends'.
2006-11-01 Daniel Baumann <daniel@debian.org>
* Fixed regression when using -d ${CODENAME} wrt/ kernel packages.
2006-10-30 Daniel Baumann <daniel@debian.org>
* Uploaded 0.99.13.
2006-10-29 Daniel Baumann <daniel@debian.org>
* Added minimal-net flavour.
2006-10-28 Daniel Baumann <daniel@debian.org>
* Added console-common to standard selection.
2006-10-27 Daniel Baumann <daniel@debian.org>
* Added patch from Otavio Salvador <otavio@debian.org>:
- fixing preseeding error-handling.
2006-10-26 Daniel Baumann <daniel@debian.org>
* Added gnustep package selection based on the suggestion of
Guerkan Senguen <gurkan@linuks.mine.nu>.
2006-10-25 Daniel Baumann <daniel@debian.org>
* Applied patch from Marcelo D. Re <mdre@rectorado.unl.edu.ar>:
- skip deb-src source-list entries when building images with
--without-source.
* Applied patches from Otavio Salvador <otavio@debian.org>:
- adding '--bootstrap-config' to support cdebootstraps
'--suite-config'.
- allowing override of ${BASE}.
- adjust sourcing of scripts, so that only the real scripts are
sourced and not other (backup) files.
- allowing override of kernel-packages.
* Reverted mangling of LIVE_DISTRIBUTION for sources.list generation.
2006-10-23 Daniel Baumann <daniel@debian.org>
* Uploaded 0.99.12.
2006-10-18 Daniel Baumann <daniel@debian.org>
* Autodetecting proxy now.
2006-10-16 Daniel Baumann <daniel@debian.org>
* Readded and slightly changed --clone and --preseed.
* Uploaded 0.99.11.
2006-10-09 Daniel Baumann <daniel@debian.org>
* Cleanups.
* Uploaded 0.99.10.
2006-10-02 Daniel Baumann <daniel@debian.org>
* Uploaded 0.99.9.
2006-10-01 Daniel Baumann <daniel@debian.org>
* Added multiple repositories.
* Using LIVE_PROXY_* also for bootstraping.
2006-09-27 Daniel Baumann <daniel@debian.org>
* Changing manpage section.
2006-09-26 Daniel Baumann <daniel@debian.org>
* Added default flavour hooks.
* minimal flavour does not install debian-archive-keyring to save space.
* Adjusted network patch.
2006-09-25 Daniel Baumann <daniel@debian.org>
* Removed now unused initramfs-tools hack.
* Simplified xorg check based on distribution rather than version.
* Added fix from Bas Wijnen <wijnen@debian.org> for space handling in
arguments.
* Fixed package list handling similar to the fix suggested by Alex Owen
<r.alex.owen@gmail.com>.
* Uploaded 0.99.8.
2006-09-24 Marco Amadori <marco.amadori@gmail.com>
* 13hack.sh: initramfs-tools hack, check added for xorg.
2006-09-18 Daniel Baumann <daniel@debian.org>
* Uploaded 0.99.7.
2006-09-15 Daniel Baumann <daniel@debian.org>
* Added eject to minimal package selection.
2006-09-14 Daniel Baumann <daniel@debian.org>
* Adjustements for linux 2.6.17 testing propagation.
2006-09-11 Daniel Baumann <daniel@debian.org>
* Uploaded 0.99.6.
2006-09-08 Marco Amadori <marco.amadori@gmail.com>
* 23net.sh: Fixed binary missing directory creation.
* templates/iso: Moved common files to templates/common.
2006-09-07 Daniel Baumann <daniel@debian.org>
* Minor cleanups.
* Fixed dist target.
2006-09-06 Marco Amadori <marco.amadori@gmail.com>
* 14chroot.sh, main.sh: Added manifest support.
* 23net.sh: Added 2 variables for basenames to ease readability.
* main.sh, 02default.sh: Modified Usage() uses.
2006-09-04 Daniel Baumann <daniel@debian.org>
* Uploaded 0.99.5.
2006-09-03 Daniel Baumann <daniel@debian.org>
* Added dist parameter to easily pull images for live.debian.net.
* Added "--output" to specify the image name prefix.
* Exclude iso templates for minimal flavour.
2006-09-02 Daniel Baumann <daniel@debian.org>
* Added experimental as distribution.
* Added source image generation.
* Using dpkg instead of dpkg-architecture, removed dpkg-dev dependency.
2006-08-31 Daniel Baumann <daniel@debian.org>
* Added "--disable-generic-indices" and "--enable-generic-indices".
* Fixed i18n lists.
* Rewritten all lists, comments are now possible.
* Lists must be now explicitly given with --package-list, no longer as
last argument of the make-live call.
* Setting default sources.list while the image generation, restoring
customized ones afterwards.
2006-08-30 Daniel Baumann <daniel@debian.org>
* Cleanups:
- moved 14patch_packages.sh to 13hack.sh.
- simplified 13hack.sh.
2006-08-29 Marco Amadori <marco.amadori@gmail.com>
* pxelinux.cfg: Updated to right defaults, first cifs then nfs or
select your favorite way. Rationale: /dev/nfs is for kernel
discovering, not for initramfs discover, casper will be just fine
with "netboot".
* 13chroot.sh, 14patch_packages.sh: Added a simple system for patching
packages, mainly for xserver-xorg so far.
2006-08-28 Daniel Baumann <daniel@debian.org>
* Updated documentation.
* Added patch from Alex Owen <r.a.owen@qmul.ac.uk> to update
pxelinux.cfg for NFS root in casper.
* Uploaded 0.99.4.
2006-08-27 Daniel Baumann <daniel@debian.org>
* Cleanups.
2006-08-27 Marco Amadori <marco.amadori@gmail.com>
* Added sysv init blocking policy.
2006-08-22 Daniel Baumann <daniel@debian.org>
* Reorganised sources.
* Added staging support.
* Cleaned up parameter names.
* testing is now supported.
2006-08-21 Daniel Baumann <daniel@debian.org>
* Uploaded 0.99.3.
2006-08-02 Marco Amadori <marco.amadori@gmail.com>
* Rewrote netboot support.
* Added support for pure directory rootfs images.
2006-07-31 Daniel Baumann <daniel@debian.org>
* Uploaded 0.99.2.
2006-07-28 Daniel Baumann <daniel@debian.org>
* Added DEBIAN_FRONTEND to chroots(), now completely non-interactive.
* Fixed wrong chroot patch.
2006-07-27 Marco Amadori <marco.amadori@gmail.com>
* Changed amd64 kernel naming scheme.
2006-07-24 Daniel Baumann <daniel@debian.org>
* Uploaded 0.99.1.
2006-07-19 Daniel Baumann <daniel@debian.org>
* Bugfixes.
2006-07-18 Daniel Baumann <daniel@debian.org>
* Added iso templates.
2006-07-17 Daniel Baumann <daniel@debian.org>
* Added chroot to 01-patch.sh.
* Added "--logfile".
* Uploaded 0.99.
2006-07-01 Daniel Baumann <daniel.baumann@panthera-systems.net>
* Added "--flavour".
2006-06-28 Daniel Baumann <daniel.baumann@panthera-systems.net>
* Added "--debug" and "--verbose".
2006-06-23 Daniel Baumann <daniel.baumann@panthera-systems.net>
* Rewritten manpages.
2006-06-19 Marco Amadori <marco.amadori@gmail.com>
* Added "--templates" options.
* Fixed some typos.
2006-06-15 Daniel Baumann <daniel.baumann@panthera-systems.net>
* General fixes.
2006-06-18 Marco Amadori <marco.amadori@gmail.com>
* Added "-a|--architecture" and "-p|--package-list" options.
* Reworked how lists works.
2006-06-15 Daniel Baumann <daniel.baumann@panthera-systems.net>
* General cleanup.
2006-06-14 Marco Amadori <marco.amadori@gmail.com>
* Re-added "-f|--filesystem".
2006-06-12 Marco Amadori <marco.amadori@gmail.com>
* Added "--conffile", "--preseed", "--clone", and "--rootfs" options.
2006-06-12 Daniel Baumann <daniel.baumann@panthera-systems.net>
* Added new splash.rle.
* Added memtest86+.
* Added "--distribution", and "--section" options.
* Moved /etc/default/make-live to /etc/make-live.conf.
2006-06-11 Marco Amadori <marco.amadori@gmail.com>
* Added handling of md5sums.
2006-06-09 Marco Amadori <marco.amadori@gmail.com>
* Added splashy support.
* Added ext2 rootfs support.
* Added external hook and path support.
* Swiched to getopt.
2006-06-02 Daniel Baumann <daniel.baumann@panthera-systems.net>
* Added patch from Jason D. Clinton <me@jasonclinton.com>:
- Added netboot flavour.
- Thanks to SafeDesk Solutions <http://www.safedesk.com/>.
2006-06-01 Daniel Baumann <daniel.baumann@panthera-systems.net>
* Moved syslinux inside the chroot.
2006-05-31 Daniel Baumann <daniel.baumann@panthera-systems.net>
* Added kde-*i18n and standard-i18n lists.
2006-05-28 Daniel Baumann <daniel.baumann@panthera-systems.net>
* Added patch from Frederic Lehobey <Frederic.Lehobey@free.fr>:
- Added locales to LIVE_PACKAGES.
- Added LIVE_MIRROR_KEY, LIVE_REPOSITORY, LIVE_REPOSITORY_KEY, and
LIVE_BOOTAPPEND.
2006-05-27 Daniel Baumann <daniel.baumann@panthera-systems.net>
* Initial release.

View File

@ -1,182 +0,0 @@
commit 1f4cf146edbd72a2d61ac2e60324d392569c9f24
Author: Daniel Baumann <daniel@debian.org>
Date: Wed Oct 14 13:35:25 2009 +0200
Updating vcs fields.
commit d1ab019de29691407e3bde1af2ff5efe9a284380
Author: Richard Nelson <unixabg@gmail.com>
Date: Wed May 27 09:42:55 2009 -0500
Update quoting on variables for safety.
commit 601b25634d291706fc477342b712554a54c42016
Author: Richard Nelson <unixabg@gmail.com>
Date: Sat Mar 14 22:19:41 2009 -0500
update copyright years
commit fed4e5adfd49b339bec16b0338b73f9f90ca40ce
Author: Richard Nelson <unixabg@gmail.com>
Date: Sat Mar 14 21:47:27 2009 -0500
Set lenny as defualt build
commit 083a14f46cc1298b33908991dea145cf4ec7415d
Author: Richard Nelson <unixabg@gmail.com>
Date: Sun Nov 30 16:41:15 2008 -0600
Bug fix on usb-hdd builds.
commit 7742576d3a9b84807c6456007ad3bc0147ca3024
Author: Richard Nelson <unixabg@gmail.com>
Date: Thu Nov 27 22:44:51 2008 -0600
Remove -x flag left on cron during debug operations.
commit 6817dca69fd0c53578c1e14c9c5333d5be94419d
Author: Richard Nelson <unixabg@gmail.com>
Date: Thu Nov 27 22:42:58 2008 -0600
Update to start using more live-helper functions.
commit 649fc3a0fac8eae1b8a239a9ba250e89f4b89dfd
Author: Richard Nelson <unixabg@gmail.com>
Date: Wed Nov 26 22:13:57 2008 -0600
Update Copyright (C) to 2007-2008
commit 5449c921111b2f300006cc41d7b6582270959a82
Author: Daniel Baumann <daniel@debian.org>
Date: Fri Nov 7 18:08:01 2008 +0100
Replacing obsolete dh_clean -k with dh_prep.
commit cd7a4a353ae652a45057da5726467e23401be52d
Author: Richard Nelson <unixabg@gmail.com>
Date: Tue Nov 4 18:40:06 2008 -0600
Bug fix on custom bootstrap and custom binary.
commit fc227fc32f06ba8e5af8c9ebdcd147f98790b6ea
Author: Richard Nelson <unixabg@gmail.com>
Date: Thu Oct 2 17:24:37 2008 -0500
Bug fix in netboot server and path.
commit 446a99439bfee38c89615e1e24bb4729b2223e9e
Author: Richard Nelson <unixabg@gmail.com>
Date: Mon Sep 8 21:39:37 2008 -0500
Include common functions from live-helper for code reuse.
commit 359e51591318966e97128b00bff38c62d07c6827
Author: Richard Nelson <unixabg@gmail.com>
Date: Mon Sep 8 21:35:52 2008 -0500
Added test for unmounting devpts-live.
commit 3fdcc59654986d57f014b6c6721b2a3abde2f722
Author: Richard Nelson <unixabg@gmail.com>
Date: Mon Sep 8 21:29:41 2008 -0500
Local variable prefix with _ on VAR i.e. _VAR
commit 4bbf10e31754f290d3aa0e158a45d09316487544
Author: Richard Nelson <unixabg@gmail.com>
Date: Mon Sep 8 16:12:22 2008 -0500
Local variable LH_ removal/cleanup.
commit 472a6a0825656fbc16f4df6cb19bb16e1df8605f
Author: Richard Nelson <unixabg@gmail.com>
Date: Mon Sep 8 16:02:36 2008 -0500
Minor local variable confusion for LH_ prefix cleanup.
commit df23442fca1c727dd43ca1ea464b277e3617cb0f
Author: Richard Nelson <unixabg@gmail.com>
Date: Mon Sep 8 15:59:08 2008 -0500
Upgrade variables to have the LH_ prefix for LH_* variable, to work with the current live-helper version.
commit f00e0cb212e0c84268e099ca35ca386982e4d82b
Author: Daniel Baumann <daniel@debian.org>
Date: Sun Sep 7 21:57:51 2008 +0200
Removing currently unused Upstream-Depends field in control.
commit 4c85494fa2907a54dd99eaf17816a4d403ddb5bc
Author: Daniel Baumann <daniel@debian.org>
Date: Sun Sep 7 21:57:41 2008 +0200
Updating vcs fields in control file.
commit eaf87ebd9f828740430cc60d3e9f201d88c67c25
Author: Daniel Baumann <daniel@debian.org>
Date: Thu Aug 28 23:40:35 2008 +0200
Setting project email address to the new debian-live@lists.debian.org.
commit 6fbca8e14be271dc62988d5555bba9f453ddbaa7
Author: Daniel Baumann <daniel@debian.org>
Date: Wed Apr 23 18:50:17 2008 +0200
Updating Richards email address.
commit 25e1e7bc4f6a095aaf248a80aeaa3795f4a3e3a9
Author: Daniel Baumann <daniel@debian.org>
Date: Tue Oct 30 11:04:42 2007 +0100
Correcting vcs fields.
commit c49d9ff77bd5be73d5367fd567a9e39fccf78410
Author: Daniel Baumann <daniel@debian.org>
Date: Wed Oct 3 09:11:29 2007 +0200
Fixing wrong homepage field.
commit 8e01ba16a737d04a0367ecf1d4f3d7f80437fe97
Author: Daniel Baumann <daniel@debian.org>
Date: Sun Sep 23 16:04:04 2007 +0200
Using new Homepage field now.
commit 49ca83a4d57051b2b4b4b950178063c6df25e222
Author: Daniel Baumann <daniel@debian.org>
Date: Sun Sep 23 16:04:04 2007 +0200
Adding Upstream-Depends field.
commit 39a9d3e82c71451734f0d4ddb630b67c9d55541a
Author: Daniel Baumann <daniel@debian.org>
Date: Sun Sep 23 16:04:04 2007 +0200
Moving from svn to git.
commit 7e823babbe815bdf520becbfd6f4ccec814aa7e2
Author: Daniel Baumann <daniel@debian.org>
Date: Sun Sep 23 16:04:03 2007 +0200
Removing not uploaded versions.
commit 46e8777246485a15fc6d5a202a361662f4e724b5
Author: Daniel Baumann <daniel@debian.org>
Date: Sun Sep 23 16:03:52 2007 +0200
Adding live-webhelper trunk 20070911.
2007-07-19 Daniel Baumann <daniel@debian.org>
* Introducing build modes.
2007-07-14 Daniel Baumann <daniel@debian.org>
* scripts/cgi:
- Quick fix in EMAIL.
2007-06-04 Daniel Baumann <daniel@debian.org>
* templates/form.html:
- Set default source image to 'generic'.
* Starting live-webhelper.

View File

@ -1,3 +1,5 @@
#!/bin/sh
lb build noauto "${@}" 2>&1 | tee binary.log
set -e
lb build noauto "${@}" 2>&1 | tee build.log

View File

@ -1,5 +1,8 @@
#!/bin/sh
set -e
lb clean noauto "${@}"
rm -f config/binary config/bootstrap config/chroot config/common config/source
rm -f binary.log
rm -f build.log

View File

@ -1,5 +1,6 @@
#!/bin/sh
set -e
lb config noauto \
--packages-lists "standard" \
"${@}"

31
examples/gitignore Normal file
View File

@ -0,0 +1,31 @@
binary/
binary*.iso
binary*.img
binary*.tar*
binary*.contents
binary*.packages
binary*.zsync
.build/
build.log
cache/
chroot/
chroot.packages.*
config/binary
config/bootstrap
config/chroot
config/common
config/source
config/control
source/
source*.iso
source*.img
source*.tar*
source*.contents
source*.packages
source*.zsync

View File

@ -1,34 +0,0 @@
#!/bin/sh
# This is an binary hook for live-build(7) to overwrite the banner
# in the graphical Debian Installer.
# To enable it, copy or symlink this hook into your config/binary_local-hooks
# directory and add a replacement banner.png at:
#
# config/binary_debian-installer/banner.png
#
# The file should be a PNG image of dimensions 800 x 75.
set -e
if [ -e config/binary_debian-installer/banner.png ]
then
TARGET_INITRD="binary/install/gtk/initrd.gz"
REPACK_TMPDIR="binary.initrd"
if [ -e "${TARGET_INITRD}" ]
then
# cpio does not have a "extract to directory", so we must change
# directory
mkdir -p ${REPACK_TMPDIR}
cd ${REPACK_TMPDIR}
gzip -d < ../${TARGET_INITRD} | cpio -i --make-directories --no-absolute-filenames
# Overwrite banner
cp ../config/binary_debian-installer/banner.png ./usr/share/graphics/logo_debian.png
find | cpio -H newc -o | gzip -9 > ../${TARGET_INITRD}
cd ..
rm -rf ${REPACK_TMPDIR}
fi
fi

View File

@ -1,24 +0,0 @@
#!/bin/sh
# This is a hook for live-build(7) to install live-build and its config into
# the binary image.
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
DIRECTORY="binary/tools/live"
mkdir -p "${DIRECTORY}"
cp -a config "${DIRECTORY}"
if [ -e live-build ]
then
cp -a live-build "${DIRECTORY}"
else
mkdir -p "${DIRECTORY}"/live-build/bin
cp -a /usr/bin/lh* "${DIRECTORY}"/live-build/bin
cp -a /usr/share/live/build "${DIRECTORY}"/live-build/share
cp -a /usr/share/doc/live-build "${DIRECTORY}"/live-build/doc
fi

View File

@ -1,16 +0,0 @@
#!/bin/sh
# This is a hook for live-build(7) to enable automaunting with hal for block devices.
#
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
# Remove automount disabling
rm -f /usr/share/hal/fdi/policy/10osvendor/debian-storage-policy-fixed-drives.fdi
# Use ntfs-3g by default to mount ntfs partitions
if [ -x /usr/bin/ntfs-3g ]
then
rm -f /sbin/mount.ntfs
ln -s /usr/bin/ntfs-3g /sbin/mount.ntfs
fi

View File

@ -1,10 +0,0 @@
#!/bin/sh
# This is a hook for live-build(7) to remove any kernel except the newest one.
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
for VERSION in $(basename $(ls /boot/vmlinuz-* | head -n-1) | sed -e 's|^vmlinuz-||g')
do
echo apt-get remove --purge linux-image-${VERSION}
done

View File

@ -1,15 +0,0 @@
#!/bin/sh
# This is a hook for live-build(7) to add entries to /etc/modules.
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
MODULES=""
for MODULE in ${MODULES}
do
if ! grep -qs /etc/modules ${MODULE}
then
echo ${MODULE} >> /etc/modules
fi
done

View File

@ -1,22 +0,0 @@
#!/bin/sh
# This is a hook for live-build(7) to install localepurge.
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
#
cat > /tmp/localepurge.preseed << EOF
localepurge localepurge/nopurge multiselect en
#localepurge localepurge/mandelete boolean true
#localepurge localepurge/dontbothernew boolean false
localepurge localepurge/showfreedspace boolean false
#localepurge localepurge/quickndirtycalc boolean true
#localepurge localepurge/verbose boolean false
EOF
debconf-set-selections < /tmp/localepurge.preseed
rm -f /tmp/localepurge.preseed
apt-get install --yes localepurge
dpkg-reconfigure localepurge
localepurge

View File

@ -1,495 +0,0 @@
#!/bin/sh
# This hook was based and adapted from:
# http://lists.debian.org/debian-live/2009/04/msg00186.html
# ---------------------------------------------------------
#
#
# NOTE 1: this was not tested with persistent boot option,
# but it seems logic that persistent and lukshome can't
# coexist as boot options (because of snapshots and others), so lukshome
# won't be executed if any persistent option is given on boot.
#
# NOTE 2: if using an USB key, it will eventualy end up failing someday.
# You should backup the encrypted disk image file itself (luks-home.img) to
# prevent loosing your data.
#
# This hook will create 3 files:
#
# /usr/local/sbin/create-lukshome-file.sh
# script to create an disk file image (luks-home.img) with a
# LUKS encrypted ext2 filesystem inside to be placed in a
# partition labeled lukshome.
#
# /usr/local/sbin/lukshome.sh
# detects a partition with lukshome label, updates fstab and crypttab so
# the encrypted file is mounted later in a loopback device (/dev/loopX).
# It also changes /etc/init.d/umountfs so the encrypted home is correctly
# umounted.
#
# /usr/share/initramfs-tools/scripts/live-bottom/13live_luks_home
# a live-boot hook to execute lukshome.sh script
# in initrd.
#
#
# HOWTO lukshome
# --------------
#
# First build your live system with this hook inside config/chroot_local-hooks/.
# If you have an existing live-build build directory with a previous live
# build, you might have to run
#
# lh_clean
# lh_clean --stage
#
# to make sure this hook is included in the live system. Then (re)build your
# live system.
#
# lh_build
#
# After booting your (re)built live system, setup the encrypted losetup
# filesystem to be used as /home using the instructions present in the
# create-lukshome-file.sh script.
#
# Reboot and now use the "lukshome" boot option to mount the encrypted /home,
# like when using "persistent" boot option with a home-rw file in some partition.
#
# install needed packages (in case apt recommends are off)
# make sure that cryptsetup is installed
echo "I: checking for cryptsetup."
if [ ! -x /sbin/cryptsetup ]
then
echo "I: installing cryptsetup."
DEBIAN_FRONTEND="dialog" apt-get install --yes --force-yes -y cryptsetup
fi
echo "I: to see how to use lukshome hook run create-lukshome-file.sh as root."
echo "I: creating script /usr/local/sbin/create-lukshome-file.sh"
cat > /usr/local/sbin/create-lukshome-file.sh << 'EOF'
#!/bin/sh
# This script will create an encrypted filesystem in a file to
# be used as /home in a live system built with Debian Live Helper with
# this hook in config/chroot_local-hooks/.
#
# The lukshome boot option will do the following:
# - search for a partition with label 'lukshome'
# (btw, you can't use the live system partition itself)
# - mount the partition as /luks-home in the live system
# - open /luks-home/luks-home.img file as a loopback device (/dev/loop)
# - open the loopback device with cryptsetup
# - mount the encrypted filesystem as /home
#
# This script will only create the luks-home.img file. Next are details of how
# to use this script.
#
# CAUTION! THIS CAN WIPE YOUR DATA, backup first!
# Be sure to understand what you will do, or you can end up
# wiping disks or partitions you don't want to!
#
# Login as root:
# $ sudo -i
#
# Create a mountpoint (don't use /mnt, it will be used by this script):
# # mkdir /media/target
#
# !!! *** Skip the next line if you don't want to wipe a partition *** !!!
# !!! * Just change the partition label to 'lukshome' (without quotes) * !!!
# Create an ext2 filesystem in a partition with 'lukshome' label:
# # mkfs.ext2 -L lukshome /dev/the_partition_to_be_used
#
# Mount the partition and cd into it:
# # mount /dev/the_partition_to_be_used /media/target
# # cd /media/target
#
# Create the encrypted file:
# # create-lukshome-file.sh
#
# The script is located in /usr/local/sbin/, so it's in root $PATH.
# It will copy the directories in /home/* into the file.
# Now return to $HOME to be able to umount the target partition:
# # cd
#
# Umount the target partition:
# # umount /media/target
#
# Reboot and use the "lukshome" boot option to mount the encrypted /home,
# like in using "persistent" boot option with a home-rw file in some partition.
#
# To use another partition label use the following boot options:
# lukshome lukspart=partition_label
#
# If you want to use another filename instead of luks-home.img, rename (mv)
# the file and use the following boot options:
# lukshome luksfile=filename
#
# Both boot options can be used at the same time, but always with lukshome:
# lukshome lukspart=partition_label luksfile=filename
#
# By default, if just the lukshome boot option is used, the script will
# search for a partition labeled 'lukshome' and a file named 'luks-home.img'.
#
# Press Shift-PgUp/Shift-PgDn to scrool the instructions on the screen.
# check if root/sudo
if [ "${USER}" != "root" ]
then
echo " ** Please run this script as root or with sudo."
exit 1
fi
# check if /mnt is available and empty
mount | grep "/mnt" > /dev/null
MNT_IS_MOUNTED=${?}
if [ "${MNT_IS_MOUNTED}" == 0 ]
then
echo "** ERROR: /mnt is mounted at the moment. Please umount it to use this script."
exit 1
fi
if [ "$(ls -A /mnt)" ]
then
echo "** ERROR: /mnt is not empty. An empty /mnt is needed to use this script."
exit 1
fi
# check if /dev/mapper/luks-home is available
if [ -f /dev/mapper/luks-home ]
then
echo "** ERROR: /dev/mapper/luks-home is being used at the moment. Please run «cryptsetup remove luks-home» to use this script."
exit 1
fi
# show instructions
echo ""
echo "** Instructions to use create-lukshome-file.sh (this script):"
sed -n '2,64p' /usr/local/sbin/create-lukshome-file.sh | sed 's/^.//'
echo ""
# proceed?
echo "** Do you want to proceed with this script? (y/N)"
read CONFIRM
case "${CONFIRM}" in
y*|Y*)
echo ""
;;
*)
exit 0
;;
esac
# create file
echo ""
echo "** Please type the size of the file disk image."
echo "Size of the file in MB: "
read FILE_SIZE
echo ""
echo "** Creating file luks-home.img."
echo "** Filling file image with /dev/urandom output. It will take some time."
echo "(Edit this script to use /dev/random. It's known to be more secure but "
echo "it will take a *very* long time to complete."
dd if=/dev/urandom of=luks-home.img bs=1M count=${FILE_SIZE}
# To use /dev/random comment the line above and uncomment the next line
#dd if=/dev/random of=luks-home.img ibs=128 obs=128 count=$((8192*${FILE_SIZE}))
# You might have to increase kernel entropy by moving the mouse, typing keyboard,
# make the computer read the disk or use network connections.
echo "** Done."
echo ""
# losetup
FREE_LOSETUP=$(losetup -f)
echo "** Using ${FREE_LOSETUP} to open luks-home.img"
losetup ${FREE_LOSETUP} ./luks-home.img
echo "** Done."
echo ""
# cryptsetup
echo "** Running cryptsetup."
echo ""
echo "** luksFormat"
cryptsetup luksFormat ${FREE_LOSETUP}
EXIT_CODE=${?}
if [ "${EXIT_CODE}" != 0 ]
then
echo "** ERROR: Error while trying to format disk file image."
losetup -d ${FREE_LOSETUP}
exit 1
fi
echo ""
echo "** luksOpen"
cryptsetup luksOpen ${FREE_LOSETUP} luks-home
EXIT_CODE=${?}
if [ "${EXIT_CODE}" != 0 ]
then
echo "** ERROR: Error while trying to open LUKS file image."
losetup -d ${FREE_LOSETUP}
exit 1
fi
echo ""
# format encrypted filesystem
echo "** Now formating /dev/mapper/luks-home"
mkfs.ext2 /dev/mapper/luks-home
EXIT_CODE=${?}
if [ "${EXIT_CODE}" != 0 ]
then
echo "** ERROR: Error while trying to format LUKS file."
cryptsetup remove luks-home
losetup -d ${FREE_LOSETUP}
exit 1
fi
echo ""
# mount in /mnt
echo "** Now mounting luks-home.img in /mnt"
mount /dev/mapper/luks-home /mnt
EXIT_CODE=${?}
if [ "${EXIT_CODE}" != 0 ]
then
echo "** ERROR: Error while trying to mount LUKS file in /mnt."
umount /mnt
cryptsetup remove luks-home
losetup -d ${FREE_LOSETUP}
exit 1
fi
echo ""
# copy files
HOME_DIR="/home/*"
echo "** Copying ${HOME_DIR}."
cp -rav ${HOME_DIR} /mnt
EXIT_CODE=${?}
if [ "${EXIT_CODE}" != 0 ]
then
echo "** ERROR: Error while trying to copy files to /mnt."
umount /mnt
cryptsetup remove luks-home
losetup -d ${FREE_LOSETUP}
exit 1
fi
echo "** Done."
echo ""
echo "** All done."
echo "** Closing losetup, cryptsetup and mounted /mnt."
# umount and close
umount /mnt
cryptsetup remove luks-home
losetup -d ${FREE_LOSETUP}
echo "** The disk file image luks-home.img is done and ready. Move it into a partition"
echo "** with 'lukshome' as label and reboot with lukshome boot option to use it."
echo ""
EOF
chmod 0755 /usr/local/sbin/create-lukshome-file.sh
echo "I: creating script /usr/local/sbin/lukshome.sh"
cat > /usr/local/sbin/lukshome.sh << 'EOF'
#!/bin/sh
# this script is to be executed by a hook in live-boot. It searches
# for a partition with 'lukshome' label, mounts it as /luks-home, then opens an
# encrypted disk image file called luks-home.img as a loopback device, opens it
# with cryptsetup and finally mounts the present filesystem as /home.
# It also changes /etc/init.d/umountfs to umount the lukshome partition
# (/luks-home) and clear the loopback device on shutdown.
# functions taken from live-helpers
. /usr/share/initramfs-tools/scripts/live-helpers
# set default values
LUKSPART="lukshome"
LUKSFILE="luks-home.img"
# get boot option lukshome - adapted from live-helpers
for ARGUMENT in $(cat /proc/cmdline)
do
case "${ARGUMENT}" in
lukshome)
LUKSHOME=1
;;
luksfile=*)
LUKSFILE="${ARGUMENT#luksfile=}"
LUKSHOME=1
;;
lukspart=*)
LUKSPART="${ARGUMENT#lukspart=}"
LUKSHOME=1
;;
esac
done
CRYPTHOME=$(/sbin/blkid -L ${LUKSPART})
# if no partition found, exit
if [ -z "${CRYPTHOME}" ]
then
echo "Could not find any partition with ${LUKSPART} label. "
echo "Proceeding with no encrypted /home."
exit 0
fi
# mount partition where file container is
echo "Mounting /luks-home with ${CRYPTHOME}."
mkdir -p /luks-home
mount -t $(get_fstype "${CRYPTHOME}") "${CRYPTHOME}" /luks-home
# mount losetup encrypted file
FREE_LOOP="$(/sbin/losetup -f)"
echo "Opening file /luks-home/${LUKSFILE} in ${FREE_LOOP}."
if [ -f /luks-home/"${LUKSFILE}" ]
then
/sbin/losetup ${FREE_LOOP} /luks-home/"${LUKSFILE}"
echo "Adding ${FREE_LOOP} home to /etc/crypttab and setting it as /home in /etc/fstab."
# update crypttab
echo "home ${FREE_LOOP} none luks,check,timeout" >> /etc/crypttab
# update fstab
echo "/dev/mapper/home /home ext2 defaults,noatime 0 0" >> /etc/fstab
else
echo "Did not found any file named ${LUKSFILE} in ${CRYPTHOME}!"
echo "Proceeding with no encrypted /home."
sleep 2
umount -r /luks-home
exit 0
fi
# changes to /etc/init.d/umountfs to make /luks-home being umounted on shutdown
sed -i 's/[\t]do_stop/CHANGE_HERE/' /etc/init.d/umountfs
sed -i 's|CHANGE_HERE| \
# added by lukshome hook - umount \/luks-home to prevent busy device on shutdown \
LOOP_LUKSHOME=$(losetup -a \| grep luks-home \|cut -c 1-10) \
if [ -n ${LOOP_LUKSHOME} ] \
then \
umount -r -d \/home \
cryptsetup remove home \
losetup -d ${LOOP_LUKSHOME} \
umount -r \/luks-home \
fi \
\
do_stop \
|' /etc/init.d/umountfs
EOF
chmod 0755 /usr/local/sbin/lukshome.sh
# scripts/live-bottom/13live_luks_home, right after 12fstab
echo "I: creating /usr/share/initramfs-tools/scripts/live-bottom/13live_luks_home"
cat > /usr/share/initramfs-tools/scripts/live-bottom/13live_luks_home << 'EOF'
#!/bin/sh
#set -e
# initramfs-tools header
PREREQ=""
prereqs()
{
echo "${PREREQ}"
}
case "${1}" in
prereqs)
prereqs
exit 0
;;
esac
. /scripts/live-functions
# live-boot hook to use an disk image file with encrypted filesystem as /home.
log_begin_msg "Executing losetup-lukshome"
# get boot option lukshome - adapted from live-helpers
for ARGUMENT in $(cat /proc/cmdline)
do
case "${ARGUMENT}" in
lukshome)
LUKSHOME=1
;;
luksfile=*)
LUKSFILE="${ARGUMENT#luksfile=}"
LUKSHOME=1
;;
lukspart=*)
LUKSPART="${ARGUMENT#lukspart=}"
LUKSHOME=1
;;
esac
done
# don't use persistent* and lukshome
if [ -n "${PERSISTENT}" ] && [ -n "${LUKSHOME}" ]
then
echo "You should not use persistent and lukshome at the same time."
echo "Skipping lukshome. Persistent medium, if any, will be used instead."
log_end_msg
exit 0
fi
# if no lukshome boot option, exit
if [ -z "${LUKSHOME}" ]
then
log_end_msg
exit 0
fi
log_begin_msg "Executing lukshome.sh script."
mount -o bind /sys /root/sys
mount -o bind /proc /root/proc
mount -o bind /dev /root/dev
# lukshome.sh detects lukshome partition and file location, mounts it
# and opens the file and then updates fstab and crypttab to use it as /home.
chroot /root /usr/local/sbin/lukshome.sh
umount /root/sys
umount /root/proc
umount /root/dev
# delete the lukshome.sh script, not needed anymore
# rm -f /root/usr/local/sbin/lukshome.sh
log_end_msg
EOF
chmod 0755 /usr/share/initramfs-tools/scripts/live-bottom/13live_luks_home
echo "I: update-initramfs to include 13live_luks_home."
# if you already have installed the update-initramfs.sh hook, you can remove
# this.
for KERNEL in /boot/vmlinuz-*
do
VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
update-initramfs -k ${VERSION} -t -u
done

View File

@ -1,19 +0,0 @@
#!/bin/sh
# This is a hook for live-build(7) to install ralink rt2570 drivers
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
apt-get install --yes build-essential
which module-assistant || apt-get install --yes module-assistant
module-assistant update
for KERNEL in /boot/vmlinuz-*
do
VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
module-assistant --non-inter --quiet auto-install rt2570-source -l ${VERSION}
done
module-assistant clean rt2570-source

View File

@ -1,31 +0,0 @@
#!/bin/sh
# This is a hook for live-build(7) to install sun-java.
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
#
# Note: This hook requires packages from the non-free category. Make sure you
# enabled it in your configuration.
# live-build sets DEBIAN_FRONTEND to 'noninteractive' to advise debconf to not
# ask any questions while installing packages. Suns redistribution terms for
# Java do not allow this, therefore we need to overwrite DEBIAN_FRONTEND for
# this apt-get call only.
# In case you do accept the license terms, you can also preseed the values
# for a complete non-interactive build, by uncommenting the following three lines:
#echo "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true" > /root/preseed
#debconf-set-selections < /root/preseed
#rm -f /root/preseed
DEBIAN_FRONTEND="dialog" apt-get install --yes sun-java6-bin sun-java6-demo \
sun-java6-doc sun-java6-fonts sun-java6-jdk sun-java6-jre \
sun-java6-plugin sun-java6-source
# Ensure that /tmp has the right permissions; apparently sun-java5-doc tampers
# with it
chmod 1777 /tmp
# Set sun-java as default java
update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java

View File

@ -1,22 +0,0 @@
#!/bin/sh
# This is a hook for live-build(7) to install localepurge.
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
#
_PURGE=""
if [ ! -x "$(which symlinks 2>/dev/null)" ]
then
_PURGE="true"
apt-get install symlinks
fi
symlinks -c -r -s /
if [ "${_PURGE}" = "true" ]
then
apt-get remove --purge symlinks
fi

View File

@ -1,17 +0,0 @@
#!/bin/sh
# Disable all
for _FILE in /etc/init.d/*
do
update-rc.d -f $(basename ${_FILE}) remove
done
# Re-enable all required (taken from -f standard chroot)
for _PACKAGE in live-boot live-config console-common cron dpkg ifupdown initscripts kbd klogd libc6 libdevmapper1.02 libselinux1 libsepol1 login makedev module-init-tools netbase openbsd-inetd procps sudo sysklogd udev util-linux
do
if [ -f /var/lib/dpkg/info/${_PACKAGE}.postinst ]
then
# Re-configure if existing
/var/lib/dpkg/info/${_PACKAGE}.postinst configure
fi
done

View File

@ -1,8 +0,0 @@
#!/bin/sh
# This is a hook for live-build(7) to remove udev persistent device generator
# rules.
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
rm -f /etc/udev/rules.d/*persistent-net-generator.rules

View File

@ -1,15 +0,0 @@
#!/bin/sh
# This is a hook for live-build(7) to rebuild the initramfs image.
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
#
# Note: You only want to use this hook if you have modified any initramfs-script
# during the build and need to refresh the initrd.img for that purpose.
for KERNEL in /boot/vmlinuz-*
do
VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
update-initramfs -k ${VERSION} -t -u
done

View File

@ -1,8 +0,0 @@
#!/bin/sh
# This is a hook for live-build(7) to enable virtualbox-ose module.
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
# Enabling loading of vboxdrv
sed -i -e 's|^LOAD_VBOXDRV_MODULE=.*$|LOAD_VBOXDRV_MODULE=1|' /etc/default/virtualbox-ose

View File

@ -1,9 +1,10 @@
#!/bin/sh
## live-build(7) - System Build Scripts
## Copyright (C) 2006-2011 Daniel Baumann <daniel@debian.org>
## Copyright (C) 2016-2020 The Debian Live team
## Copyright (C) 2006-2015 Daniel Baumann <mail@daniel-baumann.ch>
##
## live-build comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.

View File

@ -0,0 +1,63 @@
#!/bin/sh
set -e
# util-linux creates random UUIDs when uuid_generate_random is called
# Use LD_PRELOAD to replace uuid_generate_random with a less random version
# Don't run if gcc is not installed
if [ ! -e /usr/bin/cc ];
then
exit 0
fi
cat > unrandomize_uuid_generate_random.c << END_OF_SOURCE
#include <stdlib.h>
#include <stdio.h>
#define SEQUENCE_FILENAME "/var/cache/unrandomize_uuid_generate_random.sequence_number"
/* https://tools.ietf.org/html/rfc4122 */
typedef unsigned char uuid_t[16];
/* Our pseudo-random version */
void uuid_generate_random(uuid_t out)
{
/* Nil UUID */
for (int i=0;i<16;i++) {
out[i] = 0x00;
}
out[6]=0x40; /* UUID version 4 means randomly generated */
out[8]=0x80; /* bit7=1,bit6=0 */
/* The file doesn't need to exist yet */
FILE *f = fopen(SEQUENCE_FILENAME, "rb");
if (f) {
fread(out+12, 4, 1, f);
fclose(f);
}
/* Use the next number. Endianness is not important */
(*(unsigned long*)(out+12))++;
unsigned long long epoch;
/* Use SOURCE_DATE_EPOCH when provided */
char *date = getenv("SOURCE_DATE_EPOCH");
if (date) {
epoch = strtoll(date, NULL, 10);
} else {
epoch = 0ll;
}
out[0] = (epoch & 0xFF000000) >> 24;
out[1] = (epoch & 0x00FF0000) >> 16;
out[2] = (epoch & 0x0000FF00) >> 8;
out[3] = (epoch & 0x000000FF);
/* Write the sequence number */
f = fopen(SEQUENCE_FILENAME, "wb");
if (f) {
fwrite(out+12, 4, 1, f);
fclose(f);
}
}
END_OF_SOURCE
/usr/bin/cc -shared -fPIC unrandomize_uuid_generate_random.c -Wall --pedantic -o /usr/lib/unrandomize_uuid_generate_random.so
rm -f unrandomize_uuid_generate_random.c

View File

@ -0,0 +1,31 @@
#!/bin/sh
set -e
# fontconfig creates non-reproducible files with UUIDs
# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864082
#
# Because the UUIDs should not be deleted, the proposed work-around is:
# * Use LD_PRELOAD to replace uuid_generate_random with a less random version
# Don't run if fontconfig is not installed
if [ ! -e /usr/bin/fc-cache ];
then
exit 0
fi
# Don't run if fontconfig is sufficiently new
if dpkg --compare-versions $(dpkg-query --show --showformat '${Version}\n' fontconfig | head -1) ge 2.13.1-4.4~;
then
exit 0
fi
# Don't run if the LD_PRELOAD module is not compiled
if [ ! -e /usr/lib/unrandomize_uuid_generate_random.so ];
then
echo "P: $(basename $0) Reproducible hook inactive: The UUID module was not found"
exit 0
fi
LD_PRELOAD=/usr/lib/unrandomize_uuid_generate_random.so /usr/bin/fc-cache --force --really-force --system-only --verbose
echo "P: $(basename $0) Reproducible hook has been applied"

View File

@ -0,0 +1,21 @@
#!/bin/sh
set -e
# mkconf of mdadm creates a file with a timestamp
# A bug report with patch is available at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982607
# This script duplicates that patch
# Don't run if mdadm is not installed
if [ ! -e /usr/share/mdadm/mkconf ];
then
exit 0
fi
# If mkconf already contains references to SOURCE_DATE_EPOCH, there is no need to patch the file
if grep -q SOURCE_DATE_EPOCH /usr/share/mdadm/mkconf;
then
exit 0
fi
sed -i -e '/# This configuration was auto-generated on/cif [ -z $SOURCE_DATE_EPOCH ]; then\n echo "# This configuration was auto-generated on $(date -R) by mkconf"\nelse\n echo "# This configuration was auto-generated on $(date -R --utc -d@$SOURCE_DATE_EPOCH) by mkconf"\nfi' /usr/share/mdadm/mkconf
echo "P: $(basename $0) Reproducible hook has been applied"

Some files were not shown because too many files have changed in this diff Show More