diff options
| author | Sajjad Lateef <slateef@nicira.com> | 2010-10-15 13:41:46 -0700 |
|---|---|---|
| committer | Sajjad Lateef <slateef@nicira.com> | 2010-10-15 13:41:46 -0700 |
| commit | 5f906046c22bd9a55bd1185b2c03d27894b7a425 (patch) | |
| tree | f18e50cd8c1b0b76381ac105858a173addbf5b40 /debian/openvswitch-switch.init | |
| parent | 309eaa2bc4f9367cb1ca6ec91b583a7a6cabf079 (diff) | |
| download | openvswitch-5f906046c22bd9a55bd1185b2c03d27894b7a425.tar.gz | |
Create /etc/openvswitch dir when package is installed.
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.
Diffstat (limited to 'debian/openvswitch-switch.init')
| -rwxr-xr-x | debian/openvswitch-switch.init | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index 871ac2d4f..935ea48e7 100755 --- a/debian/openvswitch-switch.init +++ b/debian/openvswitch-switch.init @@ -203,8 +203,6 @@ case "$1" in # 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 \ |
