The DB initialization is done by ovs-ctl script as well, so remove the duplicated code from the spec.
Signed-off-by: Flavio Leitner <f...@redhat.com> --- rhel/openvswitch-fedora.spec.in | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index f90762d..fb4b1b7 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -170,19 +170,6 @@ rm -rf $RPM_BUILD_ROOT %post -if test ! -e /etc/openvswitch/conf.db; then - install -d -m 755 -o root -g root /etc/openvswitch - - # Create ovs-vswitchd config database - ovsdb-tool -vANY:console:emer create /etc/openvswitch/conf.db \ - /usr/share/openvswitch/vswitch.ovsschema - - # Create initial table in config database - ovsdb-tool -vANY:console:emer transact /etc/openvswitch/conf.db \ - '[{"op": "insert", "table": "Open_vSwitch", "row": {}}]' \ - > /dev/null -fi - %if 0%{?systemd_post:1} %systemd_post %{name}.service %else -- 1.9.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev