[Libosinfo] [osinfo-db PATCH v2 4/4] rhel: Add RHEL unknown info

Christophe Fergeau cfergeau at redhat.com
Fri Nov 16 09:39:31 UTC 2018


On Thu, Nov 15, 2018 at 10:43:24PM +0100, Fabiano Fidêncio wrote:
> From: Fabiano Fidêncio <fabiano at fidencio.org>
> 
> In a similar way of what's done on openSUSE and Fedora, let's have an
> "unknown" entry for RHEL that would cover any possible future releases
> while the proper release is not added to our db.
> 
> Signed-off-by: Fabiano Fidêncio <fabiano at fidencio.org>
> ---
>  data/os/redhat.com/rhel-unknown.xml.in | 80 ++++++++++++++++++++++++++
>  1 file changed, 80 insertions(+)
>  create mode 100644 data/os/redhat.com/rhel-unknown.xml.in
> 
> diff --git a/data/os/redhat.com/rhel-unknown.xml.in b/data/os/redhat.com/rhel-unknown.xml.in
> new file mode 100644
> index 0000000..180c666
> --- /dev/null
> +++ b/data/os/redhat.com/rhel-unknown.xml.in
> @@ -0,0 +1,80 @@
> +<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/unknown">
> +    <short-id>rhel-unknown</short-id>
> +    <_name>Red Hat Enterprise Linux Unknown</_name>
> +    <version>unknown</version>
> +    <_vendor>Red Hat, Inc</_vendor>
> +    <family>linux</family>
> +    <distro>rhel</distro>
> +    <upgrades id="http://redhat.com/rhel/8-unknown"/>

I guess I would mark it as updating rhel 8.0, not an unreleased version
of RHEL8. Apart from that, this looks good to me,

Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>


> +
> +    <media arch="x86_64">
> +      <iso>
> +        <system-id>LINUX</system-id>
> +        <volume-id>RHEL-(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>
> +         <system-id>LINUX</system-id>
> +         <volume-id>RHEL-(9|[1-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-(9|[1-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[_-](9|[1-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-(9|[1-9][0-9])-([0-9]|[1-9][0-9]).*s390x$</volume-id>
> +       </iso>
> +     </media>
> +
> +    <resources arch="ppc64">
> +      <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>
> +    </resources>
> +
> +    <resources arch="all">
> +      <minimum>
> +        <n-cpus>1</n-cpus>
> +        <cpu>1000000000</cpu>
> +        <ram>1073741824</ram>
> +        <storage>10737418240</storage>
> +      </minimum>
> +
> +      <recommended>
> +        <cpu>1000000000</cpu>
> +        <ram>1073741824</ram>
> +        <storage>10737418240</storage>
> +      </recommended>
> +    </resources>
> +  </os>
> +</libosinfo>
> -- 
> 2.19.1
> 
> _______________________________________________
> Libosinfo mailing list
> Libosinfo at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20181116/3c1cf9e3/attachment.sig>


More information about the Libosinfo mailing list