[Libosinfo] [PATCH 1/4] add support for generic Mageia

Christophe Fergeau cfergeau at redhat.com
Fri Mar 25 21:40:26 UTC 2016


On Fri, Mar 25, 2016 at 10:05:56PM +0100, Christophe Fergeau wrote:
> From: Thierry Vignaud <tvignaud at redhat.com>
> 
> v2:
> - split netinstall,
> - add variant IDs
> - add kernel/initrd pathes,
> - make live be x86_64 (same label between ia32 & x86_64 :-( )
> - live matches only mga4+
> ---
>  data/os/mageia.org/mageia-unknown.xml.in | 59 ++++++++++++++++++++++++++++++++
>  1 file changed, 59 insertions(+)
>  create mode 100644 data/os/mageia.org/mageia-unknown.xml.in
> 
> diff --git a/data/os/mageia.org/mageia-unknown.xml.in b/data/os/mageia.org/mageia-unknown.xml.in
> new file mode 100644
> index 0000000..5eff18c
> --- /dev/null
> +++ b/data/os/mageia.org/mageia-unknown.xml.in
> @@ -0,0 +1,59 @@
> +<libosinfo version="0.0.1">
> +
> +  <os id="http://mageia.org/mageia/unknown">
> +    <short-id>mageia-unknown</short-id>
> +    <name>Mageia</name>
> +    <vendor>Mageia</vendor>
> +    <family>linux</family>
> +    <distro>mageia</distro>
> +    <version>unknown</version>
> +    <derives-from id="http://mageia.org/mageia/3"/>
> +
> +    <media arch="i686">
> +      <variant id="net-install"/>
> +      <url>ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/i586/install/images/boot.iso</url>
> +      <iso>
> +        <volume-id>Mageia.*i586-netinstall</volume-id>
> +      </iso>
> +      <kernel>isolinux/i386/vmlinuz</kernel>
> +      <initrd>isolinux/i386/all.rdz</initrd>
> +    </media>
> +
> +    <media arch="x86_64">
> +      <variant id="net-install"/>
> +      <url>ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/install/images/boot.iso</url>
> +      <iso>
> +        <volume-id>Mageia.*x86_64-netinstall</volume-id>
> +      </iso>
> +      <kernel>isolinux/x86_64/vmlinuz</kernel>
> +      <initrd>isolinux/x86_64/all.rdz</initrd>
> +    </media>
> +
> +    <media arch="i686">
> +      <variant id="regular-installer"/>

I don't think this is needed, unless you want to reuse the
"Mageia - Classic Installation"
"Mageia - Network Installation"
labelling from the download page of mageia.org.

> +      <iso>
> +        <volume-id>Mageia-[4-9]-.*i586</volume-id>
> +      </iso>
> +      <kernel>isolinux/i386/vmlinuz</kernel>
> +      <initrd>isolinux/i386/all.rdz</initrd>
> +    </media>
> +
> +    <media arch="x86_64">
> +      <variant id="regular-installer"/>
> +      <iso>
> +        <volume-id>Mageia-[4-9].*x86_64</volume-id>
> +      </iso>
> +      <kernel>isolinux/x86_64/vmlinuz</kernel>
> +      <initrd>isolinux/x86_64/all.rdz</initrd>
> +    </media>
> +
> +   <!-- both ia32 & x86_64 share the same label... -->

Ah, that's a bit sad... For known releases, we can use the size of the
ISO to differentiate them, but for -unknown, we are indeed stuck. Do you
think it would be possible to improve this on the mageia side?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20160325/1f6d771d/attachment.sig>


More information about the Libosinfo mailing list