1
0
mirror of https://github.com/lxc/lxc-templates.git synced 2024-12-22 22:40:16 +00:00
Commit Graph

22 Commits

Author SHA1 Message Date
Gregory Duchatelet
0499ea96bf Fix Debian mirror use, bug introduced by latest commits
Signed-off-by: Gregory Duchatelet <gregory.duchatelet@infomaniak.com>
2023-11-16 11:49:48 +01:00
Antonio Terceiro
480aee9aa2 lxc-debian: improve detection of official architectures
An official architecture is not always available in testing. New
architectures get added to unstable first, and only some time after that
they *may* get added to testing as well. This is just now happening with
riscv64, and checking whether it's available in testing will *not* give
the correct answer for the question "is this an official Debian
architecture?".

Also, since debian-ports only contain unstable, just refuse to use
debian-ports if not creating an unstable/sid container.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
2023-08-22 11:15:24 -03:00
Kevin Locke
a37d6d40f6 lxc-debian: fix getopt parsing of --mirror
When the --keyring option was added, the `,` between `mirror:` and
`keyring:` was omitted in the long option string passed to `getopt`.
This causes `--mirror` to be parsed as `--mirror:keyring`, matching
`*) break ;;` and prematurely terminating option parsing.  To avoid
this, add the missing `,`.  Also order `keyring:` before `mirror:` to
preserve lexical ordering of long options.

Fixes: eebcd76feb ("lxc-debian: allow using a custom keyring")
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2023-03-22 15:45:26 -06:00
Antonio Terceiro
56a2d30c41 lxc-debian: avoid installing unauthenticated packages
--force-yes is deprecated, and is a shortcut for
--allow-unauthenticated, --allow-downgrades, --allow-remove-essential,
--allow-change-held-packages. --allow-unauthenticated is the only
likely to be needed here, so instead of allowing unauthenticated
packages, copy any custom keyring used inside the rootfs so any packages
we need to install are properly authenticated. The common case is
debian-ports-archive-keyring.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
2022-04-10 06:39:07 -03:00
Antonio Terceiro
5479240fbd lxc-debian: support unnoficial architectures out of the box
When trying to create containers for unnoficial Debian architectures,
use different defaults for mirror and keyring, install
debian-ports-archive-keyring, and default release to unstable. This way
one can create containers for unnoficial architectures without having to
pass several extra parameters.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
2022-04-10 06:31:35 -03:00
Antonio Terceiro
eebcd76feb lxc-debian: allow using a custom keyring
This makes it possible to create containers for unofficial
architectures such as the ones on ports.debian.org, by specifying a
custom mirror and its associated keyring.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
2022-04-10 06:31:32 -03:00
Matthew Bruzek
4908a5e5fe Changed security distribution to ${release}-security.
Signed-off-by: Matthew Bruzek <mbruzek@gmail.com>
2021-08-20 23:25:40 -05:00
Tanya Degurechaff
8af77c1136 Changed devuan gpg key remote location
Signed-off-by: Tanya <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-09-06 20:15:47 +02:00
Tanya Degurechaff
8678d4f836 Avoid failures if a mirror on https is selected
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-13 18:31:53 +02:00
Tanya Degurechaff
862a6098f0 Handle suite mismatch, don't download packages if update failed
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-13 18:29:08 +02:00
Tanya Degurechaff
92d4e109f1 Reformatting tabs and spaces in a coherent way
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-13 18:29:08 +02:00
Tanya Degurechaff
118c8f4699 Handle languages that are only UTF-8 encoded
Co-authored-by: Pierre-Elliott Bécue <peb@debian.org>
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-07 09:52:41 +02:00
Tanya Degurechaff
f91a618e02 Avoid warning 'stdin not a tty' in some cases
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-07 09:52:41 +02:00
Tanya Degurechaff
c1552e32f2 Fix indentation
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-07 09:52:41 +02:00
Tanya Degurechaff
8911d8ff4b Fix timezone configuration
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-07 09:52:41 +02:00
Tanya Degurechaff
afa18e5a30 Force hostname inclusion in /etc/hosts
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-07 09:52:41 +02:00
Tanya Degurechaff
59e707a5ca Quotation marks makes you think it's a string
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-07 09:52:41 +02:00
Tanya Degurechaff
fc18b362d8 Added DOWNLOAD_KEYRING in usage
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-07 09:52:41 +02:00
Tanya Degurechaff
bd16f6b10c Added proper copyrights to fixes authors
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-07 09:52:41 +02:00
Tanya Degurechaff
52fa9b7360 Improved apt gpg management
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
2020-07-07 09:52:41 +02:00
Anders
ae96852bbb lxc-debian: fix incorrect use of basename instead of dirname
mkdir -p should create the dirname of the interpreter, not its basename.

Signed-off-by: Anders Oleson <anders-code@users.noreply.github.com>
2020-02-09 22:29:08 -08:00
Christian Brauner
711ed73634
initial commit
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-02-21 18:15:08 +01:00