• [gentoo-dev] Gentoo identification in Primary Volume Descriptor of ISOs

    From =?UTF-8?B?TWljaGFsIFByw612b3puw61r?@21:1/5 to All on Thu May 2 13:20:01 2024
    Hi,

    I've noticed (thanks to an issue reported against Libvirt [1]), that
    neither minimal installation ISO nor liveGUI ISO contain anything inside
    their Primary Volume Descriptors that would hint the ISO contains
    Gentoo. This is unfortunate a bit, because matching VolumeID is exactly
    how tools like libosinfo detect distro on given ISO [2] and then can
    recommend some values when creating VMs with that ISO. In this specific
    case, minimal amount of memory required to even boot the ISO (yeah, it currently reports 256MiB which is too small for anything really).

    Is there any chance this could be fixed, e.g. by reporting something in VolumeID?

    Michal

    1: https://gitlab.com/libvirt/libvirt/-/issues/600
    2: https://gitlab.com/libosinfo/osinfo-db/-/blob/main/data/os/gentoo.org/gentoo-rolling.xml.in?ref_type=heads

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ben Kohler@21:1/5 to All on Thu May 2 22:50:01 2024
    On 5/2/24 06:15, Michal Prívozník wrote:
    Hi,

    I've noticed (thanks to an issue reported against Libvirt [1]), that
    neither minimal installation ISO nor liveGUI ISO contain anything inside their Primary Volume Descriptors that would hint the ISO contains
    Gentoo. This is unfortunate a bit, because matching VolumeID is exactly
    how tools like libosinfo detect distro on given ISO [2] and then can recommend some values when creating VMs with that ISO. In this specific
    case, minimal amount of memory required to even boot the ISO (yeah, it currently reports 256MiB which is too small for anything really).

    Is there any chance this could be fixed, e.g. by reporting something in VolumeID?

    Michal

    1: https://gitlab.com/libvirt/libvirt/-/issues/600
    2: https://gitlab.com/libosinfo/osinfo-db/-/blob/main/data/os/gentoo.org/gentoo-rolling.xml.in?ref_type=heads


    Hi Michal,

    Thanks for bringing this to our attention.  Relatively recently, our ISO
    build tool catalyst started using grub-mkrescue to prepare the
    bootloaders and create the iso [1], and we seem to have lost the volume
    IDs at that time.  I've just added a -volid parameter back in [2] which
    should restore the volume IDs we were using before and should match what libosinfo is expecting.  The change should apply to our next weekly autobuilds.

    Before: install-x86-minimal-20240429T170419Z.iso: ISO 9660 CD-ROM
    filesystem data (DOS/MBR boot sector) 'ISOIMAGE' (bootable)

    After: install-x86-minimal-20240429T170419Z.iso: ISO 9660 CD-ROM
    filesystem data (DOS/MBR boot sector) 'Gentoo x86 20240429T170419Z'
    (bootable)

    [1] https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=0a27a7a39a7d6944618009f8027fb09a22244c34

    [2] https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=04c70a9df505718c7e97ca1484f7c03270e6824c

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?TWljaGFsIFByw612b3puw61r?@21:1/5 to Ben Kohler on Fri May 3 10:50:01 2024
    On 5/2/24 22:48, Ben Kohler wrote:

    On 5/2/24 06:15, Michal Prívozník wrote:
    Hi,

    I've noticed (thanks to an issue reported against Libvirt [1]), that
    neither minimal installation ISO nor liveGUI ISO contain anything inside
    their Primary Volume Descriptors that would hint the ISO contains
    Gentoo. This is unfortunate a bit, because matching VolumeID is exactly
    how tools like libosinfo detect distro on given ISO [2] and then can
    recommend some values when creating VMs with that ISO. In this specific
    case, minimal amount of memory required to even boot the ISO (yeah, it
    currently reports 256MiB which is too small for anything really).

    Is there any chance this could be fixed, e.g. by reporting something in
    VolumeID?

    Michal

    1: https://gitlab.com/libvirt/libvirt/-/issues/600
    2:
    https://gitlab.com/libosinfo/osinfo-db/-/blob/main/data/os/gentoo.org/gentoo-rolling.xml.in?ref_type=heads


    Hi Michal,

    Thanks for bringing this to our attention.  Relatively recently, our ISO build tool catalyst started using grub-mkrescue to prepare the
    bootloaders and create the iso [1], and we seem to have lost the volume
    IDs at that time.  I've just added a -volid parameter back in [2] which should restore the volume IDs we were using before and should match what libosinfo is expecting.  The change should apply to our next weekly autobuilds.

    Awesome! Thank you.

    And speaking of things that slip our attention. When trying to get a
    link to this e-mail thread I've noticed at least gentoo-dev archives on archives.gentoo.org are stuck in 2023:

    https://archives.gentoo.org/gentoo-dev/

    I'm not sure where to report this, so I'm hoping this will find the
    right recipient. Thanks once again.

    Michal

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)