[Libguestfs] [PATCH] inspection: Parse os-release "opensuse-leap" as opensuse (RHBZ#1634248).

Richard W.M. Jones rjones at redhat.com
Mon Oct 1 08:54:08 UTC 2018


---
 daemon/inspect_fs_unix.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemon/inspect_fs_unix.ml b/daemon/inspect_fs_unix.ml
index ba9f0ed5a..4dd89fa8f 100644
--- a/daemon/inspect_fs_unix.ml
+++ b/daemon/inspect_fs_unix.ml
@@ -143,7 +143,7 @@ and distro_of_os_release_id = function
   | "kali" -> Some DISTRO_KALI_LINUX
   | "mageia" -> Some DISTRO_MAGEIA
   | "neokylin" -> Some DISTRO_NEOKYLIN
-  | "opensuse" -> Some DISTRO_OPENSUSE
+  | "opensuse" | "opensuse-leap" -> Some DISTRO_OPENSUSE
   | "pld" -> Some DISTRO_PLD_LINUX
   | "rhel" -> Some DISTRO_RHEL
   | "sles" | "sled" -> Some DISTRO_SLES
-- 
2.19.0.rc0




More information about the Libguestfs mailing list