1
0
mirror of https://github.com/lxc/distrobuilder.git synced 2026-02-05 06:45:19 +01:00
Commit Graph

1876 Commits

Author SHA1 Message Date
Valery Ushakov
f1ea14c33d source.md: source.same_is is a string
Signed-off-by: Valery Ushakov <valery.ushakov@bell-sw.com>
2026-01-26 19:10:50 +00:00
Stéphane Graber
0f885eed33 Merge pull request #968 from chaosoffire-org/fix-5
Fix portage snapshot GPG verification
2026-01-12 08:47:35 -05:00
Chaosoffire
e46de2b967 sources: Fix portage snapshot GPG verification
Pass both portage-latest.tar.xz and its detached signature
(.gpgsig) to VerifyFile for proper GPG verification.

Signed-off-by: Chaosoffire <81634128+chaosoffire@users.noreply.github.com>
2026-01-12 20:49:19 +08:00
Stéphane Graber
4e92c6a2e2 Merge pull request #967 from chaosoffire-org/fix-4
Fix CentOS Stream 10 checksum file retrieval (follow-up #966)
2026-01-10 12:47:06 -05:00
Chaosoffire
1015a5ac06 sources/centos-http: Support CentOS Stream 10 checksum file
CentOS Stream 10, similar to Stream 9, uses a `SHA256SUM` file for checksums rather than the `sha256sum.txt.asc` pattern used by older releases.

This commit updates the logic to correctly identify and use `SHA256SUM` for CentOS Stream 10, resolving build failures where the downloader would incorrectly return a 404 for the non-existent `.asc` file.

Signed-off-by: Chaosoffire <81634128+chaosoffire@users.noreply.github.com>
2026-01-10 22:34:13 +08:00
Stéphane Graber
1dd2cb9702 Merge pull request #966 from chaosoffire-org/fix-3
Fix GPG verification for CentOS, Gentoo, Rocky Linux, and VoidLinux
2026-01-10 07:07:36 -05:00
Chaosoffire
6b6c3dd48f sources/rocky: implement version-specific GPG verification
Rocky 8/9 only provides plain CHECKSUM files without GPG signatures,
so verification must be skipped.
Rocky 10 provides a detached CHECKSUM.asc signature. This is now
downloaded separately to perform verification against the CHECKSUM file.

Signed-off-by: Chaosoffire <81634128+chaosoffire@users.noreply.github.com>
2026-01-10 17:08:44 +08:00
Chaosoffire
2bd631eb1b sources/gentoo: download .DIGESTS separately for GPG verification
Since .DIGESTS is a clearsigned file that needs GPG verification,
download it separately to persist on disk.

Signed-off-by: Chaosoffire <81634128+chaosoffire@users.noreply.github.com>
2026-01-10 15:23:28 +08:00
Chaosoffire
6628e5de55 sources/centos: fix GPG verification for plain checksum files
Only verify files ending with .asc, which are clearsigned.

This reverts centos-http.go verify logic from commit 64b60db9.

Signed-off-by: Chaosoffire <81634128+chaosoffire@users.noreply.github.com>
2026-01-10 15:16:39 +08:00
Chaosoffire
1cafa6a5a1 sources/voidlinux: revert GPG validation changes
VoidLinux uses signify signatures (.sig files), not GPG.
This reverts voidlinux-http.go changes from commit 64b60db9.

Signed-off-by: Chaosoffire <81634128+chaosoffire@users.noreply.github.com>
2026-01-10 15:08:03 +08:00
Stéphane Graber
5c63598a59 Merge pull request #964 from chaosoffire-org/fix-2
Enforce GPG verification across multiple distros (Fixes #963)
2026-01-07 16:56:08 -05:00
Chaosoffire
64b60db96c sources: enforce GPG verification across multiple distros
This commit introduces a centralized GPG verification requirement logic
in `sources/common.go` via the `validateGPGRequirements` method.
It ensures consistent security constraints across multiple supported distributions.

Specific security fixes included:
- Rocky Linux: Fixed an issue where the `CHECKSUM` file was downloaded but not GPG verified.
- CentOS: Fixed an issue where 'SHA256SUM' and 'CHECKSUM' files were downloaded but not GPG verified.
- Gentoo: Added GPG requirement validation for the portage snapshot download URL.

Fixes: https://github.com/lxc/distrobuilder/issues/963
Signed-off-by: Chaosoffire <81634128+chaosoffire@users.noreply.github.com>
2026-01-07 16:42:12 +08:00
Stéphane Graber
7b7cb2f34b Merge pull request #962 from chaosoffire-org/fix-1
sources/almalinux-http: Use CHECKSUM for AlmaLinux 8, 9 and 10
2026-01-06 16:44:01 -05:00
Chaosoffire
a24601ebfd sources: refactor AlmaLinux version check to use switch statement
Replace chained `strings.HasPrefix` calls with a `switch` statement on the existing `majorVersion` variable for improved readability and maintainability.

Signed-off-by: Chaosoffire <81634128+chaosoffire@users.noreply.github.com>
2026-01-06 15:56:32 +08:00
Chaosoffire
3c4b82e6be sources: support AlmaLinux 9 and 10 with HTTP sources
AlmaLinux 9 and 10 use a `CHECKSUM` file similar to version 8, rather than `sha256sum.txt.asc`.
This change updates the logic to use the correct checksum file for versions 9 and 10.

It also fixes a security issue where `CHECKSUM` files were not being GPG verified because the check was restricted to files ending in `.asc`.

Signed-off-by: Chaosoffire <81634128+chaosoffire@users.noreply.github.com>
2026-01-06 15:39:46 +08:00
Stéphane Graber
04b679e91c Merge pull request #959 from tew42/patch-2
Update OpenWRT config to build also release candidates
2025-12-22 09:18:41 -05:00
Thomas Winkler
194b0f40af Update OpenWRT config to build also release candidates
Signed-off-by: Thomas Winkler <tewinkler86@gmail.com>
2025-12-22 14:47:39 +01:00
Stéphane Graber
7007618cdc Merge pull request #958 from tew42/main
Drop support for OpenWRT 22.x
2025-12-21 05:36:25 -05:00
Thomas Winkler
de6955faf5 Remove deprecated 22.03 architecture path and filename logic
Signed-off-by: Thomas Winkler <tewinkler86@gmail.com>
2025-12-17 07:35:39 +01:00
Thomas Hipp
aa997ec4e1 Merge pull request #955 from stgraber/main
gomod: Update dependencies
2025-12-05 20:47:40 +01:00
Stéphane Graber
5f0ce558e6 gomod: Update dependencies
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-12-05 13:51:23 -05:00
Thomas Hipp
714bff732c Merge pull request #954 from stgraber/main
Tweak HTTP client handling
2025-11-30 07:33:01 +01:00
Stéphane Graber
deed503946 sources: Update the tests for HTTP client
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-11-29 23:14:46 -05:00
Stéphane Graber
27e9ba9b4e sources: Tweak HTTP client to be more compatible
This is needed to avoid being flagged as a crawler by some servers.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-11-29 22:35:25 -05:00
Stéphane Graber
bf526f359e sources: Always use custom HTTP client
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-11-29 21:46:52 -05:00
Stéphane Graber
26121f5ebf sources/fedora: Remove legacy releases
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-11-29 21:09:51 -05:00
Stéphane Graber
39f4316522 Merge pull request #952 from timbretimber/docker-source
docker: use umoci library and podman image library
2025-11-15 19:42:58 -05:00
Stéphane Graber
909b5f8700 github: Ignore unrelated GHSA
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-11-15 18:27:49 -05:00
timbretimber
bff1c3c434 gomod: Update dependencies
Signed-off-by: timbretimber <105982513+timbretimber@users.noreply.github.com>
2025-11-15 18:18:13 -05:00
Stéphane Graber
585b31fdb1 Makefile: Bump minimum to Go 1.24.7
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-11-15 18:18:11 -05:00
timbretimber
984047ec71 make: use build tags to stub unnecessary dependencies
Signed-off-by: timbretimber <105982513+timbretimber@users.noreply.github.com>
2025-11-15 17:08:42 -05:00
timbretimber
cab50c0662 docker: use umoci library and podman image library
* fixes issues with extracting to wrong directory
* allows pulling from other oci registries (will still pull from docker if unspecified)
* allows to specify digest (can't specify both digest and tag at the same time)

Signed-off-by: timbretimber <105982513+timbretimber@users.noreply.github.com>
2025-11-15 17:08:39 -05:00
Thomas Hipp
d342e98ea2 Merge pull request #949 from stgraber/main
systemd-generator: Fix console-getty handling
2025-10-13 08:10:27 +02:00
Stéphane Graber
d0e0b68a62 systemd-generator: Fix console-getty handling
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-10-13 01:58:40 -04:00
Stéphane Graber
a3072be2ef Merge pull request #947 from masnax/viosock
windows: Fix lib dir location
2025-10-07 22:38:11 -04:00
Max Asnaashari
5400886f44 windows: Fix lib dir location
Signed-off-by: Max Asnaashari <max.asna@futurfusion.io>
2025-10-07 18:20:51 -07:00
Stéphane Graber
1f1263e084 Merge pull request #946 from masnax/viosock
Add viosock driver support
2025-09-26 21:42:39 -04:00
Max Asnaashari
608b70e6f1 distrobuilder: Make linter happy
Signed-off-by: Max Asnaashari <max.asna@futurfusion.io>
2025-09-26 18:33:05 -07:00
Max Asnaashari
d0ec6640a7 windows: Write viosock service and lib files
Signed-off-by: Max Asnaashari <max.asna@futurfusion.io>
2025-09-26 16:07:36 -07:00
Max Asnaashari
a040931fd9 windows: Add viosock driver
Signed-off-by: Max Asnaashari <max.asna@futurfusion.io>
2025-09-26 16:07:36 -07:00
Stéphane Graber
4b9e2abfb8 Merge pull request #942 from dherrerace/centos-mirror
Update GPGKey and mirror for Centos Stream 9 onwards
2025-09-10 19:03:27 -04:00
Diego Herrera
d8d161bdc8 centos: Fix GPGKey and mirror for Centos Stream 9 onwards
Signed-off-by: Diego Herrera <dherrera@redhat.com>
2025-09-10 19:35:36 -03:00
Stéphane Graber
4c038da87d Merge pull request #941 from dherrerace/centos-10
Add support for CentOS Stream 10
2025-09-10 12:23:37 -04:00
Diego Herrera
7f7abc7e68 centos: Add support for CentOS Stream 10
Signed-off-by: Diego Herrera <dherrera@redhat.com>
2025-09-09 18:05:55 -03:00
Thomas Hipp
5d0fe43196 Merge pull request #940 from stgraber/main
fedora-http: Use RsyncLocal
2025-08-25 19:10:17 +02:00
Stéphane Graber
78def3425f fedora-http: Use RsyncLocal
closes #939

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-08-25 12:32:54 -04:00
Stéphane Graber
fc5060aa0d almalinux: Fix install script
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-08-08 00:28:38 -04:00
Thomas Hipp
83eaae237e Merge pull request #937 from stgraber/main
Align Alma Linux logic with Rocky Linux
2025-08-06 09:11:54 +02:00
Stéphane Graber
be3ac30e61 almalinux: Align nogpgcheck with Rocky
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-08-06 02:21:39 -04:00
Stéphane Graber
f2c14b5965 Revert "almalinux: Add support for AlmaLinux 10"
This reverts commit 8a6088f94a.

The Alma Linux 10 support came with forcing a change of package manager
which then broke all existing image builds.

Instead the approach taken for Rocky is much simpler and should avoid
regressions coming from the switch from yum to dnf for all existing
images.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-08-06 02:21:38 -04:00