Merge pull request #1631 from ResearchIT/dracut-curl-retry

adding retry to curl in wwinit dracut module
This commit is contained in:
Christian Goll
2025-01-17 14:32:30 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Parallelized overlay build. #1018 - Parallelized overlay build. #1018
- Parallelized and optimized overlay build. #1018 - Parallelized and optimized overlay build. #1018
- Added note about dnsmasq interface options in Rocky 9. - Added note about dnsmasq interface options in Rocky 9.
- Added retries to curl in wwinit dracut module. #1631
### Removed ### Removed

View File

@@ -15,6 +15,6 @@ do
then then
localport="--local-port 1-1023" localport="--local-port 1-1023"
fi 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 fi
done done