Subject: Help needed to maintain alpine data in osinfo-db

From: Natanael Copa <[email-masked]>
Date: Tue, 5 Jan 2021 09:18:19 +0100

Hi,

I wonder if someone can help us maintain the osinfo-db data. All
releases since 3.8 needs to be added.

https://gitlab.com/libosinfo/osinfo-db/-/tree/master/data/os/alpinelinux.org

-nc

---

From: "Francesco Colista" <[email-masked]>
Date: Tue, 05 Jan 2021 08:50:34 +0000

> https://gitlab.com/libosinfo/osinfo-db/-/tree/master/data/os/alpinelinux.org

Natanael, where these information can be grabbed?

+    <devices>
+      <device id="http://pcisig.com/pci/1af4/1041"/> <!-- virtio1.0-net -->
+      <device id="http://pcisig.com/pci/1af4/1042"/> <!-- virtio1.0-block -->
+      <device id="http://pcisig.com/pci/1af4/1043"/> <!-- virtio1.0-console -->
+      <device id="http://pcisig.com/pci/1af4/1044"/> <!-- virtio1.0-rng -->
+      <device id="http://pcisig.com/pci/1af4/1045"/> <!-- virtio1.0-balloon -->
+      <device id="http://pcisig.com/pci/1af4/1048"/> <!-- virtio1.0-scsi -->
+      <device id="http://pcisig.com/pci/1af4/1049"/> <!-- virtio1.0-9p -->
+      <device id="http://pcisig.com/pci/1af4/1052"/> <!-- virtio1.0-input -->
+      <device id="http://qemu.org/chipset/x86/q35"/> <!-- qemu-x86-q35 -->
+      <device id="http://pcisig.com/pci/8086/10d3"/> <!-- e1000e -->
+      <device id="http://pcisig.com/pci/8086/293e"/> <!-- ich9-hda -->
+    </devices>
...
+    <resources arch="all">
+      <minimum>
+        <cpu>1000000000</cpu>
+        <n-cpus>1</n-cpus>
+        <ram>134217728</ram>
+        <storage>1073741824</storage>
+      </minimum>
+      <recommended>
+        <cpu>1000000000</cpu>
+        <n-cpus>1</n-cpus>
+        <ram>805306368</ram>
+        <storage>4294967296</storage>
+      </recommended>
+    </resources>

If they are all the same (at least this is what I see in the two patches in osinfo-db that adds Alpine), I believe that it can scripted.

.: Francesco Colista

---

From: "Francesco Colista" <[email-masked]>
Date: Tue, 05 Jan 2021 08:51:59 +0000

+    <devices>

.: Francesco Colista

---

From: Natanael Copa <[email-masked]>
Date: Tue, 5 Jan 2021 11:15:39 +0100

On Tue, 05 Jan 2021 08:51:59 +0000

> +      <device id="http://pcisig.com/pci/8086/293e"/> <!-- ich9-hda -->

Those I don't remember. I think I may have grepped for virtio in the osinfo-db tree. (apk add the_silver_searcher && ag virtio)

I wanted the virtio driver to be used for alpine, but it looks like
other distros like ubuntu does not add those?

> +        <storage>4294967296</storage>

I don't remember where I got those numbers from. I might have tested the minimal RAM for alpine to boot, but I'm not sure. I doubt alpine will boot with less than 130MB ram.

The recommended RAM and disk was likely something based on what I typically select.

> If they are all the same (at least this is what I see in the two patches in osinfo-db that adds Alpine), I believe that it can scripted.

I'm pretty sure it can be scripted. Seems like there are other distros that has it scripted:
https://gitlab.com/libosinfo/osinfo-db/-/tree/master/scripts/updates

The release-date and eol-date can be taken from 
https://gitlab.alpinelinux.org/alpine/infra/alpine-mksite/-/blob/master/alpine-releases.conf.yaml

I'm gonna add some patches with alpine release up to 3.13 to
community/osinfo-db, but I think we need to add testdata also and
upstream it.

I also have issues with getting osinfo-detect find the alpine images.