adding retry to curl in wwinit dracut module

Signed-off-by: Shane Nehring <snehring@iastate.edu>
This commit is contained in:
Shane Nehring
2025-01-15 14:51:24 -06:00
parent 16269abf62
commit c31c226487

View File

@@ -15,6 +15,6 @@ do
then
localport="--local-port 1-1023"
fi
(curl --silent ${localport} -L "${archive}" | gzip -d | cpio -im --directory="${NEWROOT}") || die "Unable to load ${archive}"
(curl --retry 60 --retry-delay 1 --silent ${localport} -L "${archive}" | gzip -d | cpio -im --directory="${NEWROOT}") || die "Unable to load ${archive}"
fi
done