Earlier, the /etc/openvswitch directory would get installed as part of
the init script's start sequence. However, as newer packages are added,
including some that create files in this directory during their init
script sequences, a race condition may occur.
This change ensures that the directory /etc/openvswitch is created even
before the init scripts execute. Thus, the race condition is avoided.
+/etc/openvswitch
/etc/openvswitch-switch
/usr/share/openvswitch/switch
# Create an empty configuration database if it doesn't exist.
if test ! -e /etc/openvswitch/conf.db; then
- install -d -m 755 -o root -g root /etc/openvswitch
-
# Create configuration database.
ovsdb-tool -vANY:console:emer \
create /etc/openvswitch/conf.db \