Compare commits

...

1 Commits

Author SHA1 Message Date
Bob Lantz b9f723becd Optionally install libovs for OVS 2.8+
We also unmask it after installation if we're on systemd.
2019-03-13 21:41:59 -07:00
+8 -3
View File
@@ -347,15 +347,20 @@ function ubuntuOvs {
cd $BUILD_DIR/openvswitch/openvswitch-$OVS_RELEASE
DEB_BUILD_OPTIONS='parallel=$parallel nocheck' fakeroot debian/rules binary
cd ..
# Install packages
if [ -e libopenvswitch_$OVS_RELEASE*.deb ]; then
$pkginst libopenvswitch_$OVS_RELEASE*.deb 2>/dev/null
fi
for pkg in common datapath-dkms pki switch; do
pkg=openvswitch-${pkg}_$OVS_RELEASE*.deb
echo "Installing $pkg"
$pkginst $pkg
done
if $pkginst openvswitch-controller_$OVS_RELEASE*.deb 2>/dev/null; then
echo "Ignoring error installing openvswitch-controller"
if [ -e openvswitch-controller_$OVS_RELEASE*.deb ]; then
$pkginst openvswitch-controller_$OVS_RELEASE*.deb 2>/dev/null
fi
# Ubuntu/Debian will mask a service if you uninstall it
sudo systemctl unmask openvswitch-switch || true
/sbin/modinfo openvswitch
sudo ovs-vsctl show
# Switch can run on its own, but