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

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