Blame SOURCES/0536-net-lib-bump-carrier-timeout-to-15.patch

0903d0
From 388c771a283447b5f080a3a331bc2c3da14885c4 Mon Sep 17 00:00:00 2001
0903d0
From: Lukas Nykryn <lnykryn@redhat.com>
0903d0
Date: Mon, 11 Jun 2018 12:30:07 +0200
0903d0
Subject: [PATCH] net-lib: bump carrier timeout to 15
0903d0
0903d0
df95b10 caused that dracut now waits only 5 seconds for carrier.
0903d0
Let's bump this in downstream to avoid regressions in minor versions.
0903d0
0903d0
RHEL-only
0903d0
Resolves: #1401811
0903d0
---
0903d0
 modules.d/40network/net-lib.sh | 2 +-
0903d0
 1 file changed, 1 insertion(+), 1 deletion(-)
0903d0
0903d0
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
0903d0
index 9083aea7..23f2f9ff 100755
0903d0
--- a/modules.d/40network/net-lib.sh
0903d0
+++ b/modules.d/40network/net-lib.sh
0903d0
@@ -706,7 +706,7 @@ iface_has_carrier() {
0903d0
     interface="/sys/class/net/$interface"
0903d0
     [ -d "$interface" ] || return 2
0903d0
     local timeout="$(getargs rd.net.timeout.carrier=)"
0903d0
-    timeout=${timeout:-5}
0903d0
+    timeout=${timeout:-15}
0903d0
     timeout=$(($timeout*10))
0903d0
 
0903d0
     linkup "$1"