|
|
eb8b6e |
From 6882d94ae68468b414597696727108d588402f43 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 |
|
|
|
eb8b6e |
Related: #2040244
|
|
|
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
|
|
|
eb8b6e |
index 0611c08234..3a0b3b1eae 100644
|
|
|
eb8b6e |
--- a/src/udev/udev-builtin-net_id.c
|
|
|
eb8b6e |
+++ b/src/udev/udev-builtin-net_id.c
|
|
|
eb8b6e |
@@ -135,6 +135,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;
|
|
|
eb8b6e |
@@ -152,6 +153,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 |
|