Commit Graph

4138 Commits

Author SHA1 Message Date
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