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: Iadac63737d1c86949d3277c3b8ef7ee1e4a548e6
  • Loading branch information
npchandran committed Feb 6, 2017
1 parent e4d6a43 commit 63f01ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rpm/contrail/contrail.spec
Expand Up @@ -173,9 +173,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 63f01ae

Please sign in to comment.