naccyde / rpms / systemd

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