32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From 90032a463190ab68f20f493894f667320466082d Mon Sep 17 00:00:00 2001
|
|
From: James Morris <morisja@gmail.com>
|
|
Date: Thu, 7 Apr 2022 17:57:48 +0100
|
|
Subject: [PATCH] feat(url-lib.sh): add --retry-connrefused to default curl
|
|
arguments
|
|
|
|
Trigger the existing retry condition on connection refused
|
|
to mitigate transient connectivity issues.
|
|
|
|
Reference:https://github.com/dracutdevs/dracut/commit/90032a463190ab68f20f493894f667320466082d
|
|
Conflict:NA
|
|
---
|
|
modules.d/45url-lib/url-lib.sh | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/modules.d/45url-lib/url-lib.sh b/modules.d/45url-lib/url-lib.sh
|
|
index b68f72b0..e88fbc14 100755
|
|
--- a/modules.d/45url-lib/url-lib.sh
|
|
+++ b/modules.d/45url-lib/url-lib.sh
|
|
@@ -56,7 +56,7 @@ add_url_handler() {
|
|
|
|
export CURL_HOME="/run/initramfs/url-lib"
|
|
mkdir -p $CURL_HOME
|
|
-curl_args="--globoff --location --retry 3 --fail --show-error"
|
|
+curl_args="--globoff --location --retry 3 --retry-connrefused --fail --show-error"
|
|
getargbool 0 rd.noverifyssl && curl_args="$curl_args --insecure"
|
|
|
|
proxy=$(getarg proxy=)
|
|
--
|
|
2.23.0
|
|
|