Update to v20250124

Backports already included in release.
Resolves: RHEL-76320

Signed-off-by: Victor Toso <victortoso@redhat.com>
This commit is contained in:
Victor Toso 2025-01-27 13:22:45 +01:00
parent e66267f588
commit dca69b9541
5 changed files with 11 additions and 468 deletions

View File

@ -1,192 +0,0 @@
From 1e530bc8eef3bc90ba24637e068c7e4a37967d35 Mon Sep 17 00:00:00 2001
From: Victor Toso <victortoso@redhat.com>
Date: Thu, 5 Sep 2024 16:28:56 +0200
Subject: [PATCH 1/3] rhel: Add RHEL 10.0 (prerelease)
Based on RHEL 9.5
Patches from:
https://gitlab.com/libosinfo/osinfo-db/-/merge_requests/767
Signed-off-by: Victor Toso <victortoso@redhat.com>
---
os/redhat.com/rhel-10.0.xml | 167 ++++++++++++++++++++++++++++++++++++
1 file changed, 167 insertions(+)
create mode 100644 os/redhat.com/rhel-10.0.xml
diff --git a/os/redhat.com/rhel-10.0.xml b/os/redhat.com/rhel-10.0.xml
new file mode 100644
index 0000000..762376c
--- /dev/null
+++ b/os/redhat.com/rhel-10.0.xml
@@ -0,0 +1,167 @@
+<?xml version="1.0"?>
+<libosinfo version="0.0.1">
+ <!-- Licensed under the GNU General Public License version 2 or later.
+ See http://www.gnu.org/licenses/ for a copy of the license text -->
+ <os id="http://redhat.com/rhel/10.0">
+ <short-id>rhel10.0</short-id>
+ <name>Red Hat Enterprise Linux 10.0</name>
+ <version>10.0</version>
+ <vendor>Red Hat, Inc</vendor>
+ <vendor xml:lang="zh_Hans">Red Hat, Inc</vendor>
+ <vendor xml:lang="ka">Red Hat, Inc</vendor>
+ <vendor xml:lang="ko">Red Hat, Inc</vendor>
+ <vendor xml:lang="fi">Red Hat, Inc</vendor>
+ <vendor xml:lang="uk">Red Hat, Inc</vendor>
+ <vendor xml:lang="tr">Red Hat, Inc</vendor>
+ <vendor xml:lang="pt_BR">Red Hat, Inc</vendor>
+ <vendor xml:lang="pl">Red Hat, Inc</vendor>
+ <vendor xml:lang="ja">Red Hat, Inc</vendor>
+ <vendor xml:lang="it">Red Hat, Inc</vendor>
+ <vendor xml:lang="id">Red Hat, Inc</vendor>
+ <vendor xml:lang="fr">Red Hat, Inc</vendor>
+ <vendor xml:lang="es">Red Hat, Inc</vendor>
+ <vendor xml:lang="de">Red Hat, Inc</vendor>
+ <vendor xml:lang="ca">Red Hat, Inc</vendor>
+ <family>linux</family>
+ <distro>rhel</distro>
+ <upgrades id="http://redhat.com/rhel/9.5"/>
+ <derives-from id="http://redhat.com/rhel/9.5"/>
+ <release-status>prerelease</release-status>
+ <media arch="x86_64">
+ <iso>
+ <volume-id>RHEL-10-0(-[0-9]|[1-9][0-9])?.*x86_64</volume-id>
+ </iso>
+ <kernel>isolinux/vmlinuz</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ <media arch="aarch64">
+ <iso>
+ <volume-id>RHEL-10-0(-[0-9]|[1-9][0-9])?.*aarch64$</volume-id>
+ </iso>
+ <kernel>images/pxeboot/vmlinuz</kernel>
+ <initrd>images/pxeboot/initrd.img</initrd>
+ </media>
+ <media arch="ppc64le">
+ <iso>
+ <volume-id>RHEL[_-]10[_-]0([_-]([0-9]|[1-9][0-9]))?.*ppc64le$</volume-id>
+ </iso>
+ <kernel>ppc/ppc64/vmlinuz</kernel>
+ <initrd>ppc/ppc64/initrd.img</initrd>
+ </media>
+ <media arch="s390x">
+ <iso>
+ <volume-id>RHEL-10-0(-[0-9]|[1-9][0-9])?.*s390x$</volume-id>
+ </iso>
+ </media>
+ <tree arch="aarch64">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.0(-[0-9]|[1-9][0-9])?$</version>
+ <arch>aarch64</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="ppc64le">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.0(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>ppc64le</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="s390x">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.0(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>s390x</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="x86_64">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.0(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>x86_64</arch>
+ </treeinfo>
+ </tree>
+ <resources arch="ppc64le">
+ <minimum>
+ <n-cpus>1</n-cpus>
+ <cpu>1000000000</cpu>
+ <ram>2147483648</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>4000000000</cpu>
+ <ram>2147483648</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>768</n-cpus>
+ <ram>35184372088832</ram>
+ </maximum>
+ </resources>
+ <resources arch="x86_64">
+ <minimum>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>768</n-cpus>
+ <ram>26388279066624</ram>
+ </maximum>
+ <network-install>
+ <ram>3221225472</ram>
+ </network-install>
+ </resources>
+ <resources arch="s390x">
+ <minimum>
+ <ram>1073741824</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>340</n-cpus>
+ <ram>17592186044416</ram>
+ </maximum>
+ <network-install>
+ <ram>2147483648</ram>
+ </network-install>
+ </resources>
+ <resources arch="aarch64">
+ <minimum>
+ <ram>2147483648</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>256</n-cpus>
+ <ram>1649267441664</ram>
+ </maximum>
+ </resources>
+ <resources arch="all">
+ <minimum>
+ <n-cpus>1</n-cpus>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ </resources>
+ <installer>
+ <script id="http://redhat.com/rhel/kickstart/jeos"/>
+ <script id="http://redhat.com/rhel/kickstart/desktop"/>
+ </installer>
+ </os>
+</libosinfo>
--
2.46.0

View File

@ -1,191 +0,0 @@
From 734b730416c816df964e93f603a827f1d20932cf Mon Sep 17 00:00:00 2001
From: Victor Toso <victortoso@redhat.com>
Date: Thu, 5 Sep 2024 16:29:49 +0200
Subject: [PATCH 2/3] rhel: Add RHEL 10 unknown
Based on RHEL 10.0
Patches from:
https://gitlab.com/libosinfo/osinfo-db/-/merge_requests/767
Signed-off-by: Victor Toso <victortoso@redhat.com>
---
os/redhat.com/rhel-10-unknown.xml | 166 ++++++++++++++++++++++++++++++
1 file changed, 166 insertions(+)
create mode 100644 os/redhat.com/rhel-10-unknown.xml
diff --git a/os/redhat.com/rhel-10-unknown.xml b/os/redhat.com/rhel-10-unknown.xml
new file mode 100644
index 0000000..b384c03
--- /dev/null
+++ b/os/redhat.com/rhel-10-unknown.xml
@@ -0,0 +1,166 @@
+<?xml version="1.0"?>
+<libosinfo version="0.0.1">
+ <!-- Licensed under the GNU General Public License version 2 or later.
+ See http://www.gnu.org/licenses/ for a copy of the license text -->
+ <os id="http://redhat.com/rhel/10-unknown">
+ <short-id>rhel10-unknown</short-id>
+ <name>Red Hat Enterprise Linux 10 Unknown</name>
+ <version>10-unknown</version>
+ <vendor>Red Hat, Inc</vendor>
+ <vendor xml:lang="zh_Hans">Red Hat, Inc</vendor>
+ <vendor xml:lang="ka">Red Hat, Inc</vendor>
+ <vendor xml:lang="ko">Red Hat, Inc</vendor>
+ <vendor xml:lang="fi">Red Hat, Inc</vendor>
+ <vendor xml:lang="uk">Red Hat, Inc</vendor>
+ <vendor xml:lang="tr">Red Hat, Inc</vendor>
+ <vendor xml:lang="pt_BR">Red Hat, Inc</vendor>
+ <vendor xml:lang="pl">Red Hat, Inc</vendor>
+ <vendor xml:lang="ja">Red Hat, Inc</vendor>
+ <vendor xml:lang="it">Red Hat, Inc</vendor>
+ <vendor xml:lang="id">Red Hat, Inc</vendor>
+ <vendor xml:lang="fr">Red Hat, Inc</vendor>
+ <vendor xml:lang="es">Red Hat, Inc</vendor>
+ <vendor xml:lang="de">Red Hat, Inc</vendor>
+ <vendor xml:lang="ca">Red Hat, Inc</vendor>
+ <family>linux</family>
+ <distro>rhel</distro>
+ <upgrades id="http://redhat.com/rhel/10.0"/>
+ <derives-from id="http://redhat.com/rhel/10.0"/>
+ <media arch="x86_64">
+ <iso>
+ <volume-id>RHEL-10-([1-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*x86_64</volume-id>
+ </iso>
+ <kernel>isolinux/vmlinuz</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ <media arch="aarch64">
+ <iso>
+ <volume-id>RHEL-10-([1-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*aarch64$</volume-id>
+ </iso>
+ <kernel>images/pxeboot/vmlinuz</kernel>
+ <initrd>images/pxeboot/initrd.img</initrd>
+ </media>
+ <media arch="ppc64le">
+ <iso>
+ <volume-id>RHEL[_-]10[_-]([1-9]|[1-9][0-9])([_-]([0-9]|[1-9][0-9]))?.*ppc64le$</volume-id>
+ </iso>
+ <kernel>ppc/ppc64/vmlinuz</kernel>
+ <initrd>ppc/ppc64/initrd.img</initrd>
+ </media>
+ <media arch="s390x">
+ <iso>
+ <volume-id>RHEL-10-([1-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?.*s390x$</volume-id>
+ </iso>
+ </media>
+ <tree arch="aarch64">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.([1-9]|[1-9][0-9])(-[0-9]|[1-9][0-9])?$</version>
+ <arch>aarch64</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="ppc64le">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.([1-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>ppc64le</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="s390x">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.([1-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>s390x</arch>
+ </treeinfo>
+ </tree>
+ <tree arch="x86_64">
+ <treeinfo>
+ <family>Red Hat Enterprise Linux</family>
+ <version>^10.([1-9]|[1-9][0-9])(.([0-9]|[1-9][0-9]))?$</version>
+ <arch>x86_64</arch>
+ </treeinfo>
+ </tree>
+ <resources arch="ppc64le">
+ <minimum>
+ <n-cpus>1</n-cpus>
+ <cpu>1000000000</cpu>
+ <ram>2147483648</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>4000000000</cpu>
+ <ram>2147483648</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>768</n-cpus>
+ <ram>35184372088832</ram>
+ </maximum>
+ </resources>
+ <resources arch="x86_64">
+ <minimum>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>768</n-cpus>
+ <ram>26388279066624</ram>
+ </maximum>
+ <network-install>
+ <ram>3221225472</ram>
+ </network-install>
+ </resources>
+ <resources arch="s390x">
+ <minimum>
+ <ram>1073741824</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>340</n-cpus>
+ <ram>17592186044416</ram>
+ </maximum>
+ <network-install>
+ <ram>2147483648</ram>
+ </network-install>
+ </resources>
+ <resources arch="aarch64">
+ <minimum>
+ <ram>2147483648</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <storage>21474836480</storage>
+ </recommended>
+ <maximum>
+ <n-cpus>256</n-cpus>
+ <ram>1649267441664</ram>
+ </maximum>
+ </resources>
+ <resources arch="all">
+ <minimum>
+ <n-cpus>1</n-cpus>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>10737418240</storage>
+ </minimum>
+ <recommended>
+ <cpu>1000000000</cpu>
+ <ram>1610612736</ram>
+ <storage>21474836480</storage>
+ </recommended>
+ </resources>
+ <installer>
+ <script id="http://redhat.com/rhel/kickstart/jeos"/>
+ <script id="http://redhat.com/rhel/kickstart/desktop"/>
+ </installer>
+ </os>
+</libosinfo>
--
2.46.0

View File

@ -1,64 +0,0 @@
From eacc2d31118ac155f13fbfe89b8b3b5564864f3a Mon Sep 17 00:00:00 2001
From: Victor Toso <victortoso@redhat.com>
Date: Thu, 5 Sep 2024 16:30:39 +0200
Subject: [PATCH 3/3] rhel: Update rhel-unknown upgrades rhel10-unknown
Patches from:
https://gitlab.com/libosinfo/osinfo-db/-/merge_requests/767
Signed-off-by: Victor Toso <victortoso@redhat.com>
---
os/redhat.com/rhel-unknown.xml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/os/redhat.com/rhel-unknown.xml b/os/redhat.com/rhel-unknown.xml
index 1fc72c4..a04211c 100644
--- a/os/redhat.com/rhel-unknown.xml
+++ b/os/redhat.com/rhel-unknown.xml
@@ -35,11 +35,11 @@
<vendor xml:lang="ca">Red Hat, Inc</vendor>
<family>linux</family>
<distro>rhel</distro>
- <upgrades id="http://redhat.com/rhel/9-unknown"/>
+ <upgrades id="http://redhat.com/rhel/10-unknown"/>
<media arch="x86_64">
<iso>
<system-id>LINUX</system-id>
- <volume-id>RHEL-[1-9][0-9]-([0-9]|[1-9][0-9]).*x86_64$</volume-id>
+ <volume-id>RHEL-(1[1-9]|[2-9][0-9])-([0-9]|[1-9][0-9]).*x86_64$</volume-id>
</iso>
<kernel>isolinux/vmlinuz</kernel>
<initrd>isolinux/initrd.img</initrd>
@@ -47,25 +47,25 @@
<media arch="aarch64">
<iso>
<system-id>LINUX</system-id>
- <volume-id>RHEL-[1-9][0-9]-([0-9]|[1-9][0-9]).*aarch64$</volume-id>
+ <volume-id>RHEL-(1[1-9]|[2-9][0-9])-([0-9]|[1-9][0-9]).*aarch64$</volume-id>
</iso>
</media>
<media arch="ppc64">
<iso>
<system-id>PPC</system-id>
- <volume-id>RHEL-[1-9][0-9]-([0-9]|[1-9][0-9]).*ppc64$</volume-id>
+ <volume-id>RHEL-(1[1-9]|[2-9][0-9])-([0-9]|[1-9][0-9]).*ppc64$</volume-id>
</iso>
</media>
<media arch="ppc64le">
<iso>
<system-id>PPC</system-id>
- <volume-id>RHEL[_-][1-9][0-9][_-]([0-9]|[1-9][0-9]).*ppc64le$</volume-id>
+ <volume-id>RHEL[_-](1[1-9]|[2-9][0-9])[_-]([0-9]|[1-9][0-9]).*ppc64le$</volume-id>
</iso>
</media>
<media arch="s390x">
<iso>
<system-id>LINUX</system-id>
- <volume-id>RHEL-[1-9][0-9]-([0-9]|[1-9][0-9]).*s390x$</volume-id>
+ <volume-id>RHEL-(1[1-9]|[2-9][0-9])-([0-9]|[1-9][0-9]).*s390x$</volume-id>
</iso>
</media>
<resources arch="ppc64">
--
2.46.0

View File

@ -1,8 +1,5 @@
# -*- rpm-spec -*-
%define PatchedSource ../%{name}-%{version}-patched.tar.xz
%define ExtractedSource %{name}-%{version}
%define with_mingw 0
%if 0%{?fedora}
%define with_mingw 0%{!?_without_mingw:1}
@ -10,17 +7,13 @@
Summary: osinfo database files
Name: osinfo-db
Version: 20240701
Release: 3%{?dist}
Version: 20250124
Release: 1%{?dist}
License: LGPLv2+
Source0: https://fedorahosted.org/releases/l/i/libosinfo/%{name}-%{version}.tar.xz
Source1: https://fedorahosted.org/releases/l/i/libosinfo/%{name}-%{version}.tar.xz.asc
URL: http://libosinfo.org/
Patch0001: 0001-rhel-Add-RHEL-10.0-prerelease.patch
Patch0002: 0002-rhel-Add-RHEL-10-unknown.patch
Patch0003: 0003-rhel-Update-rhel-unknown-upgrades-rhel10-unknown.patch
BuildRequires: intltool
BuildRequires: git-core
BuildRequires: osinfo-db-tools
BuildArch: noarch
Requires: hwdata
@ -30,23 +23,16 @@ The osinfo database provides information about operating systems and
hypervisor platforms to facilitate the automated configuration and
provisioning of new virtual machines
%prep
%autosetup -S git_am
%build
rm -rf ../%{ExtractedSource}/.git
tar -cvJf %{PatchedSource} ../%{ExtractedSource}/
%install
osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{PatchedSource}
osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0}
%if 0%{?rhel}
# Remove the upstream virtio-win / spice-guest-tools drivers
find %{buildroot}/%{_datadir}/osinfo/os/microsoft.com/ -name "win-*.d" -type d -exec rm -rf {} +
%endif
%if %{with_mingw}
osinfo-db-import --root %{buildroot} --dir %{mingw32_datadir}/osinfo %{PatchedSource}
osinfo-db-import --root %{buildroot} --dir %{mingw64_datadir}/osinfo %{PatchedSource}
osinfo-db-import --root %{buildroot} --dir %{mingw32_datadir}/osinfo %{SOURCE0}
osinfo-db-import --root %{buildroot} --dir %{mingw64_datadir}/osinfo %{SOURCE0}
%endif
%files
@ -61,6 +47,10 @@ osinfo-db-import --root %{buildroot} --dir %{mingw64_datadir}/osinfo %{PatchedSo
%{_datadir}/osinfo/schema
%changelog
* Mon Jan 27 2025 Victor Toso <victortoso@redhat.com> - 20250124-1
- Update to new release (v20250124)
Resolves: rhbz#RHEL-76320
* Thu Sep 05 2024 Victor Toso <victortoso@redhat.com> - 20240701-3
- Add rhel 10.0 and rhel-10-unknown metadata
Related: rhbz#RHEL-56790

View File

@ -1,2 +1,2 @@
SHA512 (osinfo-db-20240701.tar.xz) = 6d96c7a8e9f457344523a88316cbbfca7886f14676edcdbea5d124883fffd7f6afb242f28beb33f3702f416c64d74bd0f8fac6432b025e1479e392433c269b6f
SHA512 (osinfo-db-20240701.tar.xz.asc) = ca2ea4f84adb78237ff23392a1517e65081e712d60848a2de2ccd6d16fbcaf8b97cfa117084a00fe371f63e1280e17aa1f6d77682a24e57577bd8458f5e989c2
SHA512 (osinfo-db-20250124.tar.xz) = 3165ea461ee3c00d42c016724579c787337837cba8a6e5c82f4c7d573f64d2f81cf1fa0a6d8d9f8e24b0badcd593de3caca6135bfa74d8e69eff6d2f26ba1803
SHA512 (osinfo-db-20250124.tar.xz.asc) = 6836bf8991eaa1ac7f8d053d945411705b0f8a5e0ef60269ed9cae951c8b19f4a6b397e6bd6beebf86f964abc4be84c07f02490ca3df10524f88b90a85f6bcee