mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0052-inspection-Parse-os-release-opensuse-leap-as-opensus.patch

df3bb2
From 1e72a13be2bbe054f0a15cdf5cc08c58fe5c43ab Mon Sep 17 00:00:00 2001
df3bb2
From: "Richard W.M. Jones" <rjones@redhat.com>
df3bb2
Date: Mon, 1 Oct 2018 09:51:15 +0100
df3bb2
Subject: [PATCH] inspection: Parse os-release "opensuse-leap" as opensuse
df3bb2
 (RHBZ#1634248).
df3bb2
df3bb2
(cherry picked from commit 70407cd622dda6f088a0876e1e1ae669e9f8a281)
df3bb2
---
df3bb2
 daemon/inspect_fs_unix.ml | 2 +-
df3bb2
 1 file changed, 1 insertion(+), 1 deletion(-)
df3bb2
df3bb2
diff --git a/daemon/inspect_fs_unix.ml b/daemon/inspect_fs_unix.ml
df3bb2
index f4b2fea14..33b93256f 100644
df3bb2
--- a/daemon/inspect_fs_unix.ml
df3bb2
+++ b/daemon/inspect_fs_unix.ml
df3bb2
@@ -142,7 +142,7 @@ and distro_of_os_release_id = function
df3bb2
   | "frugalware" -> Some DISTRO_FRUGALWARE
df3bb2
   | "mageia" -> Some DISTRO_MAGEIA
df3bb2
   | "neokylin" -> Some DISTRO_NEOKYLIN
df3bb2
-  | "opensuse" -> Some DISTRO_OPENSUSE
df3bb2
+  | "opensuse" | "opensuse-leap" -> Some DISTRO_OPENSUSE
df3bb2
   | "pld" -> Some DISTRO_PLD_LINUX
df3bb2
   | "rhel" -> Some DISTRO_RHEL
df3bb2
   | "sles" | "sled" -> Some DISTRO_SLES
df3bb2
-- 
df3bb2
2.21.0
df3bb2