summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch')
-rw-r--r--recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch29
1 files changed, 13 insertions, 16 deletions
diff --git a/recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch b/recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch
index be6fa5d9..a9eae832 100644
--- a/recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch
+++ b/recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch
@@ -12,11 +12,11 @@ Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
12 rhel/usr_lib_systemd_system_ovsdb-server.service | 8 ++++---- 12 rhel/usr_lib_systemd_system_ovsdb-server.service | 8 ++++----
13 2 files changed, 6 insertions(+), 6 deletions(-) 13 2 files changed, 6 insertions(+), 6 deletions(-)
14 14
15diff --git a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in 15Index: git/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
16index ff43dae96..f88b57cae 100644 16===================================================================
17--- a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in 17--- git.orig/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
18+++ b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in 18+++ git/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
19@@ -17,8 +17,8 @@ EnvironmentFile=-/etc/sysconfig/openvswitch 19@@ -17,8 +17,8 @@
20 EnvironmentFile=-/run/openvswitch.useropts 20 EnvironmentFile=-/run/openvswitch.useropts
21 LimitSTACK=2M 21 LimitSTACK=2M
22 @begin_dpdk@ 22 @begin_dpdk@
@@ -27,26 +27,23 @@ index ff43dae96..f88b57cae 100644
27 @end_dpdk@ 27 @end_dpdk@
28 ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \ 28 ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
29 --no-ovsdb-server --no-monitor --system-id=random \ 29 --no-ovsdb-server --no-monitor --system-id=random \
30diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service 30Index: git/rhel/usr_lib_systemd_system_ovsdb-server.service
31index 98338b9df..5002ddf10 100644 31===================================================================
32--- a/rhel/usr_lib_systemd_system_ovsdb-server.service 32--- git.orig/rhel/usr_lib_systemd_system_ovsdb-server.service
33+++ b/rhel/usr_lib_systemd_system_ovsdb-server.service 33+++ git/rhel/usr_lib_systemd_system_ovsdb-server.service
34@@ -16,11 +16,11 @@ EnvironmentFile=-/run/openvswitch.useropts 34@@ -16,11 +16,11 @@
35 # Environment is reloaded for each Exec*, make sure to 35 # Environment is reloaded for each Exec*, make sure to
36 # remove openvswitch.useropts first to reload a fresh 36 # remove openvswitch.useropts first to reload a fresh
37 # OVS_USER_ID from default.conf or sysconfig. 37 # OVS_USER_ID from default.conf or sysconfig.
38-ExecStartPre=/usr/bin/rm -f /run/openvswitch.useropts 38-ExecStartPre=/usr/bin/rm -f /run/openvswitch.useropts
39+ExecStartPre=/bin/rm -f /run/openvswitch.useropts 39+ExecStartPre=/bin/rm -f /run/openvswitch.useropts
40 40
41-ExecStartPre=-/usr/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch 41-ExecStartPre=-/usr/bin/chown ${OVS_USER_ID} /run/openvswitch /var/log/openvswitch
42-ExecStartPre=/bin/sh -c '/usr/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts' 42-ExecStartPre=/bin/sh -c '/usr/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts'
43-ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /usr/bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi' 43-ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /usr/bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi'
44+ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch 44+ExecStartPre=-/bin/chown ${OVS_USER_ID} /run/openvswitch /var/log/openvswitch
45+ExecStartPre=/bin/sh -c '/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts' 45+ExecStartPre=/bin/sh -c '/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts'
46+ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi' 46+ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi'
47 ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \ 47 ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
48 --no-ovs-vswitchd --no-monitor --system-id=random \ 48 --no-ovs-vswitchd --no-monitor --system-id=random \
49 ${OVS_USER_OPT} \ 49 ${OVS_USER_OPT} \
50--
512.17.1
52