Blame SOURCES/0724-Do-not-fail-if-the-same-alt.-name-is-set-again.patch
|
|
da2bf9 |
From 270e3f46d1fe474eb3b4cd6789520b36a740ef32 Mon Sep 17 00:00:00 2001
|
|
|
da2bf9 |
From: David Tardon <dtardon@redhat.com>
|
|
|
da2bf9 |
Date: Wed, 8 Dec 2021 09:49:24 +0100
|
|
|
da2bf9 |
Subject: [PATCH] Do not fail if the same alt. name is set again
|
|
|
da2bf9 |
|
|
|
da2bf9 |
This is a workaround for a kernel bug.
|
|
|
da2bf9 |
|
|
|
da2bf9 |
RHEL-only
|
|
|
da2bf9 |
|
|
|
da2bf9 |
Related: #2005008
|
|
|
da2bf9 |
---
|
|
|
da2bf9 |
src/udev/net/link-config.c | 2 +-
|
|
|
da2bf9 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
da2bf9 |
|
|
|
da2bf9 |
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
|
|
|
da2bf9 |
index 5220f247f0..9046c5bd2a 100644
|
|
|
da2bf9 |
--- a/src/udev/net/link-config.c
|
|
|
da2bf9 |
+++ b/src/udev/net/link-config.c
|
|
|
da2bf9 |
@@ -526,7 +526,7 @@ int link_config_apply(link_config_ctx *ctx, link_config *config,
|
|
|
da2bf9 |
strv_uniq(altnames);
|
|
|
da2bf9 |
strv_sort(altnames);
|
|
|
da2bf9 |
r = rtnl_set_link_alternative_names(&ctx->rtnl, ifindex, altnames);
|
|
|
da2bf9 |
- if (r == -EOPNOTSUPP)
|
|
|
da2bf9 |
+ if (IN_SET(r, -EOPNOTSUPP, -EEXIST))
|
|
|
da2bf9 |
log_debug_errno(r, "Could not set AlternativeName= or apply AlternativeNamesPolicy= on %s, ignoring: %m", old_name);
|
|
|
da2bf9 |
else if (r < 0)
|
|
|
da2bf9 |
return log_warning_errno(r, "Could not set AlternativeName= or apply AlternativeNamesPolicy= on %s: %m", old_name);
|