diff mbox series

[ovs-dev] rhel: Support RHEL 7.8 kernel module rpm build.

Message ID 1592408607-30075-1-git-send-email-u9012063@gmail.com
State New
Headers show
Series [ovs-dev] rhel: Support RHEL 7.8 kernel module rpm build. | expand

Commit Message

William Tu June 17, 2020, 3:43 p.m. UTC
Add support for RHEL7.8 GA release with kernel 3.10.0-1127.

VMware-BZ: #2582834
Signed-off-by: William Tu <u9012063@gmail.com>
---
 rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Comments

Yi-Hung Wei June 17, 2020, 5:05 p.m. UTC | #1
Hi William,

Thanks for the patch.  Should we update
rhel/openvswitch-kmod-fedora.spec.in so that the ovs-kmod-manage.sh
will be invoked in the post installation stage? I.e. 391b52f3c33a
("rhel: Support RHEL 7.8 kernel module rpm build")

Thanks,

-Yi-Hung

On Wed, Jun 17, 2020 at 8:43 AM William Tu <u9012063@gmail.com> wrote:
>
> Add support for RHEL7.8 GA release with kernel 3.10.0-1127.
>
> VMware-BZ: #2582834
> Signed-off-by: William Tu <u9012063@gmail.com>
> ---
>  rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh b/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
> index a9b5cdd817da..93d487101253 100644
> --- a/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
> +++ b/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
> @@ -19,7 +19,8 @@
>  #   - 3.10.0 major revision 693  (RHEL 7.4)
>  #   - 3.10.0 major revision 957  (RHEL 7.6)
>  #   - 3.10.0 major revision 1062 (RHEL 7.7)
> -#   - 3.10.0 major revision 1101 (RHEL 7.8)
> +#   - 3.10.0 major revision 1101 (RHEL 7.8 Beta)
> +#   - 3.10.0 major revision 1127 (RHEL 7.8 GA)
>  #   - 4.4.x,  x >= 73           (SLES 12 SP3)
>  #   - 4.12.x, x >= 14           (SLES 12 SP4).
>  # It is packaged in the openvswitch kmod RPM and run in the post-install
> @@ -113,6 +114,12 @@ if [ "$mainline_major" = "3" ] && [ "$mainline_minor" = "10" ]; then
>          ver_offset=4
>          installed_ver="$minor_rev"
>      fi
> +    elif [ "$major_rev" = "1127" ]; then
> +#        echo "rhel78"
> +        comp_ver=10
> +        ver_offset=4
> +        installed_ver="$minor_rev"
> +    fi
>  elif [ "$mainline_major" = "4" ] && [ "$mainline_minor" = "4" ]; then
>      if [ "$mainline_patch" -ge "73" ]; then
>  #        echo "sles12sp3"
> --
> 2.7.4
>
William Tu June 17, 2020, 6:32 p.m. UTC | #2
On Wed, Jun 17, 2020 at 10:05 AM Yi-Hung Wei <yihung.wei@gmail.com> wrote:
>
> Hi William,
>
> Thanks for the patch.  Should we update
> rhel/openvswitch-kmod-fedora.spec.in so that the ovs-kmod-manage.sh
> will be invoked in the post installation stage? I.e. 391b52f3c33a
> ("rhel: Support RHEL 7.8 kernel module rpm build")
>
Yes, thanks.
I will add it.
William
diff mbox series

Patch

diff --git a/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh b/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
index a9b5cdd817da..93d487101253 100644
--- a/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
+++ b/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
@@ -19,7 +19,8 @@ 
 #   - 3.10.0 major revision 693  (RHEL 7.4)
 #   - 3.10.0 major revision 957  (RHEL 7.6)
 #   - 3.10.0 major revision 1062 (RHEL 7.7)
-#   - 3.10.0 major revision 1101 (RHEL 7.8)
+#   - 3.10.0 major revision 1101 (RHEL 7.8 Beta)
+#   - 3.10.0 major revision 1127 (RHEL 7.8 GA)
 #   - 4.4.x,  x >= 73           (SLES 12 SP3)
 #   - 4.12.x, x >= 14           (SLES 12 SP4).
 # It is packaged in the openvswitch kmod RPM and run in the post-install
@@ -113,6 +114,12 @@  if [ "$mainline_major" = "3" ] && [ "$mainline_minor" = "10" ]; then
         ver_offset=4
         installed_ver="$minor_rev"
     fi
+    elif [ "$major_rev" = "1127" ]; then
+#        echo "rhel78"
+        comp_ver=10
+        ver_offset=4
+        installed_ver="$minor_rev"
+    fi
 elif [ "$mainline_major" = "4" ] && [ "$mainline_minor" = "4" ]; then
     if [ "$mainline_patch" -ge "73" ]; then
 #        echo "sles12sp3"