Link with version 4.15.4.1003 used in role is no longer valid
Link with version 4.15.4.1003 used in role is no longer valid.
Since Solarflare made it's firwmare not downloadable we should assume it will happen with every future version as well.
We should introduce some caching procedure, here are some propositions:
- Download source rpm and store it in RGW
- Cache builded rpm (this will limit usability to single kernel)
- Mix two approaches above.
Example build procedure in container:
- Run centos:7.7.1908
- ensure vault repo for centos 7.7:
tee /etc/yum.repos.d/task_centos_vault.repo << EOF
[task_centos_vault_os]
baseurl = http://vault.centos.org/7.7.1908/os/\$basearch/
enabled = 1
gpgcheck = 1
name = Vault repository for CentOS packages - os
priority = 1
EOF
rpm --import http://vault.centos.org/7.7.1908/os//x86_64/RPM-GPG-KEY-CentOS-7
- install kernels and dependencies:
kernel_versions=(
"3.10.0-1062.el7.x86_64"
"3.10.0-1127.18.2.el7.x86_64"
)
yum install "${kernel_versions[@]/#/kernel-}" "${kernel_versions[@]/#/kernel-devel-}" rpm-build gcc make
- download and build drivers:
curl -L "https://support.solarflare.com/wp/drivers?sd=SF-103848-LS-53&pe=1945" --output sfc.zip
unzip sfc.zip
echo "${kernel_versions[@]}" | xargs -n 1 sh -c 'rpmbuild --rebuild --define "kernel $0" sfc-*.src.rpm'
- upload result (as artefacts or in rgw)
-
/root/rpmbuild/RPMS/x86_64/*.rpm
- Builded rpm for requested kernels -
sfc-*.src.rpm
- Source rpm just for cache
-