summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_archives
AgeCommit message (Collapse)Author
2020-03-05help/usage: fix overly complex script description handlingjnqnfe
Closes: #952887
2020-03-05archives: fix mount local repo commentsjnqnfe
Closes: #952873
2020-03-05fix indentationLyndon Brown
including: - spaces replaced with tabs for consistency - alignment of `;;` in some case statements changed for consistency Gbp-Dch: Short Closes: #952857
2020-03-05archives: fix deb-src entry exclusionLyndon Brown
the sed commands were missing '-i' to actually modify the file (rather than output to stdout) Gbp-Dch: Short Closes: #952842
2020-03-05archives: add 'pass' param validation checkLyndon Brown
if this had already been in place then it would have caught bug #952837. Gbp-Dch: Short Closes: #952841
2020-03-05archives: fix incorrect usage stringLyndon Brown
Gbp-Dch: Ignore Closes #952839
2020-03-05archives: fix removal of chroot/root/packages.chroot package listjnqnfe
Gbp-Dch: Short Closes: #952838
2019-12-19Add local archive keys before configuring local package repositoryJohn Estabrook
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-19Support --distribution-binary and --distribution-chrootRaphaël Hertzog
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
2018-09-13copy keys to /etc/apt/trusted.gpg.d with appropriate extension for them to ↵Marcel Partap
not be ignored.
2018-06-03Avoid apt-key add and just drop the key in /etc/apt/trusted.gpg.dLuca Boccassi
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-02-23Fix build with local offline mirrorsLuca Boccassi
Commit a15b579652e64 (#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
2016-11-28Drop an optimization in chroot_archives that has undesired side-effectsRaphaël Hertzog
Thanks to jnqnfe for the patch. Closes: #775989
2016-10-28Handle packages.chroot with an explicitly trusted file:// repositorySophie Brun
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>
2015-08-10Updating stat calls to also give the right result in container setups, ↵Daniel Baumann
thanks to Kristian Klausen <klausenbusk@hotmail.com> (Closes: #789300).
2015-05-03Dropping automagics for ubuntu.Daniel Baumann
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-01-04Updating year in copyright notices to 2015.Daniel Baumann
2015-01-04Changing package dependency checks within chroot to work outside as well.Daniel Baumann
2014-12-10Cleaning up from python removal (LIVE_IMAGE_PARENT_ARCHIVE_AREAS).Daniel Baumann
2014-12-10Bind local repository into chroot directory.Jan Blunck
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-10Correcting typo in apt.conf.d directory name, thanks to jnqnfe ↵Daniel Baumann
<jnqnfe@gmail.com> (Closes: #771392).
2014-12-10Cleaning up from python removal (LIVE_IMAGE_ARCHIVE_AREAS).Daniel Baumann
2014-12-10Cleaning up from python removal (LIVE_IMAGE_ARCHITECTURE).Daniel Baumann
2014-11-10Applying patch from Gabriele Gristina <gabriele.gristina@gmail.com> to fix ↵Daniel Baumann
automated checks for using aptitude.
2014-02-08Updating copyright notices for 2014.Daniel Baumann
2013-09-18Selectively remove chroot-only APT configuration and preferences instead of ↵Jan Blunck
wiping everything.
2013-09-18Remove chroot-only configured apt sources in chroot_archives remove.Jan Blunck
If an archive is configured with *.chroot extension remove it when deconfiguring chroot/etc/apt/sources.list.d directory.
2013-07-01Removing some leftovers in chroot_archives from --archives removal.Daniel Baumann
2013-06-25Dropping global archive definitions shipped in ↵Daniel Baumann
/usr/share/live/build/archives (same as with packagelists, hidden archive 'magic' is gone now in favour of explicit config tree configuration).
2013-05-06Dropping dedicated updates (formerly volatile) mirror handling, not needed ↵Daniel Baumann
anymore.
2013-05-06Dropping dedicated backports mirror handling, not needed anymore with the ↵Daniel Baumann
move of backports.d.o into ftp.d.o.
2013-05-06Debranding package for derivatives.Daniel Baumann
2013-05-06Removing all references to my old email address.Daniel Baumann
2013-05-06Harmonize handling of pre-existing gnupg dotfiles in chroot when handling ↵Daniel Baumann
fake signing keys for local repository.
2013-05-06Adding bootrap_archive-keys to establish secure trust-chain on top of ↵Daniel Baumann
debian-keyring for derivatives.
2013-05-06Correcting apt-key cleanup of local dummy signing keys when using local ↵Daniel Baumann
packages, thanks to jhcha54008 <jhcha54008@free.fr>.
2013-05-06Updating year in all copyright notices.Daniel Baumann
2013-05-06Moving off binary image parent archive areas into new config tree format.Daniel Baumann
2013-05-06Moving off binary image archive areas into new config tree format.Daniel Baumann
2013-05-06Moving off binary image architecture into new config tree format.Daniel Baumann
2013-05-06Removing kubuntu mode, it's not different anymore to standard ubuntu mode.Daniel Baumann
2013-05-06Adding support for local apt conf.d snippets in archive definitions (Closes: ↵Daniel Baumann
#685791).
2013-05-06Harmonizing apt configuration handling in chroot_archives.Daniel Baumann
2013-05-06Adding debian version 4.0~a1-1.debian/4.0_a1-1Daniel Baumann
2013-04-09Harmonize handling of pre-existing gnupg dotfiles in chroot when handling ↵Daniel Baumann
fake signing keys for local repository.
2013-02-08Adding bootrap_archive-keys to establish secure trust-chain on top of ↵Daniel Baumann
debian-keyring for derivatives.
2013-01-19Correcting apt-key cleanup of local dummy signing keys when using local ↵Daniel Baumann
packages, thanks to jhcha54008 <jhcha54008@free.fr>.
2013-01-01Updating year in all copyright notices.Daniel Baumann
2012-12-17Removing kubuntu mode, it's not different anymore to standard ubuntu mode.Daniel Baumann
2012-12-04Adding support for local apt conf.d snippets in archive definitions (Closes: ↵Daniel Baumann
#685791).