diff --git a/fcoe-utils.spec b/fcoe-utils.spec index 4418065..e4f2469 100644 --- a/fcoe-utils.spec +++ b/fcoe-utils.spec @@ -7,7 +7,7 @@ Name: fcoe-utils Version: 1.0.33 -Release: 4.git%{shortcommit0}%{?dist} +Release: 5.git%{shortcommit0}%{?dist} Summary: Fibre Channel over Ethernet utilities License: GPLv2 URL: http://www.open-fcoe.org @@ -35,6 +35,12 @@ fcoemon - service to configure DCB Ethernet QOS filters, works with lldpad %prep %autosetup -p1 -n fcoe-utils-%{commit0} +%if 0%{?rhel} >= 8 +# RHEL dropped support for software fcoe (fcoe.ko) +sed -i 's/^\(SUPPORTED_DRIVERS\)=".*"$/\1="bnx2fc qedf"/' etc/config +# make the defaults sane for supported offload drivers +sed -i 's/^\(DCB_REQUIRED\)=".*"$/\1="no"/' etc/cfg-ethx +%endif %build ./bootstrap.sh @@ -73,6 +79,9 @@ done %{_libexecdir}/fcoe/ %changelog +* Tue Feb 02 2021 Chris Leech - 1.0.33-5.git848bcc6 +- add in RHEL conditional for removed fcoe.ko support + * Mon Feb 01 2021 Chris Leech - 1.0.33-4.git848bcc6 - drop any differences with upstream service and config files