From 269cecd3ee80b552e8155323759f6d05c06751ab Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Mon, 23 Mar 2015 17:15:59 -0700 Subject: [PATCH] openvswitch-datapath-dkms is no longer needed for 14.04+ --- util/install.sh | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/util/install.sh b/util/install.sh index 4962aea..25ab93d 100755 --- a/util/install.sh +++ b/util/install.sh @@ -319,14 +319,17 @@ function ovs { return fi - # Manually installing openvswitch-datapath may be necessary - # for manually built kernel .debs using Debian's defective kernel - # packaging, which doesn't yield usable headers. - if ! dpkg --get-selections | grep openvswitch-datapath; then - # If you've already installed a datapath, assume you - # know what you're doing and don't need dkms datapath. - # Otherwise, install it. - $install openvswitch-datapath-dkms + if [ "$DIST" = "Ubuntu" ] && ! version_ge $RELEASE 14.04; then + # Older Ubuntu versions need openvswitch-datapath/-dkms + # Manually installing openvswitch-datapath may be necessary + # for manually built kernel .debs using Debian's defective kernel + # packaging, which doesn't yield usable headers. + if ! dpkg --get-selections | grep openvswitch-datapath; then + # If you've already installed a datapath, assume you + # know what you're doing and don't need dkms datapath. + # Otherwise, install it. + $install openvswitch-datapath-dkms + fi fi $install openvswitch-switch @@ -343,7 +346,7 @@ function ovs { else echo "Attempting to install openvswitch-testcontroller" if ! $install openvswitch-testcontroller; then - echo "Failed - giving up" + echo "Failed - skipping openvswitch-testcontroller" fi fi