mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2030709 Thanks: label@rockylinux.org --- RWMJ notes: I fixed the original patch so it compiled. This patch sets osinfo to "rocky8", which doesn't exist in the osinfo db yet. Arguably we might want to set this to "centos8", but we can see what libosinfo decides to do. Here is partial virt-inspector output on a Rocky Linux disk image: $ ./run virt-inspector -a disk.img <?xml version="1.0"?> <operatingsystems> <operatingsystem> <root>/dev/rl/root</root> <name>linux</name> <arch>x86_64</arch> <distro>rocky</distro> <product_name>Rocky Linux 8.5 (Green Obsidian)</product_name> <major_version>8</major_version> <minor_version>5</minor_version> <package_format>rpm</package_format> <package_management>dnf</package_management> <hostname>localhost.localdomain</hostname> <osinfo>rocky8</osinfo> <mountpoints> <mountpoint dev="/dev/rl/root">/</mountpoint> <mountpoint dev="/dev/sda1">/boot</mountpoint> </mountpoints> <filesystems> <filesystem dev="/dev/rl/root"> <type>xfs</type> <uuid>fed8331f-9f25-40cd-883e-090cd640559d</uuid> </filesystem> <filesystem dev="/dev/rl/swap"> <type>swap</type> <uuid>6da2c121-ea7d-49ce-98a3-14a37fceaadd</uuid> </filesystem> <filesystem dev="/dev/sda1"> <type>xfs</type> <uuid>4efafe61-2d20-4d93-8055-537e09bfd033</uuid> </filesystem> </filesystems>