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

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