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: I240d73cf9b09f6f2d1bf335525fdb5da353eee26
  • Loading branch information
npchandran committed Feb 4, 2017
1 parent e51be13 commit 199df34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rpm/contrail/contrail.spec
Expand Up @@ -172,9 +172,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 199df34

Please sign in to comment.