Re: [PATCH] NetBSD: add NetBSD 6.x / 7.x data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

On Thu, Feb 15, 2018 at 06:37:17PM -0200, Vicente Chaves de Melo wrote:
> ---
>  data/os/netbsd.org/netbsd-6.0.xml.in | 64 ++++++++++++++++++++++++++++++++++++
>  data/os/netbsd.org/netbsd-6.1.xml.in | 64 ++++++++++++++++++++++++++++++++++++
>  data/os/netbsd.org/netbsd-7.0.xml.in | 64 ++++++++++++++++++++++++++++++++++++
>  data/os/netbsd.org/netbsd-7.1.xml.in | 64 ++++++++++++++++++++++++++++++++++++
>  4 files changed, 256 insertions(+)
>  create mode 100644 data/os/netbsd.org/netbsd-6.0.xml.in
>  create mode 100644 data/os/netbsd.org/netbsd-6.1.xml.in
>  create mode 100644 data/os/netbsd.org/netbsd-7.0.xml.in
>  create mode 100644 data/os/netbsd.org/netbsd-7.1.xml.in
> 
> diff --git a/data/os/netbsd.org/netbsd-6.0.xml.in b/data/os/netbsd.org/netbsd-6.0.xml.in
> new file mode 100644
> index 0000000..551d530
> --- /dev/null
> +++ b/data/os/netbsd.org/netbsd-6.0.xml.in
> @@ -0,0 +1,64 @@
> +<libosinfo version="0.0.1">
> +
> +  <os id="http://netbsd.org/netbsd/6.0";>
> +    <short-id>netbsd6.0</short-id>
> +    <_name>NetBSD 6.0</_name>
> +    <version>6.0</version>
> +    <_vendor>NetBSD Project</_vendor>
> +    <family>netbsd</family>
> +    <distro>netbsd</distro>
> +    <upgrades id="http://netbsd.org/netbsd/5.0"/>
> +    <derives-from id="http://netbsd.org/netbsd/5.0"/>
> +
> +    <release-date>2012-10-13</release-date>
> +
> +    <media arch="x86_64">
> +      <url>https://cdn.netbsd.org/pub/NetBSD/NetBSD-6.0/images/NetBSD-6.0-amd64.iso</url>
> +      <iso>
> +        <system-id>NetBSD</system-id>
> +        <volume-id>NETBSD_60</volume-id>
> +        <volume-size>346052608</volume-size>

There is some trick with respect to 'volume-size', here it's set to
the size of the NetBSD-6.0-amd64.iso file in bytes once it's downloaded.
However, libosinfo infers that size from the ISO header, not by checking
the file size. In this case, 'isoinfo -d -i /tmp/NetBSD-6.0-amd64.iso'
gives:

CD-ROM is in ISO 9660 format
...
Logical block size is: 2048
Volume size is: 168821
...

so what should be in 'volume-size' is 2048 * 168821, which is 345745408.
I've fixed this, and all the other volume-size entries, so no action
needed from your side. I'm just waiting for confirmation whether NetBSD
7.1 upgrades 7.0 or 6.0 and I'll push this.

Christophe

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux