Skip to content

Commit

Permalink
rhel: fix wrong condition check for ovs-kmod-manage.sh, fedora
Browse files Browse the repository at this point in the history
In post-install in kmod fedora spec file, the variables storing
different parts of kernel version numbers are renamed. The condition
check to run ovs-kmod-manage.sh for RHEL 7.2 and 7.4 uses the older
variables.

Fixes: c357051 (rhel: add 4.4 kernel in kmod build with mulitple versions, fedora)
Signed-off-by: Martin Xu <[email protected]>
CC: Greg Rose <[email protected]>
CC: Flavio Leitner <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
martinxu9ovs authored and blp committed Sep 26, 2018
1 parent 2f114c7 commit 24ea309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rhel/openvswitch-kmod-fedora.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ IFS='.\|-' read mainline_major mainline_minor mainline_patch major_rev \
# echo mainline_major=$mainline_major mainline_minor=$mainline_minor \
# mainline_patch=$mainline_patch major_rev=$major_rev minor_rev=$minor_rev
if [ "$mainline_major" = "3" ] && [ "$mainline_minor" = "10" ]; then
if [ "$installed_major" = "327" ] || [ "$installed_major" = "693" ]; then
if [ "$major_rev" = "327" ] || [ "$major_rev" = "693" ]; then
# For RHEL 7.2 and 7.4
if [ -x "%{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh" ]; then
%{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh
Expand Down

0 comments on commit 24ea309

Please sign in to comment.