f62b16f8a4
openvswitch db file is created in /etc/openvswitch/conf.db. It will be lost during upgrade openvswitch_db container. This patch moves the db file into /var/lib/openvswitch folder, which located in docker volume. Change-Id: I73604fddacd21655590b9e66ee2805014795b9f1 Closes-Bug: #1649290
7 lines
148 B
Bash
7 lines
148 B
Bash
#!/bin/bash
|
|
|
|
mkdir -p "/run/openvswitch"
|
|
if [[ ! -e "/var/lib/openvswitch/conf.db" ]]; then
|
|
ovsdb-tool create "/var/lib/openvswitch/conf.db"
|
|
fi
|