summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch')
-rw-r--r--recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch15
1 files changed, 6 insertions, 9 deletions
diff --git a/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch b/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
index 12b9e17a..7f6e5422 100644
--- a/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
+++ b/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
@@ -14,19 +14,16 @@ Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
14 rhel/usr_lib_systemd_system_ovsdb-server.service | 2 +- 14 rhel/usr_lib_systemd_system_ovsdb-server.service | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-) 15 1 file changed, 1 insertion(+), 1 deletion(-)
16 16
17diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service 17Index: git/rhel/usr_lib_systemd_system_ovsdb-server.service
18index 5002ddf10..74e5acb7f 100644 18===================================================================
19--- a/rhel/usr_lib_systemd_system_ovsdb-server.service 19--- git.orig/rhel/usr_lib_systemd_system_ovsdb-server.service
20+++ b/rhel/usr_lib_systemd_system_ovsdb-server.service 20+++ git/rhel/usr_lib_systemd_system_ovsdb-server.service
21@@ -17,7 +17,7 @@ EnvironmentFile=-/run/openvswitch.useropts 21@@ -17,7 +17,7 @@
22 # remove openvswitch.useropts first to reload a fresh 22 # remove openvswitch.useropts first to reload a fresh
23 # OVS_USER_ID from default.conf or sysconfig. 23 # OVS_USER_ID from default.conf or sysconfig.
24 ExecStartPre=/bin/rm -f /run/openvswitch.useropts 24 ExecStartPre=/bin/rm -f /run/openvswitch.useropts
25- 25-
26+ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch 26+ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch
27 ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch 27 ExecStartPre=-/bin/chown ${OVS_USER_ID} /run/openvswitch /var/log/openvswitch
28 ExecStartPre=/bin/sh -c '/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts' 28 ExecStartPre=/bin/sh -c '/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts'
29 ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi' 29 ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi'
30--
312.17.1
32