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

120 Commits

Author SHA1 Message Date
Stéphane Graber
da14466ce0
Merge pull request #68 from kunkku/fix-apk-static
lxc-alpine: Improve integrity checking of static package manager
2024-12-10 10:54:48 -05:00
Kaarle Ritvanen
f78b226009 lxc-alpine: use SHA256 signature if available
to verify apk.static

Signed-off-by: Kaarle Ritvanen <kunkku@alpinelinux.org>
2024-12-10 17:19:27 +02:00
Kaarle Ritvanen
4908667cc3 lxc-alpine: remove unverified apk.static
to prevent its execution on the next run

Signed-off-by: Kaarle Ritvanen <kunkku@alpinelinux.org>
2024-12-10 17:19:27 +02:00
Kaarle Ritvanen
7ff9ef0c48 lxc-alpine: more specific SHA1 sig file match
that avoids matching the SHA256 file

Signed-off-by: Kaarle Ritvanen <kunkku@alpinelinux.org>
2024-12-10 17:19:27 +02:00
Kaarle Ritvanen
7c3b65b0ef lxc-alpine: variable for apk.static path
Signed-off-by: Kaarle Ritvanen <kunkku@alpinelinux.org>
2024-12-10 17:19:27 +02:00
Stéphane Graber
26b4468b26
Merge pull request #66 from zhaixiaojuan/anolis-templates
Add anolis template
2024-03-31 22:24:57 -04:00
zhaixiaojuan
7cba64e4f9 Add anolis template
Signed-off-by: zhaixiaojuan <zhaixiaojuan@loongson.cn>
2024-03-31 22:14:19 -04:00
Stéphane Graber
8181f41024
Merge pull request #65 from zhaixiaojuan/openeuler-template
Add openeuler template
2024-03-20 06:08:56 -04:00
zhaixiaojuan
b29604ab9a Add openeuler template
Signed-off-by: zhaixiaojuan <zhaixiaojuan@loongson.cn>
2024-02-26 11:46:22 +08:00
Stéphane Graber
84b0597a9f
Merge pull request #64 from gibmat/update-debian-releases
Update the list of Debian releases that work out of the box
2024-02-10 04:04:07 +01:00
Mathias Gibbens
0f383bc13b
Update the list of Debian releases that work out of the box
It is still possible to create containers for jessie and stretch, although you
need to manually specify the archive mirror and keyring:

    lxc-create -t debian -n stretch -- -r stretch \
      --mirror=http://archive.debian.org/debian \
      --keyring=/usr/share/keyrings/debian-archive-removed-keys.gpg

While the jessie container starts up, it doesn't automatically get an IP -- I
didn't perform any further investigation. stretch works just fine.

Debian releases wheezy and earlier fail to create the container in various ways.

This commit just changes the presented list of releases; there is some existing
logic for handling archived releases, but I didn't want to risk breaking things
by tinkering with the existing code.

Signed-off-by: Mathias Gibbens <gibmat@debian.org>
2024-02-10 00:07:15 +00:00
Stéphane Graber
690305afab
Merge pull request #63 from elboulangero/kali-debian
Support for non-free-firmware for Kali and Debian
2024-02-01 11:06:28 +01:00
Arnaud Rebillout
8d2cb761ab lxc-debian: Also add non-free-firmware when --enable-non-free
Debian has a non-free-firmware component, starting bookworm, cf.
https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#non-free-split

Signed-off-by: Arnaud Rebillout <arnaudr@kali.org>
2024-02-01 15:55:48 +07:00
Arnaud Rebillout
06268b7ff8 lxc-kali: Also add non-free-firmware when --enable-non-free
Kali Linux just enabled their non-free-firmware component,  cf.
https://www.kali.org/blog/non-free-firmware-transition/

Signed-off-by: Arnaud Rebillout <arnaudr@kali.org>
2024-02-01 15:55:44 +07:00
Arnaud Rebillout
dd044cd9df lxc-kali: Reduce diff with Debian
Another commit, in the spirit of 0862ddf3, that doesn't really change
anything in terms of functionality, but brings the code in lxc-kali.in
closer to the code in lxc-debian.in, making it easier to compare the two
files.

Signed-off-by: Arnaud Rebillout <arnaudr@kali.org>
2024-02-01 15:55:39 +07:00
Stéphane Graber
a0745c836a
Merge pull request #62 from gibmat/fix-alpine-template
Fix alpine template
2024-01-27 17:19:39 +01:00
Stéphane Graber
e2a8bfc5e6
Merge pull request #61 from gibmat/dont-install-empty-dirs
Don't install empty directories
2024-01-27 17:18:45 +01:00
Mathias Gibbens
9c720dd77b
Fix alpine template
On a Debian sid system with lxc 5.0.3 and the latest snapshot of lxc-templates,
attempting to create an alpine container fails with the error "mknod:
dev/console: File exists". This had been reported a while back in Debian
bug #998095 and partially addressed in #46.

I performed some testing of the resulting alpine container, and things appear
to be working correctly.

Signed-off-by: Mathias Gibbens <gibmat@debian.org>
2024-01-27 16:11:20 +00:00
Mathias Gibbens
7bf3e4506b
Don't install empty directories
I think this is leftover from when lxc-templates was split out from lxc.
There's no need to install empty directories /var/cache/lxc/ and
/var/lib/lxc/.

Signed-off-by: Mathias Gibbens <gibmat@debian.org>
2024-01-27 15:19:58 +00:00
Stéphane Graber
74a6743241
Merge pull request #60 from gregorg/fix-debian-mirror
Fix Debian mirror use, bug introduced by latest commits
2023-11-16 18:33:05 -05:00
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
Stéphane Graber
52cd46def4
Merge pull request #58 from terceiro/new-architectures
lxc-debian: improve detection of official architectures
2023-08-22 15:32:17 -04: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
Stéphane Graber
be64958bbe
github: Update for main branch
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-07-24 11:14:26 -04:00
Stéphane Graber
fabdce0e55
Merge pull request #57 from classabbyamp/patch-1
lxc-voidlinux.in: correct repo and docs urls
2023-07-19 19:21:43 -04:00
classabbyamp
34f8a6590f
lxc-voidlinux.in: correct repo and docs urls
voidlinux.eu has not been under Void Linux's control for over 4 years:
https://voidlinux.org/news/2019/02/voidlinux-eu-gone.html

Signed-off-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com>
2023-07-19 17:36:58 -04:00
Stéphane Graber
5fc41e1086
github: Add DCO/target tests
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2023-06-21 21:42:19 -04:00
Stéphane Graber
96c78bebf5
Merge pull request #56 from kevinoid/debian-getopt-mirror
lxc-debian: fix getopt parsing of --mirror
2023-04-14 01:22:19 -04: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
Stéphane Graber
fbb2a909db
Merge pull request #51 from fedya/master
adjust openmandriva.in template to the modern times
2022-10-19 00:18:15 -04:00
Alexander Stefanov
ca4c393869 adjust alex name 2022-10-18 15:15:08 +02:00
Alexander Stefanov
222ab5cd0a adjust openmandriva template to the modern cooker distro 2022-10-18 15:14:42 +02:00
Stéphane Graber
cfbb67e74e
Merge pull request #50 from elboulangero/kali-maintenance
Kali maintenance
2022-10-18 00:33:12 -04:00
Arnaud Rebillout
0862ddf36d lxc-kali: Reduce diff with Debian
These bits were missing for no reason.

Signed-off-by: Arnaud Rebillout <arnaudr@kali.org>
2022-10-18 10:31:36 +07:00
Arnaud Rebillout
70ae901bdd lxc-kali: Fix incorrect use of basename instead of dirname
cf. ae96852bbb

Signed-off-by: Arnaud Rebillout <arnaudr@kali.org>
2022-10-18 10:31:36 +07:00
Arnaud Rebillout
da7b8e8bf3 lxc-kali: Update usage message for Kali
--release was not documented, --security-mirror is not supported.

Signed-off-by: Arnaud Rebillout <arnaudr@kali.org>
2022-10-18 10:31:32 +07:00
Stéphane Graber
97df54a56b
Merge pull request #47 from NiklausHofer/master
templates/lxc-gentoo.in: Propperly handle aarch64.
2022-07-02 00:26:43 -04:00
Niklaus 'vimja' Hofer
1792b8c0f3 templates/lxc-gentoo.in: Propperly handle aarch64.
Gentoo uses arm64 in the download path. See

  http://distfiles.gentoo.org/releases/arm64/autobuilds/
2022-07-01 23:48:30 +02:00
Stéphane Graber
ee5ca88668
Merge pull request #46 from 4oo4/master
Fix alpine lxc build
2022-06-08 00:38:53 -04:00
4oo4
2163a7e4e0
Update alpine keys URI - fix package verification
Alpine started using https://git.alpinelinux.org/aports/plain/main/alpine-keys/ to publish their apk keys as of 3.15, so using the old URI will give errors about signature verification since a required key is missing

Remove old key

Fix #43 - let lxc config create character devices

Creating lxc containers will error out when trying to create character devices with "file exists". This does not appear to be necessary for most of them since they get created when you actually start the container.

Signed-off-by: 4oo4 <4oo4@users.noreply.github.com>
2022-06-08 04:25:14 +00:00
Stéphane Graber
4765da8ef2
Merge pull request #44 from terceiro/debian-ports
lxc-debian: support debian-ports architectures
2022-04-10 12:29:19 -04: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
4b041f1d18 configure.ac: generate lxc-* as executable
This allows them to be executed directly, and symlinked from
/usr/share/lxc/templates/ to the build directory for easier testing with
a system-installed lxc.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
2022-04-10 06:31:35 -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
Stéphane Graber
8974b96a78
Merge pull request #42 from mbruzek/mbruzek_debian_security_distro_fix
Changed security distribution to ${release}-security.
2021-08-21 01:51:54 -04: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
Christian Brauner
f17d9d03c6
Merge pull request #41 from tenforward/plamo_pkgtools8_fix
plamo: more fixes configuration process related to pkgtools8
2021-08-18 11:26:09 +02:00
KATOH Yasufumi
d9f1b169bc plamo: more fixes configuration process related to pkgtools8
The previous patch had incomplete support for pkgtools8.

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2021-08-18 14:00:32 +09:00
Christian Brauner
8df214978b
Merge pull request #40 from tenforward/plamo_pkgtools8_fix
plamo: Fix configuration process related to pkgtools8
2021-08-17 14:05:42 +02:00