Skip to content

Commit

Permalink
Correcting Major kernel version.
Browse files Browse the repository at this point in the history
Creating symlink to existing vrouter.ko in current kernel version based on Major kernel version
Closes-Bug: 1660900

Change-Id: Ida20c26317b2e5390af8042f24b2db26c723fb17
  • Loading branch information
npchandran committed Feb 4, 2017
1 parent 22e3b56 commit 1b5b9ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rpm/contrail/contrail.spec
Expand Up @@ -161,9 +161,7 @@ exit 0
%post vrouter
act_kver=$(uname -r)
kver=$(uname -r | cut -d "-" -f1)
kver_rls=$(uname -r | cut -d "-" -f2 | cut -d "." -f1)
target_kver=$kver-$kver_rls
vrouter_actual_path=$(ls -1rt /lib/modules/${target_kver}*/extra/net/vrouter/vrouter.ko | tail -1)
vrouter_actual_path=$(ls -1rt /lib/modules/${kver}*/extra/net/vrouter/vrouter.ko | tail -1)

if [ -f "/lib/modules/$(uname -r)/extra/net/vrouter/vrouter.ko" ]; then
depmod -a
Expand Down

0 comments on commit 1b5b9ec

Please sign in to comment.