ALT Linux 8.x has different IDs in osinfo-db, so return the proper IDs
for the newest stable series.
---
lib/inspect-osinfo.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/inspect-osinfo.c b/lib/inspect-osinfo.c
index 51612bad1..90b7ffd86 100644
--- a/lib/inspect-osinfo.c
+++ b/lib/inspect-osinfo.c
@@ -62,6 +62,11 @@ guestfs_impl_inspect_get_osinfo (guestfs_h *g, const char *root)
else if (STREQ (distro, "archlinux") || STREQ (distro, "gentoo")
|| STREQ (distro, "voidlinux"))
return safe_strdup (g, distro);
+ else if (STREQ (distro, "altlinux")) {
+ if (major >= 8)
+ return safe_asprintf (g, "alt%d.%d", major, minor);
+ return safe_asprintf (g, "%s%d.%d", distro, major, minor);
+ }
if (major > 0 || minor > 0)
return safe_asprintf (g, "%s%d.%d", distro, major, minor);
--
2.20.1