openvswitch-datapath-dkms is no longer needed for 14.04+

This commit is contained in:
Bob Lantz
2015-03-23 17:15:59 -07:00
parent c2be20f09e
commit 269cecd3ee
+12 -9
View File
@@ -319,14 +319,17 @@ function ovs {
return return
fi fi
# Manually installing openvswitch-datapath may be necessary if [ "$DIST" = "Ubuntu" ] && ! version_ge $RELEASE 14.04; then
# for manually built kernel .debs using Debian's defective kernel # Older Ubuntu versions need openvswitch-datapath/-dkms
# packaging, which doesn't yield usable headers. # Manually installing openvswitch-datapath may be necessary
if ! dpkg --get-selections | grep openvswitch-datapath; then # for manually built kernel .debs using Debian's defective kernel
# If you've already installed a datapath, assume you # packaging, which doesn't yield usable headers.
# know what you're doing and don't need dkms datapath. if ! dpkg --get-selections | grep openvswitch-datapath; then
# Otherwise, install it. # If you've already installed a datapath, assume you
$install openvswitch-datapath-dkms # know what you're doing and don't need dkms datapath.
# Otherwise, install it.
$install openvswitch-datapath-dkms
fi
fi fi
$install openvswitch-switch $install openvswitch-switch
@@ -343,7 +346,7 @@ function ovs {
else else
echo "Attempting to install openvswitch-testcontroller" echo "Attempting to install openvswitch-testcontroller"
if ! $install openvswitch-testcontroller; then if ! $install openvswitch-testcontroller; then
echo "Failed - giving up" echo "Failed - skipping openvswitch-testcontroller"
fi fi
fi fi