129 Commits
Author SHA1 Message Date
Stéphane Graber a9feb21cbb Merge pull request #71 from tenforward/cgroup2
Replace lxc.cgroup.devices with lxc.cgroup2.devices
2026-05-19 13:22:49 -04:00
KATOH Yasufumi 7fdc49f037 Replace lxc.cgroup.devices with lxc.cgroup2.devices
LXC 7.0 dropped support for cgroup v1. Replace all
lxc.cgroup.devices.* keys with their lxc.cgroup2.devices.*
equivalents accordingly.

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2026-05-19 18:38:40 +09:00
Stéphane Graber 15f7c8361c Merge pull request #70 from elboulangero/debian-kali-dhcpc-update
Updates Debian and Kali template regarding dhcp client
2026-03-11 13:33:16 -04:00
Arnaud Rebillout 8a81dd3fd6 lxc-kali: Select dhcpcd-base in place of isc-dchp-client
Being based on Debian testing, Kali now uses dhcpcd-base instead of
isc-dhcp-client.

Signed-off-by: Arnaud Rebillout <arnaudr@debian.org>
2026-03-11 23:13:08 +07:00
Arnaud Rebillout 48b89d884c lxc-debian: Fix a misleading error message
The wget command above uses the variable `MIRROR` and not
`DEBIAN_MIRROR`...

Signed-off-by: Arnaud Rebillout <arnaudr@debian.org>
2026-03-11 23:13:08 +07:00
Arnaud Rebillout e21dc0318b lxc-debian: Add oldstable and oldoldstable to permanent releases
Signed-off-by: Arnaud Rebillout <arnaudr@debian.org>
2026-03-11 23:13:08 +07:00
Arnaud Rebillout 0d0ae9f09e lxc-debian: Use distro_codename in write_sourceslist
The variable `distro_codename` (introduced in previous commit) is a
better fit than `release` for places where we want to match a codename.

Signed-off-by: Arnaud Rebillout <arnaudr@debian.org>
2026-03-11 23:12:50 +07:00
Sven Geuer c352d0c180 lxc-debian: Select dhcp-client according to release
isc-dhcp-client is being phased out in Debian, and it was recently
removed from forky/testing due to https://bugs.debian.org/1106121.

For releases with codename trixie and before select isc-dhcp-client,
otherwise select dhcpcd-base. This way the dhcp-client installed in the
container matches the one that comes with the respective release by default.

This change was discussed at https://bugs.debian.org/1125011.

Signed-off-by: Arnaud Rebillout <arnaudr@debian.org>
2026-03-11 23:02:21 +07:00
Stéphane Graber c128b962b3 gentoo: Fix getting stage3
Closes #69

Suggests-by: atlant2011
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-03-15 15:19:50 -04:00
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