Merge pull request #1631 from ResearchIT/dracut-curl-retry
adding retry to curl in wwinit dracut module
This commit is contained in:
@@ -89,6 +89,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Parallelized overlay build. #1018
|
||||
- Parallelized and optimized overlay build. #1018
|
||||
- Added note about dnsmasq interface options in Rocky 9.
|
||||
- Added retries to curl in wwinit dracut module. #1631
|
||||
|
||||
### Removed
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user