Add AlmaLinux repositories
This commit is contained in:
commit
04be3d8097
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
osbuild-composer-134.1.tar.gz
|
||||
osbuild-composer-149.tar.gz
|
||||
|
||||
379
0001-Backport-https-github.com-osbuild-images-pull-1926.patch
Normal file
379
0001-Backport-https-github.com-osbuild-images-pull-1926.patch
Normal file
File diff suppressed because one or more lines are too long
@ -1,25 +0,0 @@
|
||||
From b3f1ee3733ad0684816ea8da5b0a99d32e42da18 Mon Sep 17 00:00:00 2001
|
||||
From: eabdullin <eabdullin@almalinux.org>
|
||||
Date: Thu, 26 Dec 2024 15:52:33 +0300
|
||||
Subject: [PATCH 1/3] Remove libreport-rhel-anaconda-bugzilla from anaconda
|
||||
packageset
|
||||
|
||||
---
|
||||
.../osbuild/images/pkg/distro/rhel/rhel8/bare_metal.go | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/vendor/github.com/osbuild/images/pkg/distro/rhel/rhel8/bare_metal.go b/vendor/github.com/osbuild/images/pkg/distro/rhel/rhel8/bare_metal.go
|
||||
index e1703e8..167a14f 100644
|
||||
--- a/vendor/github.com/osbuild/images/pkg/distro/rhel/rhel8/bare_metal.go
|
||||
+++ b/vendor/github.com/osbuild/images/pkg/distro/rhel/rhel8/bare_metal.go
|
||||
@@ -229,7 +229,6 @@ func anacondaPackageSet(t *rhel.ImageType) rpmmd.PackageSet {
|
||||
"libibverbs",
|
||||
"libreport-plugin-bugzilla",
|
||||
"libreport-plugin-reportuploader",
|
||||
- "libreport-rhel-anaconda-bugzilla",
|
||||
"librsvg2",
|
||||
"linux-firmware",
|
||||
"lklug-fonts",
|
||||
--
|
||||
2.39.5 (Apple Git-154)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1,266 +0,0 @@
|
||||
From 90281c1b18c191d9f2c87e2615f46f45a2ccd38c Mon Sep 17 00:00:00 2001
|
||||
From: eabdullin <eabdullin@almalinux.org>
|
||||
Date: Thu, 26 Dec 2024 15:57:00 +0300
|
||||
Subject: [PATCH 3/3] Add AlmaLinux Kitten support
|
||||
|
||||
---
|
||||
repositories/kitten-10.json | 66 +++++++++++++++++++
|
||||
.../osbuild/images/pkg/distro/host.go | 23 +++++++
|
||||
.../images/pkg/distro/rhel/distribution.go | 19 ++++++
|
||||
.../images/pkg/distro/rhel/imagetype.go | 4 ++
|
||||
.../images/pkg/distro/rhel/rhel10/distro.go | 33 ++++++++++
|
||||
.../images/pkg/distrofactory/distrofactory.go | 1 +
|
||||
.../images/pkg/distroidparser/idparser.go | 1 +
|
||||
7 files changed, 147 insertions(+)
|
||||
create mode 100644 repositories/kitten-10.json
|
||||
|
||||
diff --git a/repositories/kitten-10.json b/repositories/kitten-10.json
|
||||
new file mode 100644
|
||||
index 0000000..674b9e5
|
||||
--- /dev/null
|
||||
+++ b/repositories/kitten-10.json
|
||||
@@ -0,0 +1,66 @@
|
||||
+{
|
||||
+ "aarch64": [
|
||||
+ {
|
||||
+ "name": "baseos",
|
||||
+ "baseurl": "https://kitten.repo.almalinux.org/10-kitten/BaseOS/aarch64/os/",
|
||||
+ "gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGaP6O8BEACvg8IlAxGayV8zOi9Ex+Pd8lrj2BrBzloG8ri84ORp9o8ojq7l\nykKmIElHe11cQD2Lf/a4lcQQ4Ec3baiD786X6K2eVSlBEAnZMzfjDg8R63SfsBuu\n8Yk+lUyqlBrDnSDYaPruOAzLIz2r82ikIC1jDbipZsMFPFHPI4/hayyWxJ3oGxRe\n0mbtYLB9ElEKngt+/hfo7JLklakbznyIRuVEF3VrZb91XC6r/idqfJoNyBXSKidj\nz0IwqOhgkLUk84rzltDo3AzwGqusd7PEuhOmqinOhp0hMdXsztD4TVyhw82iXu/O\nonOAObZTZYfM6Z8btmDqkoo0aT+oPPCuZ3yC/caU9dhvCSXET/CGoXc3hL55u9PV\nqmcVm/mwvuEImEAvxVc0/dBzEUk+FwW8KsaN3HoUKr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M1rN7PcanaXQM2gy141dS7tFLxhapG8ug75LkIUnEOpPMtUjvrU1ZELGq\n36vVHBB+dTDg\n=tJCw\n-----END PGP PUBLIC KEY BLOCK-----",
|
||||
+ "check_gpg": true,
|
||||
+ "rhsm": false
|
||||
+ },
|
||||
+ {
|
||||
+ "name": "appstream",
|
||||
+ "baseurl": "https://kitten.repo.almalinux.org/10-kitten/AppStream/aarch64/os/",
|
||||
+ "gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGaP6O8BEACvg8IlAxGayV8zOi9Ex+Pd8lrj2BrBzloG8ri84ORp9o8ojq7l\nykKmIElHe11cQD2Lf/a4lcQQ4Ec3baiD786X6K2eVSlBEAnZMzfjDg8R63SfsBuu\n8Yk+lUyqlBrDnSDYaPruOAzLIz2r82ikIC1jDbipZsMFPFHPI4/hayyWxJ3oGxRe\n0mbtYLB9ElEKngt+/hfo7JLklakbznyIRuVEF3VrZb91XC6r/idqfJoNyBXSKidj\nz0IwqOhgkLUk84rzltDo3AzwGqusd7PEuhOmqinOhp0hMdXsztD4TVyhw82iXu/O\nonOAObZTZYfM6Z8btmDqkoo0aT+oPPCuZ3yC/caU9dhvCSXET/CGoXc3hL55u9PV\nqmcVm/mwvuEImEAvxVc0/dBzEUk+FwW8KsaN3HoUKrC4/NqgmaQz8/42np7u2j+B\nOOJ4hAckNEdWd8rB86CYN00sdxnvLBsp8V3IwEqXLhGOoBsagy61Z8hKCM+siOGn\nxmbbybgaLOs+DPlxt9LrtgLJHODwmD96oysUPJuA0lv8KMiSpId0tSpp9Wn/wHBG\nkRgxGYfzQu7WRvRZqQaleft1JTXXOjNzPur0RkJyb3yFwAoxpePyo/WrupM41OHW\n58cEqdC6riCnJcS4U84RLj+hwvufBVB7areQ75sETnKeyozZW+P16E1t/wARAQAB\ntChBbG1hTGludXggT1MgMTAgPHBhY2thZ2VyQGFsbWFsaW51eC5vcmc+iQJMBBMB\nCgA2FiEE7m23uY9b9e3Z2g3l3uXBHMKh5XIFAmaP6O8CGwMECwkIBwQVCgkIBRYC\nAwEAAh4FAheAAAoJEN7lwRzCoeVy32AP/A2+KI+JhmsxnactSptkAWGyAAf1YBWW\nJs2sc9OJdKj7uIkzszCx7c7VIVeF/VLijIYpM/zwUgir5S5SimzQmY+FumwbKIml\nK5RBsoSog22i7Edho0MLa1pa6qvnKS0nkl9DEcu8EbMUhucWbxGnCG/22EEMTrY+\nSi1IZNkDGtlBHHBKMC+STbqqTxtdy4tAd2NYwWh3sBIh6PF7T4NLRAugu7PZQr5K\namS4z2lV3ebshGjieA0Zoznwh0AXgN0gZ/0pC/LXI25gcgtrvkCyL8Fe0AyZUMd8\nUvZXaRSsm3SkCUIlGjPrvuItn1D7tHmqVSCDKXDM2TqjfiRm1JF+2OFCBNvGz19V\nLxWd/Gf+0qw0dtKxRMKzGh0mxXY40hjtmYZulrPxhG5itNDjStovgrevM1HBsXs9\nikrkOGQ0pFcqizTn4ZKAmMozEMuIuV89Vof2bBCg7pHT1FmXVdAaYJxb6a7A/CgN\nqHjoh8AxBiGw/Q2NM4YJlUVhHqqd+/lUG3WJqACNEnqSlZkYQ3HqNNaKhHVbD4mN\nq/g6v+f8aWWDZDsI6IAfbJUB+KPEnIvQJQleWuHrq7kcUMhEq3dwBMIoTVEHhUUr\nRQKToSEM1rN7PcanaXQM2gy141dS7tFLxhapG8ug75LkIUnEOpPMtUjvrU1ZELGq\n36vVHBB+dTDg\n=tJCw\n-----END PGP PUBLIC KEY BLOCK-----",
|
||||
+ "check_gpg": true,
|
||||
+ "rhsm": false
|
||||
+ }
|
||||
+ ],
|
||||
+ "ppc64le": [
|
||||
+ {
|
||||
+ "name": "baseos",
|
||||
+ "baseurl": "https://kitten.repo.almalinux.org/10-kitten/BaseOS/ppc64le/os/",
|
||||
+ "gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGaP6O8BEACvg8IlAxGayV8zOi9Ex+Pd8lrj2BrBzloG8ri84ORp9o8ojq7l\nykKmI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CyL8Fe0AyZUMd8\nUvZXaRSsm3SkCUIlGjPrvuItn1D7tHmqVSCDKXDM2TqjfiRm1JF+2OFCBNvGz19V\nLxWd/Gf+0qw0dtKxRMKzGh0mxXY40hjtmYZulrPxhG5itNDjStovgrevM1HBsXs9\nikrkOGQ0pFcqizTn4ZKAmMozEMuIuV89Vof2bBCg7pHT1FmXVdAaYJxb6a7A/CgN\nqHjoh8AxBiGw/Q2NM4YJlUVhHqqd+/lUG3WJqACNEnqSlZkYQ3HqNNaKhHVbD4mN\nq/g6v+f8aWWDZDsI6IAfbJUB+KPEnIvQJQleWuHrq7kcUMhEq3dwBMIoTVEHhUUr\nRQKToSEM1rN7PcanaXQM2gy141dS7tFLxhapG8ug75LkIUnEOpPMtUjvrU1ZELGq\n36vVHBB+dTDg\n=tJCw\n-----END PGP PUBLIC KEY BLOCK-----",
|
||||
+ "check_gpg": true,
|
||||
+ "rhsm": false
|
||||
+ },
|
||||
+ {
|
||||
+ "name": "appstream",
|
||||
+ "baseurl": "https://kitten.repo.almalinux.org/10-kitten/AppStream/ppc64le/os/",
|
||||
+ "gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGaP6O8BEACvg8IlAxGayV8zOi9Ex+Pd8lrj2BrBzloG8ri84ORp9o8ojq7l\nykKmIElHe11cQD2Lf/a4lcQQ4Ec3baiD786X6K2eVSlBEAnZMzfjDg8R63SfsBuu\n8Yk+lUyqlBrDnSDYaPruOAzLIz2r82ikIC1jDbipZsMFPFHPI4/hayyWxJ3oGxRe\n0mbtYLB9ElEKngt+/hfo7JLklakbznyIRuVEF3VrZb91XC6r/idqfJoNyBXSKidj\nz0IwqOhgkLUk84rzltDo3AzwGqusd7PEuhOmqinOhp0hMdXsztD4TVyhw82iXu/O\nonOAObZTZYfM6Z8btmDqkoo0aT+oPPCuZ3yC/caU9dhvCSXET/CGoXc3hL55u9PV\nqmcVm/mwvuEImEAvxVc0/dBzEUk+FwW8KsaN3HoUKrC4/NqgmaQ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XQM2gy141dS7tFLxhapG8ug75LkIUnEOpPMtUjvrU1ZELGq\n36vVHBB+dTDg\n=tJCw\n-----END PGP PUBLIC KEY BLOCK-----",
|
||||
+ "check_gpg": true,
|
||||
+ "rhsm": false
|
||||
+ }
|
||||
+ ],
|
||||
+ "s390x": [
|
||||
+ {
|
||||
+ "name": "baseos",
|
||||
+ "baseurl": "https://kitten.repo.almalinux.org/10-kitten/BaseOS/s390x/os/",
|
||||
+ "gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGaP6O8BEACvg8IlAxGayV8zOi9Ex+Pd8lrj2BrBzloG8ri84ORp9o8ojq7l\nykKmIElHe11cQD2Lf/a4lcQQ4Ec3baiD786X6K2eVSlBEAnZMzfjDg8R63SfsBuu\n8Yk+lUyqlBrDnSDYaPruOAzLIz2r82ikIC1jDbipZsMFPFHPI4/hayyWxJ3oGxRe\n0mbtYLB9ElEKngt+/hfo7JLklakbznyIRuVEF3VrZb91XC6r/idqfJoNyBXSKidj\nz0IwqOhgkLUk84rzltDo3AzwGqusd7PEuhOmqinOhp0hMdXsztD4TVyhw82iXu/O\nonOAObZTZYfM6Z8btmDqkoo0aT+oPPCuZ3yC/caU9dhvCSXET/CGoXc3hL55u9PV\nqmcVm/mwvuEImEAvxVc0/dBzEUk+FwW8KsaN3HoUKrC4/NqgmaQz8/42np7u2j+B\nOOJ4hAckNEdWd8rB86CYN00sdxnvLBsp8V3IwEqXLhGOoBsagy61Z8hKCM+siOGn\nxmbbybgaLOs+DPlxt9LrtgLJHODwmD96oysUPJuA0lv8KMiSpId0tSpp9Wn/wHBG\nkRgxGYfzQu7WRvRZqQaleft1JTXXOjNzPur0RkJyb3yFwAoxpePyo/WrupM41OHW\n58cEqdC6riCnJcS4U84RLj+hwvufBVB7areQ75sETnKeyozZW+P16E1t/wARAQAB\ntChBbG1hTGludXggT1MgMTAgPHBhY2thZ2VyQGFsbWFsaW51eC5vcmc+iQJMBBMB\nCgA2FiEE7m23uY9b9e3Z2g3l3uXBHMKh5XIFAmaP6O8CGwMECwkIBwQVCgkIBRYC\nAwEAAh4FAheAAAoJEN7lwRzCoeVy32AP/A2+KI+JhmsxnactSptkAWGyAAf1YBWW\nJs2sc9OJdKj7uIkzszCx7c7VIVeF/VLijIYpM/zwUgir5S5SimzQmY+FumwbKIml\nK5RBsoSog22i7Edho0MLa1pa6qvnKS0nkl9DEcu8EbMUhucWbxGnCG/22EEMTrY+\nSi1IZNkDGtlBHHBKMC+STbqqTxtdy4tAd2NYwWh3sBIh6PF7T4NLRAugu7PZQr5K\namS4z2lV3ebshGjieA0Zoznwh0AXgN0gZ/0pC/LXI25gcgtrvkCyL8Fe0AyZUMd8\nUvZXaRSsm3SkCUIlGjPrvuItn1D7tHmqVSCDKXDM2TqjfiRm1JF+2OFCBNvGz19V\nLxWd/Gf+0qw0dtKxRMKzGh0mxXY40hjtmYZulrPxhG5itNDjStovgrevM1HBsXs9\nikrkOGQ0pFcqizTn4ZKAmMozEMuIuV89Vof2bBCg7pHT1FmXVdAaYJxb6a7A/CgN\nqHjoh8AxBiGw/Q2NM4YJlUVhHqqd+/lUG3WJqACNEnqSlZkYQ3HqNNaKhHVbD4mN\nq/g6v+f8aWWDZDsI6IAfbJUB+KPEnIvQJQleWuHrq7kcUMhEq3dwBMIoTVEHhUUr\nRQKToSEM1rN7PcanaXQM2gy141dS7tFLxhapG8ug75LkIUnEOpPMtUjvrU1ZELGq\n36vVHBB+dTDg\n=tJCw\n-----END PGP PUBLIC KEY BLOCK-----",
|
||||
+ "check_gpg": true,
|
||||
+ "rhsm": false
|
||||
+ },
|
||||
+ {
|
||||
+ "name": "appstream",
|
||||
+ "baseurl": "https://kitten.repo.almalinux.org/10-kitten/AppStream/s390x/os/",
|
||||
+ "gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGaP6O8BEACvg8IlAxGayV8zOi9Ex+Pd8lrj2BrBzloG8ri84ORp9o8ojq7l\nykKmIElHe11cQD2Lf/a4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8\nUvZXaRSsm3SkCUIlGjPrvuItn1D7tHmqVSCDKXDM2TqjfiRm1JF+2OFCBNvGz19V\nLxWd/Gf+0qw0dtKxRMKzGh0mxXY40hjtmYZulrPxhG5itNDjStovgrevM1HBsXs9\nikrkOGQ0pFcqizTn4ZKAmMozEMuIuV89Vof2bBCg7pHT1FmXVdAaYJxb6a7A/CgN\nqHjoh8AxBiGw/Q2NM4YJlUVhHqqd+/lUG3WJqACNEnqSlZkYQ3HqNNaKhHVbD4mN\nq/g6v+f8aWWDZDsI6IAfbJUB+KPEnIvQJQleWuHrq7kcUMhEq3dwBMIoTVEHhUUr\nRQKToSEM1rN7PcanaXQM2gy141dS7tFLxhapG8ug75LkIUnEOpPMtUjvrU1ZELGq\n36vVHBB+dTDg\n=tJCw\n-----END PGP PUBLIC KEY BLOCK-----",
|
||||
+ "check_gpg": true,
|
||||
+ "rhsm": false
|
||||
+ }
|
||||
+ ],
|
||||
+ "x86_64": [
|
||||
+ {
|
||||
+ "name": "baseos",
|
||||
+ "baseurl": "https://kitten.repo.almalinux.org/10-kitten/BaseOS/x86_64/os/",
|
||||
+ "gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGaP6O8BEACvg8IlAxGayV8zOi9Ex+Pd8lrj2BrBzloG8ri84ORp9o8ojq7l\nykKmIElHe11cQD2Lf/a4lcQQ4Ec3baiD786X6K2eVSlBEAnZMzfjDg8R63SfsBuu\n8Yk+lUyqlBrDnSDYaPruOAzLIz2r82ikIC1jDbipZsMFPFHPI4/hayyWxJ3oGxRe\n0mbtYLB9ElEKngt+/hfo7JLklakbznyIRuVEF3VrZb91XC6r/idqfJoNyBXSKidj\nz0IwqOhgkLUk84rzltDo3AzwGqusd7PEuhOmqinOhp0hMdXsztD4TVyhw82iXu/O\nonOAObZTZYfM6Z8btmDqkoo0aT+oPPCuZ3yC/caU9dhvCSXET/CGoXc3hL55u9PV\nqmcVm/mwvuEImEAvxVc0/dBzEUk+FwW8KsaN3HoU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SEM1rN7PcanaXQM2gy141dS7tFLxhapG8ug75LkIUnEOpPMtUjvrU1ZELGq\n36vVHBB+dTDg\n=tJCw\n-----END PGP PUBLIC KEY BLOCK-----",
|
||||
+ "check_gpg": true,
|
||||
+ "rhsm": false
|
||||
+ },
|
||||
+ {
|
||||
+ "name": "appstream",
|
||||
+ "baseurl": "https://kitten.repo.almalinux.org/10-kitten/AppStream/x86_64/os/",
|
||||
+ "gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGaP6O8BEACvg8IlAxGayV8zOi9Ex+Pd8lrj2BrBzloG8ri84ORp9o8ojq7l\nykKmIElHe11cQD2Lf/a4lcQQ4Ec3baiD786X6K2eVSlBEAnZMzfjDg8R63SfsBuu\n8Yk+lUyqlBrDnSDYaPruOAzLIz2r82ikIC1jDbipZsMFPFHPI4/hayyWxJ3oGxRe\n0mbtYLB9ElEKngt+/hfo7JLklakbznyIRuVEF3VrZb91XC6r/idqfJoNyBXSKidj\nz0IwqOhgkLUk84rzltDo3AzwGqusd7PEuhOmqinOhp0hMdXsztD4TVyhw82iXu/O\nonOAObZTZYfM6Z8btmDqkoo0aT+oPPCuZ3yC/caU9dhvCSXET/CGoXc3hL55u9PV\nqmcVm/mwvuEImEAvxVc0/dBzEUk+FwW8KsaN3HoUKrC4/NqgmaQz8/42np7u2j+B\nOOJ4hAckNEdWd8rB86CYN00sdxnvLBsp8V3IwEqXLhGOoBsagy61Z8hKCM+siOGn\nxmbbybgaLOs+DPlxt9LrtgLJHODwmD96oysUPJuA0lv8KMiSpId0tSpp9Wn/wHBG\nkRgxGYfzQu7WRvRZqQaleft1JTXXOjNzPur0RkJyb3yFwAoxpePyo/WrupM41OHW\n58cEqdC6riCnJcS4U84RLj+hwvufBVB7areQ75sETnKeyozZW+P16E1t/wARAQAB\ntChBbG1hTGludXggT1MgMTAgPHBhY2thZ2VyQGFsbWFsaW51eC5vcmc+iQJMBBMB\nCgA2FiEE7m23uY9b9e3Z2g3l3uXBHMKh5XIFAmaP6O8CGwMECwkIBwQVCgkIBRYC\nAwEAAh4FAheAAAoJEN7lwRzCoeVy32AP/A2+KI+JhmsxnactSptkAWGyAAf1YBWW\nJs2sc9OJdKj7uIkzszCx7c7VIVeF/VLijIYpM/zwUgir5S5SimzQmY+FumwbKIml\nK5RBsoSog22i7Edho0MLa1pa6qvnKS0nkl9DEcu8EbMUhucWbxGnCG/22EEMTrY+\nSi1IZNkDGtlBHHBKMC+STbqqTxtdy4tAd2NYwWh3sBIh6PF7T4NLRAugu7PZQr5K\namS4z2lV3ebshGjieA0Zoznwh0AXgN0gZ/0pC/LXI25gcgtrvkCyL8Fe0AyZUMd8\nUvZXaRSsm3SkCUIlGjPrvuItn1D7tHmqVSCDKXDM2TqjfiRm1JF+2OFCBNvGz19V\nLxWd/Gf+0qw0dtKxRMKzGh0mxXY40hjtmYZulrPxhG5itNDjStovgrevM1HBsXs9\nikrkOGQ0pFcqizTn4ZKAmMozEMuIuV89Vof2bBCg7pHT1FmXVdAaYJxb6a7A/CgN\nqHjoh8AxBiGw/Q2NM4YJlUVhHqqd+/lUG3WJqACNEnqSlZkYQ3HqNNaKhHVbD4mN\nq/g6v+f8aWWDZDsI6IAfbJUB+KPEnIvQJQleWuHrq7kcUMhEq3dwBMIoTVEHhUUr\nRQKToSEM1rN7PcanaXQM2gy141dS7tFLxhapG8ug75LkIUnEOpPMtUjvrU1ZELGq\n36vVHBB+dTDg\n=tJCw\n-----END PGP PUBLIC KEY BLOCK-----",
|
||||
+ "check_gpg": true,
|
||||
+ "rhsm": false
|
||||
+ }
|
||||
+ ]
|
||||
+}
|
||||
diff --git a/vendor/github.com/osbuild/images/pkg/distro/host.go b/vendor/github.com/osbuild/images/pkg/distro/host.go
|
||||
index 88d1da0..cc408c1 100644
|
||||
--- a/vendor/github.com/osbuild/images/pkg/distro/host.go
|
||||
+++ b/vendor/github.com/osbuild/images/pkg/distro/host.go
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
+ "strconv"
|
||||
)
|
||||
|
||||
// variable so that it can be overridden in tests
|
||||
@@ -28,6 +29,28 @@ func GetHostDistroName() (string, error) {
|
||||
return "", errors.New("cannot get the host distro name: missing VERSION_ID field in os-release")
|
||||
}
|
||||
|
||||
+ versionParts := strings.Split(osrelease["VERSION_ID"], ".")
|
||||
+ majorVersion, err := strconv.Atoi(versionParts[0])
|
||||
+ if err != nil {
|
||||
+ return "", errors.New("parsing major version failed")
|
||||
+ }
|
||||
+ minorVersion := -1
|
||||
+
|
||||
+ if len(versionParts) > 2 {
|
||||
+ return "", errors.New("too many dots in the OS version")
|
||||
+ }
|
||||
+
|
||||
+ if len(versionParts) > 1 {
|
||||
+ minorVersion, err = strconv.Atoi(versionParts[1])
|
||||
+ if err != nil {
|
||||
+ return "", errors.New("parsing minor version failed")
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ if osrelease["ID"] == "almalinux" && majorVersion == 10 && minorVersion == -1 {
|
||||
+ osrelease["ID"] = "kitten"
|
||||
+ }
|
||||
+
|
||||
name := osrelease["ID"] + "-" + osrelease["VERSION_ID"]
|
||||
|
||||
return name, nil
|
||||
diff --git a/vendor/github.com/osbuild/images/pkg/distro/rhel/distribution.go b/vendor/github.com/osbuild/images/pkg/distro/rhel/distribution.go
|
||||
index 8ad6354..3ef61c9 100644
|
||||
--- a/vendor/github.com/osbuild/images/pkg/distro/rhel/distribution.go
|
||||
+++ b/vendor/github.com/osbuild/images/pkg/distro/rhel/distribution.go
|
||||
@@ -101,6 +101,10 @@ func (d *Distribution) IsAlma() bool {
|
||||
return strings.HasPrefix(d.name, "almalinux")
|
||||
}
|
||||
|
||||
+func (d *Distribution) IsAlmaKitten() bool {
|
||||
+ return strings.HasPrefix(d.name, "kitten")
|
||||
+}
|
||||
+
|
||||
func (d *Distribution) GetDefaultImageConfig() *distro.ImageConfig {
|
||||
if d.DefaultImageConfig == nil {
|
||||
return nil
|
||||
@@ -146,6 +150,21 @@ func NewDistribution(name string, major, minor int) (*Distribution, error) {
|
||||
ostreeRefTmpl: fmt.Sprintf("centos/%d/%%s/edge", major),
|
||||
runner: &runner.CentOS{Version: uint64(major)},
|
||||
}
|
||||
+ case "kitten":
|
||||
+ if minor != -1 {
|
||||
+ return nil, fmt.Errorf("AlmaLinux Kitten does not have minor versions, but got %d", minor)
|
||||
+ }
|
||||
+
|
||||
+ rd = &Distribution{
|
||||
+ name: fmt.Sprintf("kitten-%d", major),
|
||||
+ product: "AlmaLinux Kitten",
|
||||
+ osVersion: fmt.Sprintf("%d-kitten", major),
|
||||
+ releaseVersion: fmt.Sprintf("%d", major),
|
||||
+ modulePlatformID: fmt.Sprintf("platform:el%d", major),
|
||||
+ vendor: "almalinux",
|
||||
+ ostreeRefTmpl: fmt.Sprintf("almalinux/%d/%%s/edge", major),
|
||||
+ runner: &runner.CentOS{Version: uint64(major)},
|
||||
+ }
|
||||
case "almalinux":
|
||||
if minor == -1 {
|
||||
return nil, errors.New("AlmaLinux requires a minor version")
|
||||
diff --git a/vendor/github.com/osbuild/images/pkg/distro/rhel/imagetype.go b/vendor/github.com/osbuild/images/pkg/distro/rhel/imagetype.go
|
||||
index b184182..873947f 100644
|
||||
--- a/vendor/github.com/osbuild/images/pkg/distro/rhel/imagetype.go
|
||||
+++ b/vendor/github.com/osbuild/images/pkg/distro/rhel/imagetype.go
|
||||
@@ -136,6 +136,10 @@ func (t *ImageType) IsAlma() bool {
|
||||
return t.arch.distro.IsAlma()
|
||||
}
|
||||
|
||||
+func (t *ImageType) IsAlmaKitten() bool {
|
||||
+ return t.arch.distro.IsAlmaKitten()
|
||||
+}
|
||||
+
|
||||
func (t *ImageType) ISOLabel() (string, error) {
|
||||
if !t.BootISO {
|
||||
return "", fmt.Errorf("image type %q is not an ISO", t.name)
|
||||
diff --git a/vendor/github.com/osbuild/images/pkg/distro/rhel/rhel10/distro.go b/vendor/github.com/osbuild/images/pkg/distro/rhel/rhel10/distro.go
|
||||
index b0d89f1..1f40678 100644
|
||||
--- a/vendor/github.com/osbuild/images/pkg/distro/rhel/rhel10/distro.go
|
||||
+++ b/vendor/github.com/osbuild/images/pkg/distro/rhel/rhel10/distro.go
|
||||
@@ -41,10 +41,13 @@ func distroISOLabelFunc(t *rhel.ImageType) string {
|
||||
const RHEL_ISO_LABEL = "RHEL-%s-%s-0-BaseOS-%s"
|
||||
const CS_ISO_LABEL = "CentOS-Stream-%s-BaseOS-%s"
|
||||
const ALMA_ISO_LABEL = "AlmaLinux-%s-%s-%s-dvd"
|
||||
+ const ALMA_KITTEN_ISO_LABEL = "AlmaLinux-Kitten-%s-%s-dvd"
|
||||
|
||||
if t.IsRHEL() {
|
||||
osVer := strings.Split(t.Arch().Distro().OsVersion(), ".")
|
||||
return fmt.Sprintf(RHEL_ISO_LABEL, osVer[0], osVer[1], t.Arch().Name())
|
||||
+ } else if t.IsAlmaKitten() {
|
||||
+ return fmt.Sprintf(ALMA_KITTEN_ISO_LABEL, t.Arch().Distro().Releasever(), t.Arch().Name())
|
||||
} else if t.IsAlma() {
|
||||
osVer := strings.Split(t.Arch().Distro().OsVersion(), ".")
|
||||
return fmt.Sprintf(ALMA_ISO_LABEL, osVer[0], osVer[1], t.Arch().Name())
|
||||
@@ -296,6 +299,28 @@ func ParseID(idStr string) (*distro.ID, error) {
|
||||
return nil, fmt.Errorf("rhel requires minor version, but got: %d", id.MinorVersion)
|
||||
}
|
||||
|
||||
+
|
||||
+ return id, nil
|
||||
+}
|
||||
+
|
||||
+func ParseIDKitten(idStr string) (*distro.ID, error) {
|
||||
+ id, err := distro.ParseID(idStr)
|
||||
+ if err != nil {
|
||||
+ return nil, err
|
||||
+ }
|
||||
+
|
||||
+ if id.Name != "kitten" {
|
||||
+ return nil, fmt.Errorf("invalid distro name: %s", id.Name)
|
||||
+ }
|
||||
+
|
||||
+ if id.MajorVersion != 10 {
|
||||
+ return nil, fmt.Errorf("invalid distro major version: %d", id.MajorVersion)
|
||||
+ }
|
||||
+
|
||||
+ if id.MinorVersion != -1 {
|
||||
+ return nil, fmt.Errorf("AlmaLinux Kitten does not use minor version, but got: %d", id.MinorVersion)
|
||||
+ }
|
||||
+
|
||||
return id, nil
|
||||
}
|
||||
|
||||
@@ -307,3 +332,11 @@ func DistroFactory(idStr string) distro.Distro {
|
||||
|
||||
return newDistro(id.Name, 10, id.MinorVersion)
|
||||
}
|
||||
+
|
||||
+func DistroFactoryKitten(idStr string) distro.Distro {
|
||||
+ if idStr != "kitten-10" {
|
||||
+ return nil
|
||||
+ }
|
||||
+
|
||||
+ return newDistro("kitten", 10, -1)
|
||||
+}
|
||||
diff --git a/vendor/github.com/osbuild/images/pkg/distrofactory/distrofactory.go b/vendor/github.com/osbuild/images/pkg/distrofactory/distrofactory.go
|
||||
index 4e264b8..b9eea42 100644
|
||||
--- a/vendor/github.com/osbuild/images/pkg/distrofactory/distrofactory.go
|
||||
+++ b/vendor/github.com/osbuild/images/pkg/distrofactory/distrofactory.go
|
||||
@@ -114,6 +114,7 @@ func NewDefault() *Factory {
|
||||
rhel8.DistroFactory,
|
||||
rhel9.DistroFactory,
|
||||
rhel10.DistroFactory,
|
||||
+ rhel10.DistroFactoryKitten,
|
||||
)
|
||||
}
|
||||
|
||||
diff --git a/vendor/github.com/osbuild/images/pkg/distroidparser/idparser.go b/vendor/github.com/osbuild/images/pkg/distroidparser/idparser.go
|
||||
index 7bd1e72..f21cb71 100644
|
||||
--- a/vendor/github.com/osbuild/images/pkg/distroidparser/idparser.go
|
||||
+++ b/vendor/github.com/osbuild/images/pkg/distroidparser/idparser.go
|
||||
@@ -68,5 +68,6 @@ func NewDefaultParser() *Parser {
|
||||
rhel8.ParseID,
|
||||
rhel9.ParseID,
|
||||
rhel10.ParseID,
|
||||
+ rhel10.ParseIDKitten,
|
||||
)
|
||||
}
|
||||
--
|
||||
2.39.5 (Apple Git-154)
|
||||
|
||||
@ -1,42 +0,0 @@
|
||||
From bf424e53ba6949c685b0f4593588cec88edfe6f7 Mon Sep 17 00:00:00 2001
|
||||
From: Lukas Zapletal <lzap+git@redhat.com>
|
||||
Date: Thu, 11 Sep 2025 08:03:21 +0200
|
||||
Subject: [PATCH] common: fix unclosed logrus logging pipes
|
||||
|
||||
This is a backport of 1cde7e3. The original patch was not separated into
|
||||
individual commits unfortunately, there fore only the relevant line is
|
||||
being brought in. The original analysis:
|
||||
|
||||
It looks like both CloudAPI and WeldrAPI consume memory, process can go
|
||||
up to several gigabytes pretty quickly just by running a simple script.
|
||||
|
||||
while sleep 0.001; do
|
||||
curl --unix-socket /run/weldr/api.socket -XGET http://localhost/api/
|
||||
curl --unix-socket /run/cloudapi/api.socket -XGET http://localhost/api/
|
||||
done
|
||||
|
||||
There is a logrus logger method called Write and WriteLevel which create
|
||||
a new logging entry, create a PIPE and spawn a goroutine that is reading
|
||||
from that PIPE. The caller is expected to close the PIPE writer which
|
||||
was not done.
|
||||
|
||||
(cherry picked from commit 0f97a1c1668827086dfa335c9fb427cbb28782b2)
|
||||
---
|
||||
internal/common/echo_logrus.go | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/internal/common/echo_logrus.go b/internal/common/echo_logrus.go
|
||||
index 198ce17310..600cce2d74 100644
|
||||
--- a/internal/common/echo_logrus.go
|
||||
+++ b/internal/common/echo_logrus.go
|
||||
@@ -178,5 +178,9 @@ func (l *EchoLogrusLogger) Panicj(j lslog.JSON) {
|
||||
}
|
||||
|
||||
func (l *EchoLogrusLogger) Write(p []byte) (n int, err error) {
|
||||
- return l.Logger.WithContext(l.Ctx).Writer().Write(p)
|
||||
+ // Writer() from logrus returns PIPE that needs to be closed
|
||||
+ w := l.Logger.WithContext(l.Ctx).Writer()
|
||||
+ defer w.Close()
|
||||
+
|
||||
+ return w.Write(p)
|
||||
}
|
||||
@ -1,54 +0,0 @@
|
||||
From 514f82421bb2444fc73efca5898389329fd1e38d Mon Sep 17 00:00:00 2001
|
||||
From: Gianluca Zuccarelli <gianlucazuccarelli@gmail.com>
|
||||
Date: Mon, 8 Sep 2025 14:11:50 +0100
|
||||
Subject: [PATCH] internal/blueprint: add JSON tailoring to bp conversion
|
||||
|
||||
The blueprint convert function was missing the json tailoring case. This meant that
|
||||
if the json tailoring customization was provided in the blueprint, the customization
|
||||
would get ignored and the tailoring profile would not be applied to the image.
|
||||
---
|
||||
internal/blueprint/blueprint.go | 4 ++++
|
||||
internal/blueprint/blueprint_convert_test.go | 8 ++++++++
|
||||
2 files changed, 12 insertions(+)
|
||||
|
||||
diff --git a/internal/blueprint/blueprint.go b/internal/blueprint/blueprint.go
|
||||
index 63f8aa5b71..c01a2c6a48 100644
|
||||
--- a/internal/blueprint/blueprint.go
|
||||
+++ b/internal/blueprint/blueprint.go
|
||||
@@ -253,6 +253,10 @@ func Convert(bp Blueprint) iblueprint.Blueprint {
|
||||
itailoring := iblueprint.OpenSCAPTailoringCustomizations(*tailoring)
|
||||
ioscap.Tailoring = &itailoring
|
||||
}
|
||||
+ if jsonTailoring := oscap.JSONTailoring; jsonTailoring != nil {
|
||||
+ ijsonTailoring := iblueprint.OpenSCAPJSONTailoringCustomizations(*jsonTailoring)
|
||||
+ ioscap.JSONTailoring = &ijsonTailoring
|
||||
+ }
|
||||
customizations.OpenSCAP = &ioscap
|
||||
}
|
||||
if ign := c.Ignition; ign != nil {
|
||||
diff --git a/internal/blueprint/blueprint_convert_test.go b/internal/blueprint/blueprint_convert_test.go
|
||||
index 520e18271d..2c652f0658 100644
|
||||
--- a/internal/blueprint/blueprint_convert_test.go
|
||||
+++ b/internal/blueprint/blueprint_convert_test.go
|
||||
@@ -233,6 +233,10 @@ func TestConvert(t *testing.T) {
|
||||
Selected: []string{"cloth"},
|
||||
Unselected: []string{"leather"},
|
||||
},
|
||||
+ JSONTailoring: &OpenSCAPJSONTailoringCustomizations{
|
||||
+ ProfileID: "tailored_profile",
|
||||
+ Filepath: "path-to-json-file",
|
||||
+ },
|
||||
},
|
||||
Ignition: &IgnitionCustomization{
|
||||
Embedded: &EmbeddedIgnitionCustomization{
|
||||
@@ -532,6 +536,10 @@ func TestConvert(t *testing.T) {
|
||||
Selected: []string{"cloth"},
|
||||
Unselected: []string{"leather"},
|
||||
},
|
||||
+ JSONTailoring: &iblueprint.OpenSCAPJSONTailoringCustomizations{
|
||||
+ ProfileID: "tailored_profile",
|
||||
+ Filepath: "path-to-json-file",
|
||||
+ },
|
||||
},
|
||||
Ignition: &iblueprint.IgnitionCustomization{
|
||||
Embedded: &iblueprint.EmbeddedIgnitionCustomization{
|
||||
@ -8,11 +8,11 @@
|
||||
%bcond_with relax_requires
|
||||
|
||||
# The minimum required osbuild version
|
||||
%global min_osbuild_version 139
|
||||
%global min_osbuild_version 157
|
||||
|
||||
%global goipath github.com/osbuild/osbuild-composer
|
||||
|
||||
Version: 134.1
|
||||
Version: 149
|
||||
|
||||
%gometa
|
||||
|
||||
@ -25,7 +25,7 @@ It is compatible with composer-cli and cockpit-composer clients.
|
||||
}
|
||||
|
||||
Name: osbuild-composer
|
||||
Release: 3%{?dist}.alma.1
|
||||
Release: 1%{?dist}.alma.2
|
||||
Summary: An image building service based on osbuild
|
||||
|
||||
# osbuild-composer doesn't have support for building i686 and armv7hl images
|
||||
@ -36,19 +36,9 @@ License: Apache-2.0
|
||||
URL: %{gourl}
|
||||
Source0: %{gosource}
|
||||
|
||||
# https://github.com/osbuild/osbuild-composer/pull/4857
|
||||
Patch0: json-tailoring-conversion.patch
|
||||
|
||||
# https://github.com/osbuild/osbuild-composer/pull/4867
|
||||
Patch1: fix-unclosed-logrus-logging-pipes.patch
|
||||
|
||||
# https://github.com/osbuild/osbuild-composer/pull/4841
|
||||
Patch2: update-go-jose-dependency.patch
|
||||
|
||||
# AlmaLinux Patch
|
||||
Patch1001: 0001-Remove-libreport-rhel-anaconda-bugzilla-from-anacond.patch
|
||||
Patch1002: 0002-Add-AlmaLinux-support.patch
|
||||
Patch1003: 0003-Add-AlmaLinux-Kitten-support.patch
|
||||
Patch1: 0001-Backport-https-github.com-osbuild-images-pull-1926.patch
|
||||
|
||||
|
||||
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
|
||||
BuildRequires: systemd
|
||||
@ -119,8 +109,6 @@ export LDFLAGS="${LDFLAGS} -X 'github.com/osbuild/osbuild-composer/internal/comm
|
||||
%gobuild ${GOTAGS:+-tags=$GOTAGS} -o _bin/osbuild-composer %{goipath}/cmd/osbuild-composer
|
||||
%gobuild ${GOTAGS:+-tags=$GOTAGS} -o _bin/osbuild-worker %{goipath}/cmd/osbuild-worker
|
||||
%gobuild ${GOTAGS:+-tags=$GOTAGS} -o _bin/osbuild-worker-executor %{goipath}/cmd/osbuild-worker-executor
|
||||
%gobuild ${GOTAGS:+-tags=$GOTAGS} -o _bin/osbuild-jobsite-manager %{goipath}/cmd/osbuild-jobsite-manager
|
||||
%gobuild ${GOTAGS:+-tags=$GOTAGS} -o _bin/osbuild-jobsite-builder %{goipath}/cmd/osbuild-jobsite-builder
|
||||
|
||||
make man
|
||||
|
||||
@ -129,13 +117,6 @@ make man
|
||||
# Build test binaries with `go test -c`, so that they can take advantage of
|
||||
# golang's testing package. The golang rpm macros don't support building them
|
||||
# directly. Thus, do it manually, taking care to also include a build id.
|
||||
#
|
||||
# On Fedora, also turn off go modules and set the path to the one into which
|
||||
# the golang-* packages install source code.
|
||||
%if 0%{?fedora}
|
||||
export GO111MODULE=off
|
||||
export GOPATH=%{gobuilddir}:%{gopath}
|
||||
%endif
|
||||
|
||||
TEST_LDFLAGS="${LDFLAGS:-} -B 0x$(od -N 20 -An -tx1 -w100 /dev/urandom | tr -d ' ')"
|
||||
|
||||
@ -146,7 +127,6 @@ GOTAGS="${GOTAGS:+$GOTAGS,}rhel%{rhel}"
|
||||
go test -c -tags="integration${GOTAGS:+,$GOTAGS}" -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-composer-cli-tests %{goipath}/cmd/osbuild-composer-cli-tests
|
||||
go test -c -tags="integration${GOTAGS:+,$GOTAGS}" -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-dnf-json-tests %{goipath}/cmd/osbuild-dnf-json-tests
|
||||
go test -c -tags="integration${GOTAGS:+,$GOTAGS}" -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-weldr-tests %{goipath}/internal/client/
|
||||
go test -c -tags="integration${GOTAGS:+,$GOTAGS}" -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-image-tests %{goipath}/cmd/osbuild-image-tests
|
||||
go test -c -tags="integration${GOTAGS:+,$GOTAGS}" -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-auth-tests %{goipath}/cmd/osbuild-auth-tests
|
||||
go test -c -tags="integration${GOTAGS:+,$GOTAGS}" -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-koji-tests %{goipath}/cmd/osbuild-koji-tests
|
||||
go test -c -tags="integration${GOTAGS:+,$GOTAGS}" -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-composer-dbjobqueue-tests %{goipath}/cmd/osbuild-composer-dbjobqueue-tests
|
||||
@ -160,8 +140,6 @@ install -m 0755 -vd %{buildroot}%
|
||||
install -m 0755 -vp _bin/osbuild-composer %{buildroot}%{_libexecdir}/osbuild-composer/
|
||||
install -m 0755 -vp _bin/osbuild-worker %{buildroot}%{_libexecdir}/osbuild-composer/
|
||||
install -m 0755 -vp _bin/osbuild-worker-executor %{buildroot}%{_libexecdir}/osbuild-composer/
|
||||
install -m 0755 -vp _bin/osbuild-jobsite-manager %{buildroot}%{_libexecdir}/osbuild-composer/
|
||||
install -m 0755 -vp _bin/osbuild-jobsite-builder %{buildroot}%{_libexecdir}/osbuild-composer/
|
||||
|
||||
# Only include repositories for the distribution and release
|
||||
install -m 0755 -vd %{buildroot}%{_datadir}/osbuild-composer/repositories
|
||||
@ -171,13 +149,12 @@ install -m 0755 -vd %{buildroot}%
|
||||
%if 0%{?almalinux}
|
||||
# AL10 support all AL versions
|
||||
%if 0%{?almalinux} >= 10
|
||||
install -m 0644 -vp repositories/almalinux* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
||||
install -m 0644 -vp repositories/kitten-10* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
||||
install -m 0644 -vp vendor/github.com/osbuild/images/data/repositories/almalinux* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
||||
%else
|
||||
# AL8 supports in AL9 and AL8
|
||||
install -m 0644 -vp repositories/almalinux-8* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
||||
install -m 0644 -vp vendor/github.com/osbuild/images/data/repositories/almalinux-8* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
||||
%if 0%{?rhel} == 9
|
||||
install -m 0644 -vp repositories/almalinux-9* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
||||
install -m 0644 -vp vendor/github.com/osbuild/images/data/repositories/almalinux-9* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
||||
%endif
|
||||
%endif
|
||||
|
||||
@ -251,7 +228,6 @@ install -m 0755 -vd %{buildroot}%
|
||||
install -m 0755 -vp _bin/osbuild-composer-cli-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
||||
install -m 0755 -vp _bin/osbuild-weldr-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
||||
install -m 0755 -vp _bin/osbuild-dnf-json-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
||||
install -m 0755 -vp _bin/osbuild-image-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
||||
install -m 0755 -vp _bin/osbuild-auth-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
||||
install -m 0755 -vp _bin/osbuild-koji-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
||||
install -m 0755 -vp _bin/osbuild-composer-dbjobqueue-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
||||
@ -284,9 +260,6 @@ install -m 0644 -vp test/data/ansible/* %{buildroot}%
|
||||
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/azure
|
||||
install -m 0644 -vp test/data/azure/* %{buildroot}%{_datadir}/tests/osbuild-composer/azure/
|
||||
|
||||
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/manifests
|
||||
install -m 0644 -vp test/data/manifests/* %{buildroot}%{_datadir}/tests/osbuild-composer/manifests/
|
||||
|
||||
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/cloud-init
|
||||
install -m 0644 -vp test/data/cloud-init/* %{buildroot}%{_datadir}/tests/osbuild-composer/cloud-init/
|
||||
|
||||
@ -323,14 +296,12 @@ install -m 0644 -vp test/data/rhel-upgrade/* %{buildroot}%
|
||||
%check
|
||||
export GOFLAGS="-buildmode=pie"
|
||||
%if 0%{?rhel}
|
||||
export GOFLAGS+=" -mod=vendor -tags=exclude_graphdriver_btrfs"
|
||||
export GOFLAGS+=" -tags=exclude_graphdriver_btrfs"
|
||||
%endif
|
||||
|
||||
export GOPATH=$PWD/_build:%{gopath}
|
||||
# cd inside GOPATH, otherwise go with GO111MODULE=off ignores vendor directory
|
||||
cd $PWD/_build/src/%{goipath}
|
||||
%gotest ./...
|
||||
%else
|
||||
%gocheck
|
||||
%endif
|
||||
|
||||
%post
|
||||
%systemd_post osbuild-composer.service osbuild-composer.socket osbuild-composer-api.socket osbuild-composer-prometheus.socket osbuild-remote-worker.socket
|
||||
@ -387,8 +358,6 @@ The worker for osbuild-composer
|
||||
%files worker
|
||||
%{_libexecdir}/osbuild-composer/osbuild-worker
|
||||
%{_libexecdir}/osbuild-composer/osbuild-worker-executor
|
||||
%{_libexecdir}/osbuild-composer/osbuild-jobsite-manager
|
||||
%{_libexecdir}/osbuild-composer/osbuild-jobsite-builder
|
||||
%{_unitdir}/osbuild-worker@.service
|
||||
%{_unitdir}/osbuild-remote-worker@.service
|
||||
|
||||
@ -485,23 +454,47 @@ Integration tests to be run on a pristine-dedicated system to test the osbuild-c
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Nov 05 2025 Eduard Abdullin <eabdullin@almalinux.org> - 134.1-3.alma.1
|
||||
- Add AlmaLinux support patch
|
||||
- Add AlmaLinux-Kitten support patch
|
||||
* Thu Nov 13 2025 Eduard Abdullin <eabdullin@almalinux.org> - 149-1.alma.2
|
||||
- Add AlmaLinux repositories
|
||||
|
||||
* Wed Oct 15 2025 Gianluca Zuccarelli <gzuccare@redhat.com> - 134.1-3
|
||||
- Fix json tailoring blueprint conversion
|
||||
Resolves: RHEL-115392
|
||||
- Fix unclosed logrus logging pipes
|
||||
Resolves: RHEL-121533
|
||||
- Update go-jose dependency
|
||||
Resolves: RHEL-82957 (CVE-2025-27144)
|
||||
* Thu Aug 21 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 149-1
|
||||
- New upstream release
|
||||
|
||||
* Tue Jun 24 2025 Ondřej Budai <obudai@redhat.com> - 134.1-2
|
||||
- Resolves: RHEL-89221 (CVE-2025-22871)
|
||||
* Wed Aug 06 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 147-1
|
||||
- New upstream release
|
||||
|
||||
* Fri Apr 25 2025 Tomáš Hozza <thozza@redhat.com> - 134.1-1
|
||||
- Resolves: RHEL-84629
|
||||
* Wed Jul 23 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 146-1
|
||||
- New upstream release
|
||||
|
||||
* Sat Jul 12 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 145-1
|
||||
- New upstream release
|
||||
|
||||
* Wed Jun 25 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 144-1
|
||||
- New upstream release
|
||||
|
||||
* Wed Jun 11 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 143-1
|
||||
- New upstream release
|
||||
|
||||
* Thu Jun 05 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 142-1
|
||||
- New upstream release
|
||||
|
||||
* Mon May 19 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 141-1
|
||||
- New upstream release
|
||||
|
||||
* Wed Apr 23 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 139-1
|
||||
- New upstream release
|
||||
|
||||
* Wed Apr 16 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 138-1
|
||||
- New upstream release
|
||||
|
||||
* Thu Apr 03 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 137-1
|
||||
- New upstream release
|
||||
|
||||
* Mon Mar 31 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 136-1
|
||||
- New upstream release
|
||||
|
||||
* Wed Mar 05 2025 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 135-1
|
||||
- New upstream release
|
||||
|
||||
* Mon Feb 24 2025 Tomáš Hozza <thozza@redhat.com> - 134-1
|
||||
- New upstream release
|
||||
|
||||
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (osbuild-composer-134.1.tar.gz) = ffb5041664b448a54184a87240621f5d4862695779fe28fd41dceef3af4eaeb5ed84299195ce7b6ce424f4e86bf5ce44070e468dfc49b0260a0e8c02097d539f
|
||||
SHA512 (osbuild-composer-149.tar.gz) = b7071faeb915c982c51fe0a95823b25e5da929e29539d941af6670598abca3668f99e2ece362c0e34a33cf5d058b62cc7a7b07f9ec1d1825c2a64ea7230b0bcc
|
||||
|
||||
@ -1,179 +0,0 @@
|
||||
From 8d9b6fd1f471eeb919e6bb7049b221127505e841 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Budai?= <ondrej@budai.cz>
|
||||
Date: Tue, 26 Aug 2025 13:39:35 +0200
|
||||
Subject: [PATCH 1/2] go.mod: update go-jose v4.0.5 to fix CVE-2025-27144
|
||||
|
||||
---
|
||||
go.mod | 2 +-
|
||||
go.sum | 4 ++--
|
||||
vendor/github.com/go-jose/go-jose/v4/CONTRIBUTING.md | 6 ------
|
||||
vendor/github.com/go-jose/go-jose/v4/README.md | 10 +---------
|
||||
vendor/github.com/go-jose/go-jose/v4/jwe.go | 5 +++--
|
||||
vendor/github.com/go-jose/go-jose/v4/jwk.go | 4 ++--
|
||||
vendor/github.com/go-jose/go-jose/v4/jws.go | 5 +++--
|
||||
vendor/modules.txt | 2 +-
|
||||
8 files changed, 13 insertions(+), 25 deletions(-)
|
||||
|
||||
diff --git a/go.mod b/go.mod
|
||||
index f32612ffdf..bdb089ef3e 100644
|
||||
--- a/go.mod
|
||||
+++ b/go.mod
|
||||
@@ -133,7 +133,7 @@ require (
|
||||
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
|
||||
github.com/felixge/httpsnoop v1.0.4 // indirect
|
||||
github.com/ghodss/yaml v1.0.0 // indirect
|
||||
- github.com/go-jose/go-jose/v4 v4.0.4 // indirect
|
||||
+ github.com/go-jose/go-jose/v4 v4.0.5 // indirect
|
||||
github.com/go-logr/logr v1.4.2 // indirect
|
||||
github.com/go-logr/stdr v1.2.2 // indirect
|
||||
github.com/go-openapi/analysis v0.23.0 // indirect
|
||||
diff --git a/go.sum b/go.sum
|
||||
index 42ee5ca2d1..d415139ffe 100644
|
||||
--- a/go.sum
|
||||
+++ b/go.sum
|
||||
@@ -252,8 +252,8 @@ github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeME
|
||||
github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs=
|
||||
github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA=
|
||||
github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og=
|
||||
-github.com/go-jose/go-jose/v4 v4.0.4 h1:VsjPI33J0SB9vQM6PLmNjoHqMQNGPiZ0rHL7Ni7Q6/E=
|
||||
-github.com/go-jose/go-jose/v4 v4.0.4/go.mod h1:NKb5HO1EZccyMpiZNbdUw/14tiXNyUJh188dfnMCAfc=
|
||||
+github.com/go-jose/go-jose/v4 v4.0.5 h1:M6T8+mKZl/+fNNuFHvGIzDz7BTLQPIounk/b9dw3AaE=
|
||||
+github.com/go-jose/go-jose/v4 v4.0.5/go.mod h1:s3P1lRrkT8igV8D9OjyL4WRyHvjB6a4JSllnOrmmBOA=
|
||||
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
|
||||
github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
|
||||
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
|
||||
diff --git a/vendor/github.com/go-jose/go-jose/v4/CONTRIBUTING.md b/vendor/github.com/go-jose/go-jose/v4/CONTRIBUTING.md
|
||||
index b63e1f8fee..4b4805add6 100644
|
||||
--- a/vendor/github.com/go-jose/go-jose/v4/CONTRIBUTING.md
|
||||
+++ b/vendor/github.com/go-jose/go-jose/v4/CONTRIBUTING.md
|
||||
@@ -7,9 +7,3 @@ When submitting code, please make every effort to follow existing conventions
|
||||
and style in order to keep the code as readable as possible. Please also make
|
||||
sure all tests pass by running `go test`, and format your code with `go fmt`.
|
||||
We also recommend using `golint` and `errcheck`.
|
||||
-
|
||||
-Before your code can be accepted into the project you must also sign the
|
||||
-Individual Contributor License Agreement. We use [cla-assistant.io][1] and you
|
||||
-will be prompted to sign once a pull request is opened.
|
||||
-
|
||||
-[1]: https://cla-assistant.io/
|
||||
diff --git a/vendor/github.com/go-jose/go-jose/v4/README.md b/vendor/github.com/go-jose/go-jose/v4/README.md
|
||||
index 79a7c5ecc8..02b5749546 100644
|
||||
--- a/vendor/github.com/go-jose/go-jose/v4/README.md
|
||||
+++ b/vendor/github.com/go-jose/go-jose/v4/README.md
|
||||
@@ -9,14 +9,6 @@ Package jose aims to provide an implementation of the Javascript Object Signing
|
||||
and Encryption set of standards. This includes support for JSON Web Encryption,
|
||||
JSON Web Signature, and JSON Web Token standards.
|
||||
|
||||
-**Disclaimer**: This library contains encryption software that is subject to
|
||||
-the U.S. Export Administration Regulations. You may not export, re-export,
|
||||
-transfer or download this code or any part of it in violation of any United
|
||||
-States law, directive or regulation. In particular this software may not be
|
||||
-exported or re-exported in any form or on any media to Iran, North Sudan,
|
||||
-Syria, Cuba, or North Korea, or to denied persons or entities mentioned on any
|
||||
-US maintained blocked list.
|
||||
-
|
||||
## Overview
|
||||
|
||||
The implementation follows the
|
||||
@@ -109,6 +101,6 @@ allows attaching a key id.
|
||||
|
||||
Examples can be found in the Godoc
|
||||
reference for this package. The
|
||||
-[`jose-util`](https://github.com/go-jose/go-jose/tree/v4/jose-util)
|
||||
+[`jose-util`](https://github.com/go-jose/go-jose/tree/main/jose-util)
|
||||
subdirectory also contains a small command-line utility which might be useful
|
||||
as an example as well.
|
||||
diff --git a/vendor/github.com/go-jose/go-jose/v4/jwe.go b/vendor/github.com/go-jose/go-jose/v4/jwe.go
|
||||
index 89f03ee3e1..9f1322dccc 100644
|
||||
--- a/vendor/github.com/go-jose/go-jose/v4/jwe.go
|
||||
+++ b/vendor/github.com/go-jose/go-jose/v4/jwe.go
|
||||
@@ -288,10 +288,11 @@ func ParseEncryptedCompact(
|
||||
keyAlgorithms []KeyAlgorithm,
|
||||
contentEncryption []ContentEncryption,
|
||||
) (*JSONWebEncryption, error) {
|
||||
- parts := strings.Split(input, ".")
|
||||
- if len(parts) != 5 {
|
||||
+ // Five parts is four separators
|
||||
+ if strings.Count(input, ".") != 4 {
|
||||
return nil, fmt.Errorf("go-jose/go-jose: compact JWE format must have five parts")
|
||||
}
|
||||
+ parts := strings.SplitN(input, ".", 5)
|
||||
|
||||
rawProtected, err := base64.RawURLEncoding.DecodeString(parts[0])
|
||||
if err != nil {
|
||||
diff --git a/vendor/github.com/go-jose/go-jose/v4/jwk.go b/vendor/github.com/go-jose/go-jose/v4/jwk.go
|
||||
index 8a52842106..9e57e93ba2 100644
|
||||
--- a/vendor/github.com/go-jose/go-jose/v4/jwk.go
|
||||
+++ b/vendor/github.com/go-jose/go-jose/v4/jwk.go
|
||||
@@ -239,10 +239,10 @@ func (k *JSONWebKey) UnmarshalJSON(data []byte) (err error) {
|
||||
keyPub = key
|
||||
}
|
||||
} else {
|
||||
- err = fmt.Errorf("go-jose/go-jose: unknown curve %s'", raw.Crv)
|
||||
+ return fmt.Errorf("go-jose/go-jose: unknown curve %s'", raw.Crv)
|
||||
}
|
||||
default:
|
||||
- err = fmt.Errorf("go-jose/go-jose: unknown json web key type '%s'", raw.Kty)
|
||||
+ return fmt.Errorf("go-jose/go-jose: unknown json web key type '%s'", raw.Kty)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
diff --git a/vendor/github.com/go-jose/go-jose/v4/jws.go b/vendor/github.com/go-jose/go-jose/v4/jws.go
|
||||
index 3a912301af..d09d8ba507 100644
|
||||
--- a/vendor/github.com/go-jose/go-jose/v4/jws.go
|
||||
+++ b/vendor/github.com/go-jose/go-jose/v4/jws.go
|
||||
@@ -327,10 +327,11 @@ func parseSignedCompact(
|
||||
payload []byte,
|
||||
signatureAlgorithms []SignatureAlgorithm,
|
||||
) (*JSONWebSignature, error) {
|
||||
- parts := strings.Split(input, ".")
|
||||
- if len(parts) != 3 {
|
||||
+ // Three parts is two separators
|
||||
+ if strings.Count(input, ".") != 2 {
|
||||
return nil, fmt.Errorf("go-jose/go-jose: compact JWS format must have three parts")
|
||||
}
|
||||
+ parts := strings.SplitN(input, ".", 3)
|
||||
|
||||
if parts[1] != "" && payload != nil {
|
||||
return nil, fmt.Errorf("go-jose/go-jose: payload is not detached")
|
||||
diff --git a/vendor/modules.txt b/vendor/modules.txt
|
||||
index c85cf5570b..a0e70865d4 100644
|
||||
--- a/vendor/modules.txt
|
||||
+++ b/vendor/modules.txt
|
||||
@@ -693,7 +693,7 @@ github.com/getsentry/sentry-go/logrus
|
||||
# github.com/ghodss/yaml v1.0.0
|
||||
## explicit
|
||||
github.com/ghodss/yaml
|
||||
-# github.com/go-jose/go-jose/v4 v4.0.4
|
||||
+# github.com/go-jose/go-jose/v4 v4.0.5
|
||||
## explicit; go 1.21
|
||||
github.com/go-jose/go-jose/v4
|
||||
github.com/go-jose/go-jose/v4/cipher
|
||||
|
||||
From bab603f74db931475511cd63e6ecf67bd63da728 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Budai?= <ondrej@budai.cz>
|
||||
Date: Tue, 26 Aug 2025 13:46:51 +0200
|
||||
Subject: [PATCH 2/2] github: ignore unused functions in shellcheck
|
||||
|
||||
Seems to be a false positive (shellcheck doesn't understand traps).
|
||||
---
|
||||
.github/workflows/tests.yml | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
|
||||
index befc48d529..c4e8369960 100644
|
||||
--- a/.github/workflows/tests.yml
|
||||
+++ b/.github/workflows/tests.yml
|
||||
@@ -212,9 +212,9 @@ jobs:
|
||||
with:
|
||||
ignore: vendor # We don't want to fix the code in vendored dependencies
|
||||
env:
|
||||
- # don't check /etc/os-release sourcing, allow useless cats to live inside our codebase, and
|
||||
- # allow seemingly unreachable commands
|
||||
- SHELLCHECK_OPTS: -e SC1091 -e SC2002 -e SC2317
|
||||
+ # don't check /etc/os-release sourcing, allow useless cats to live inside our codebase,
|
||||
+ # allow seemingly unreachable commands, and allow unused functions
|
||||
+ SHELLCHECK_OPTS: -e SC1091 -e SC2002 -e SC2317 -e SC2329
|
||||
|
||||
- name: Do not doube trap signals inside test scripts
|
||||
run: |
|
||||
Loading…
Reference in New Issue
Block a user