Browse Source

Added missing ovs-wrapped, and added important dir to library path.

configure-hook
Pete Vander Giessen 3 years ago
parent
commit
8590e3d3fc
  1. 16
      conf/bin/ovs-wrapper
  2. 8
      snapcraft.yaml

16
conf/bin/ovs-wrapper

@ -0,0 +1,16 @@
#!/bin/bash
set -e
export OVS_LOGDIR=${SNAP_COMMON}/log/openvswitch
export OVS_RUNDIR=${SNAP_COMMON}/run/openvswitch
export OVS_SYSCONFDIR=${SNAP_COMMON}/etc
export OVS_PKGDATADIR=${SNAP}/share/openvswitch
export OVS_BINDIR=${SNAP}/bin
export OVS_SBINDIR=${SNAP}/sbin
mkdir -p ${OVS_LOGDIR}
mkdir -p ${OVS_RUNDIR}
mkdir -p ${OVS_SYSCONFDIR}/openvswitch
exec $@

8
snapcraft.yaml

@ -8,7 +8,7 @@ description: |
grade: devel
confinement: classic
environment:
LD_LIBRARY_PATH: $SNAP/lib:$SNAP/usr/lib
LD_LIBRARY_PATH: $SNAP/lib:$SNAP/usr/lib:$SNAP/usr/lib/x86_64-linux-gnu
PATH: $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH
LC_ALL: C
OS_PLACEMENT_CONFIG_DIR: $SNAP/etc/nova/
@ -372,6 +372,12 @@ parts:
echo
done
ovs-wrapper:
source: conf
plugin: dump
after:
- openvswitch
# Openstack Shared Parts
templates:
after: [keystone, nova, neutron, openvswitch]

Loading…
Cancel
Save