|
|
9f65cc |
From 68826ecc8d1b0605cd69a4f679c0cd4de4e12b18 Mon Sep 17 00:00:00 2001
|
|
|
9f65cc |
From: David Tardon <dtardon@redhat.com>
|
|
|
9f65cc |
Date: Tue, 9 Feb 2021 16:46:07 +0100
|
|
|
9f65cc |
Subject: [PATCH] 35network-legacy: discard pointless RTNETLINK message
|
|
|
9f65cc |
|
|
|
9f65cc |
This command prints
|
|
|
9f65cc |
|
|
|
9f65cc |
RTNETLINK answers: Network is unreachable
|
|
|
9f65cc |
|
|
|
9f65cc |
to stderr if IP is not assigned yet, but that's the thing we are
|
|
|
9f65cc |
checking for, so there's no point in showing the message.
|
|
|
9f65cc |
|
|
|
9f65cc |
(cherry picked from commit c46ed697a20798c09ead362443691d810e122996)
|
|
|
9f65cc |
|
|
|
9f65cc |
Resolves: #1879597
|
|
|
9f65cc |
---
|
|
|
9f65cc |
modules.d/35network-legacy/ifup.sh | 2 +-
|
|
|
9f65cc |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9f65cc |
|
|
|
9f65cc |
diff --git a/modules.d/35network-legacy/ifup.sh b/modules.d/35network-legacy/ifup.sh
|
|
|
9f65cc |
index 61838741..bd560379 100755
|
|
|
9f65cc |
--- a/modules.d/35network-legacy/ifup.sh
|
|
|
9f65cc |
+++ b/modules.d/35network-legacy/ifup.sh
|
|
|
9f65cc |
@@ -106,7 +106,7 @@ do_static() {
|
|
|
9f65cc |
return 1
|
|
|
9f65cc |
fi
|
|
|
9f65cc |
|
|
|
9f65cc |
- ip route get "$ip" | {
|
|
|
9f65cc |
+ ip route get "$ip" 2>/dev/null | {
|
|
|
9f65cc |
read a rest
|
|
|
9f65cc |
if [ "$a" = "local" ]; then
|
|
|
9f65cc |
warn "Not assigning $ip to interface $netif, cause it is already assigned!"
|
|
|
9f65cc |
|