dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
17aa40
From d45e0cc7a64648dc3ad082b512ff488537d3ebef Mon Sep 17 00:00:00 2001
eb8b6e
From: Michal Sekletar <msekleta@redhat.com>
eb8b6e
Date: Wed, 12 Jan 2022 15:35:19 +0100
eb8b6e
Subject: [PATCH] udev/net_id: introduce naming scheme for RHEL-8.5
eb8b6e
eb8b6e
RHEL-only
eb8b6e
17aa40
Related: #2039797
eb8b6e
---
eb8b6e
 man/systemd.net-naming-scheme.xml | 6 ++++++
eb8b6e
 src/udev/udev-builtin-net_id.c    | 2 ++
eb8b6e
 2 files changed, 8 insertions(+)
eb8b6e
eb8b6e
diff --git a/man/systemd.net-naming-scheme.xml b/man/systemd.net-naming-scheme.xml
eb8b6e
index 10e71dcb15..be969bc8d0 100644
eb8b6e
--- a/man/systemd.net-naming-scheme.xml
eb8b6e
+++ b/man/systemd.net-naming-scheme.xml
eb8b6e
@@ -301,6 +301,12 @@
eb8b6e
           avoid possible naming conflict.</para></listitem>
eb8b6e
         </varlistentry>
eb8b6e
 
eb8b6e
+        <varlistentry>
eb8b6e
+          <term><constant>rhel-8.5</constant></term>
eb8b6e
+
eb8b6e
+          <para>Same as naming scheme <constant>rhel-8.4</constant>.</para>
eb8b6e
+        </varlistentry>
eb8b6e
+
eb8b6e
         <para>Note that <constant>latest</constant> may be used to denote the latest scheme known (to this
eb8b6e
         particular version of systemd.</para>
eb8b6e
     </variablelist>
eb8b6e
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
17aa40
index 7c153f0aef..81139e666b 100644
eb8b6e
--- a/src/udev/udev-builtin-net_id.c
eb8b6e
+++ b/src/udev/udev-builtin-net_id.c
17aa40
@@ -134,6 +134,7 @@ typedef enum NamingSchemeFlags {
eb8b6e
         NAMING_RHEL_8_2 = NAMING_V239,
eb8b6e
         NAMING_RHEL_8_3 = NAMING_V239,
eb8b6e
         NAMING_RHEL_8_4 = NAMING_V239|NAMING_BRIDGE_NO_SLOT,
eb8b6e
+        NAMING_RHEL_8_5 = NAMING_RHEL_8_4,
eb8b6e
 
eb8b6e
         _NAMING_SCHEME_FLAGS_INVALID = -1,
eb8b6e
 } NamingSchemeFlags;
17aa40
@@ -151,6 +152,7 @@ static const NamingScheme naming_schemes[] = {
eb8b6e
         { "rhel-8.2", NAMING_RHEL_8_2 },
eb8b6e
         { "rhel-8.3", NAMING_RHEL_8_3 },
eb8b6e
         { "rhel-8.4", NAMING_RHEL_8_4 },
eb8b6e
+        { "rhel-8.5", NAMING_RHEL_8_5 },
eb8b6e
         /* … add more schemes here, as the logic to name devices is updated … */
eb8b6e
 };
eb8b6e