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