dcavalca / rpms / systemd

Forked from rpms/systemd 4 months ago
Clone
be0c12
From 7ee6542c64103205d6520c1165894b3b6a40f2c9 Mon Sep 17 00:00:00 2001
be0c12
From: Michal Sekletar <msekleta@redhat.com>
be0c12
Date: Wed, 12 Jan 2022 15:38:38 +0100
be0c12
Subject: [PATCH] udev/net_id: introduce naming scheme for RHEL-8.6
be0c12
be0c12
RHEL-only
be0c12
be0c12
Related: #2039797
be0c12
---
be0c12
 man/systemd.net-naming-scheme.xml | 6 ++++++
be0c12
 src/udev/udev-builtin-net_id.c    | 2 ++
be0c12
 2 files changed, 8 insertions(+)
be0c12
be0c12
diff --git a/man/systemd.net-naming-scheme.xml b/man/systemd.net-naming-scheme.xml
be0c12
index a65da5c6c1..fe1aa4b654 100644
be0c12
--- a/man/systemd.net-naming-scheme.xml
be0c12
+++ b/man/systemd.net-naming-scheme.xml
be0c12
@@ -307,6 +307,12 @@
be0c12
           <para>Same as naming scheme <constant>rhel-8.4</constant>.</para>
be0c12
         </varlistentry>
be0c12
 
be0c12
+        <varlistentry>
be0c12
+          <term><constant>rhel-8.6</constant></term>
be0c12
+
be0c12
+          <para>Same as naming scheme <constant>rhel-8.4</constant>.</para>
be0c12
+        </varlistentry>
be0c12
+
be0c12
         <para>Note that <constant>latest</constant> may be used to denote the latest scheme known to this
be0c12
         particular version of systemd.</para>
be0c12
     </variablelist>
be0c12
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
be0c12
index 81139e666b..eafcbb64c5 100644
be0c12
--- a/src/udev/udev-builtin-net_id.c
be0c12
+++ b/src/udev/udev-builtin-net_id.c
be0c12
@@ -135,6 +135,7 @@ typedef enum NamingSchemeFlags {
be0c12
         NAMING_RHEL_8_3 = NAMING_V239,
be0c12
         NAMING_RHEL_8_4 = NAMING_V239|NAMING_BRIDGE_NO_SLOT,
be0c12
         NAMING_RHEL_8_5 = NAMING_RHEL_8_4,
be0c12
+        NAMING_RHEL_8_6 = NAMING_RHEL_8_4,
be0c12
 
be0c12
         _NAMING_SCHEME_FLAGS_INVALID = -1,
be0c12
 } NamingSchemeFlags;
be0c12
@@ -153,6 +154,7 @@ static const NamingScheme naming_schemes[] = {
be0c12
         { "rhel-8.3", NAMING_RHEL_8_3 },
be0c12
         { "rhel-8.4", NAMING_RHEL_8_4 },
be0c12
         { "rhel-8.5", NAMING_RHEL_8_5 },
be0c12
+        { "rhel-8.6", NAMING_RHEL_8_6 },
be0c12
         /* … add more schemes here, as the logic to name devices is updated … */
be0c12
 };
be0c12