mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0053-inspect-handle-os-release-opensuse-tumbleweed-as-ope.patch

d0ea73
From c9b55904a06abaea5ee858b590c861caa705ad52 Mon Sep 17 00:00:00 2001
d0ea73
From: Pino Toscano <ptoscano@redhat.com>
d0ea73
Date: Fri, 30 Nov 2018 12:41:03 +0100
d0ea73
Subject: [PATCH] inspect: handle os-release "opensuse-tumbleweed" as opensuse
d0ea73
d0ea73
Followup of commit 70407cd622dda6f088a0876e1e1ae669e9f8a281 for openSUSE
d0ea73
Thumbleweed.
d0ea73
d0ea73
(cherry picked from commit 28bd06227b1633fa08c073fe8dbe65d013d7dc9e)
d0ea73
---
d0ea73
 daemon/inspect_fs_unix.ml | 3 ++-
d0ea73
 1 file changed, 2 insertions(+), 1 deletion(-)
d0ea73
d0ea73
diff --git a/daemon/inspect_fs_unix.ml b/daemon/inspect_fs_unix.ml
d0ea73
index 33b93256f..6c3ab6e34 100644
d0ea73
--- a/daemon/inspect_fs_unix.ml
d0ea73
+++ b/daemon/inspect_fs_unix.ml
d0ea73
@@ -142,7 +142,8 @@ and distro_of_os_release_id = function
d0ea73
   | "frugalware" -> Some DISTRO_FRUGALWARE
d0ea73
   | "mageia" -> Some DISTRO_MAGEIA
d0ea73
   | "neokylin" -> Some DISTRO_NEOKYLIN
d0ea73
-  | "opensuse" | "opensuse-leap" -> Some DISTRO_OPENSUSE
d0ea73
+  | "opensuse" -> Some DISTRO_OPENSUSE
d0ea73
+  | s when String.is_prefix s "opensuse-" -> Some DISTRO_OPENSUSE
d0ea73
   | "pld" -> Some DISTRO_PLD_LINUX
d0ea73
   | "rhel" -> Some DISTRO_RHEL
d0ea73
   | "sles" | "sled" -> Some DISTRO_SLES
d0ea73
-- 
6b9fda
2.21.0
d0ea73