Blame SOURCES/0001-daemon-inspect_fs_unix-recognize-modern-Pardus-GNU-L.patch

d03fcc
From 336ecfab3bb1e14deea9ade891fb772e0698f8d8 Mon Sep 17 00:00:00 2001
fa73fa
From: Laszlo Ersek <lersek@redhat.com>
fa73fa
Date: Fri, 1 Oct 2021 14:53:38 +0200
fa73fa
Subject: [PATCH] daemon/inspect_fs_unix: recognize modern Pardus GNU/Linux
fa73fa
 releases
fa73fa
fa73fa
Recent Pardus releases seem to have abandoned the original
fa73fa
"/etc/pardus-release" file, which the current Pardus detection, from
fa73fa
commit 233530d3541d ("inspect: Add detection of Pardus.", 2010-10-29), is
fa73fa
based upon.
fa73fa
fa73fa
Instead, Pardus apparently adopted the "/etc/os-release" specification
fa73fa
<https://www.freedesktop.org/software/systemd/man/os-release.html>, with
fa73fa
"ID=pardus". Extend the "distro_of_os_release_id" function accordingly.
fa73fa
Keep the original method for recognizing earlier releases.
fa73fa
fa73fa
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1993842
fa73fa
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
fa73fa
Message-Id: <20211001125338.8956-1-lersek@redhat.com>
fa73fa
Acked-by: Richard W.M. Jones <rjones@redhat.com>
fa73fa
---
fa73fa
 daemon/inspect_fs_unix.ml | 1 +
fa73fa
 1 file changed, 1 insertion(+)
fa73fa
fa73fa
diff --git a/daemon/inspect_fs_unix.ml b/daemon/inspect_fs_unix.ml
fa73fa
index 557f32833..652bacc0f 100644
fa73fa
--- a/daemon/inspect_fs_unix.ml
fa73fa
+++ b/daemon/inspect_fs_unix.ml
fa73fa
@@ -151,6 +151,7 @@ and distro_of_os_release_id = function
fa73fa
   | "openmandriva" -> Some DISTRO_OPENMANDRIVA
fa73fa
   | "opensuse" -> Some DISTRO_OPENSUSE
fa73fa
   | s when String.is_prefix s "opensuse-" -> Some DISTRO_OPENSUSE
fa73fa
+  | "pardus" -> Some DISTRO_PARDUS
fa73fa
   | "pld" -> Some DISTRO_PLD_LINUX
fa73fa
   | "rhel" -> Some DISTRO_RHEL
fa73fa
   | "sles" | "sled" -> Some DISTRO_SLES
fa73fa
-- 
69da20
2.31.1
fa73fa